Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/djhworld/simple-computer
/ functions
Functions
604 in github.com/djhworld/simple-computer
⨍
Functions
604
◇
Types & classes
92
↓ 4 callers
Method
Update
(inputA bool, inputB bool)
components/decoders.go:34
↓ 4 callers
Function
checkDecoder2x4Output
(decoder *Decoder2x4, expected []bool, t *testing.T)
components/decoders_test.go:107
↓ 4 callers
Function
counterRenderNibble
counterRenderNibble shifts the counter right by `shift` bits (using CLF before each SHR so the carry-in is always 0), masks the lowest 4 bits, looks u
cmd/generator/counter.go:64
↓ 4 callers
Function
getValueOfOutput
(b Component, outputBits int)
components/components_test.go:416
↓ 4 callers
Function
testALUAddWithCarry
(instruction uint16, inputRegisters, expectedOutputRegisters [4]uint16, t *testing.T)
cpu/cpu_test.go:670
↓ 4 callers
Function
testJMPR
(instruction uint16, inputRegisters [4]uint16, expectedIAR uint16, t *testing.T)
cpu/cpu_test.go:330
↓ 4 callers
Method
updateStates
()
cpu/cpu.go:593
↓ 3 callers
Method
Carry
()
components/adder.go:114
↓ 3 callers
Method
Enable
()
components/register.go:39
↓ 3 callers
Method
Equal
()
components/components.go:399
↓ 3 callers
Method
Init
(title string)
cmd/simulator/glfw_io.go:49
↓ 3 callers
Method
IsOutputMode
()
components/iobus.go:55
↓ 3 callers
Method
IsSet
()
components/iobus.go:43
↓ 3 callers
Method
Larger
()
components/components.go:403
↓ 3 callers
Function
NewANDGate5
()
components/big_gates.go:256
↓ 3 callers
Function
NewANDGate8
()
components/big_gates.go:179
↓ 3 callers
Function
NewDecoder3x8
()
components/decoders.go:61
↓ 3 callers
Function
NewDecoder4x16
()
components/decoders.go:121
↓ 3 callers
Function
NewORGate6
()
components/big_gates.go:135
↓ 3 callers
Function
NewORer
()
components/components.go:291
↓ 3 callers
Function
NewWord
()
components/storage.go:50
↓ 3 callers
Method
SetInputWire
(index int, value bool)
components/components.go:183
↓ 3 callers
Method
Update
()
components/components.go:187
↓ 3 callers
Function
checkValueIs
(b Component, expected uint16)
components/register_test.go:143
↓ 3 callers
Method
putValueInRAM
(address, value uint16)
computer/computer.go:77
↓ 3 callers
Function
selectDisplayAdapter
(useRegister asm.REGISTER)
cmd/generator/common.go:427
↓ 3 callers
Function
setWireOnComponent16
(b Component, input int)
components/components_test.go:403
↓ 3 callers
Function
testCLF
(initialInstruction uint16, initialRegisters [4]uint16, t *testing.T)
cpu/cpu_test.go:596
↓ 2 callers
Method
Carry
()
components/adder.go:39
↓ 2 callers
Method
Disable
()
memory/memory.go:74
↓ 2 callers
Method
Enable
()
memory/memory.go:70
↓ 2 callers
Method
Equal
()
components/components.go:484
↓ 2 callers
Method
IsDataMode
()
components/iobus.go:59
↓ 2 callers
Method
Larger
()
components/components.go:488
↓ 2 callers
Function
NewANDGate4
()
components/big_gates.go:221
↓ 2 callers
Function
NewANDer
()
components/components.go:251
↓ 2 callers
Function
NewAdd2
()
components/adder.go:74
↓ 2 callers
Function
NewAdder
()
components/adder.go:17
↓ 2 callers
Function
NewBusOne
(inputBus, outputBus *Bus)
components/components.go:504
↓ 2 callers
Function
NewCPU
(mainBus *components.Bus, memory *memory.Memory64K)
cpu/cpu.go:383
↓ 2 callers
Function
NewCell
(inputBus, outputBus *components.Bus)
memory/memory.go:16
↓ 2 callers
Function
NewComparator
()
components/components.go:440
↓ 2 callers
Function
NewCompare2
()
components/components.go:379
↓ 2 callers
Function
NewDumbPeripheral
()
cpu/cpu_test.go:1027
↓ 2 callers
Function
NewIOBus
()
components/iobus.go:18
↓ 2 callers
Function
NewKeyboardAdapter
()
io/keyboard.go:38
↓ 2 callers
Function
NewLeftShifter
()
components/components.go:65
↓ 2 callers
Function
NewNOTer
()
components/components.go:215
↓ 2 callers
Function
NewORGate3
()
components/big_gates.go:14
↓ 2 callers
Function
NewORGate5
()
components/big_gates.go:90
↓ 2 callers
Function
NewRightShifter
()
components/components.go:114
↓ 2 callers
Function
NewStepper
()
components/stepper.go:22
↓ 2 callers
Function
NewXORer
()
components/components.go:331
↓ 2 callers
Method
Run
()
cmd/simulator/glfw_io.go:35
↓ 2 callers
Method
SetInputWire
(index int, value bool)
components/bus.go:25
↓ 2 callers
Method
ShiftOut
()
components/components.go:81
↓ 2 callers
Method
Step
()
cpu/cpu.go:533
↓ 2 callers
Method
Unset
()
memory/memory.go:82
↓ 2 callers
Method
Update
(set bool)
components/storage.go:70
↓ 2 callers
Method
Update
(enable bool)
components/components.go:43
↓ 2 callers
Method
Update
()
components/components.go:237
↓ 2 callers
Method
Update
()
components/components.go:273
↓ 2 callers
Method
Update
()
components/components.go:313
↓ 2 callers
Method
Update
()
components/components.go:353
↓ 2 callers
Method
Update
(clockIn bool)
components/stepper.go:63
↓ 2 callers
Method
Update
(mode, dataOrAddress bool)
components/iobus.go:67
↓ 2 callers
Method
Update
(set bool, enable bool)
memory/memory.go:25
↓ 2 callers
Method
UpdateIncoming
()
io/display_ram.go:70
↓ 2 callers
Method
UpdateOutgoing
()
io/display_ram.go:99
↓ 2 callers
Function
checkBus
(b *components.Bus, expected uint16)
memory/memory_test.go:95
↓ 2 callers
Method
clearMainBus
()
cpu/cpu.go:587
↓ 2 callers
Function
deselectIO
(useRegister asm.REGISTER)
cmd/generator/common.go:434
↓ 2 callers
Function
getNextExecutableInstructionLoc
(currentOffset uint16, currentInstrIndex int, instructions []Instruction)
asm/assembler.go:167
↓ 2 callers
Function
getWriterFor
(file string)
cmd/assembler/main.go:82
↓ 2 callers
Method
runEnable
(state bool)
cpu/cpu.go:704
↓ 2 callers
Method
runSet
(state bool)
cpu/cpu.go:790
↓ 2 callers
Function
setMemoryLocation2
(m *memory.Memory64K, address uint16, value uint16)
cpu/cpu_test.go:1102
↓ 2 callers
Function
setWireOnComponent32
(b Component, inputA int, inputB int)
components/components_test.go:379
↓ 2 callers
Function
sineColumnWrite
sineColumnWrite reads the precomputed y*30 value from table[x], adds the column index x to get the display RAM address, then writes pixelValue to that
cmd/generator/sinewave.go:68
↓ 2 callers
Method
step
()
components/stepper.go:76
↓ 2 callers
Function
testBusOneReturnsCorrectResult
(b *BusOne, inputBus, outputBus *Bus, input int, enableBus1 bool, expectedOutput int, t *testing.T)
components/components_test.go:514
↓ 2 callers
Function
testCMP
(instruction uint16, inputRegisters [4]uint16, expectedOutputRegisters [4]uint16, compareA, compareB int, t *t
cpu/cpu_test.go:791
↓ 2 callers
Method
toggleWriteToRAM
()
io/display.go:105
↓ 1 callers
Method
Connect
(*components.IOBus, *components.Bus)
io/peripheral.go:8
↓ 1 callers
Method
Connect
(ioBus *components.IOBus, mainBus *components.Bus)
io/keyboard.go:44
↓ 1 callers
Method
ConnectKeyboard
(keyboard *io.Keyboard)
computer/computer.go:55
↓ 1 callers
Method
ConnectTo
(bus *components.Bus)
io/keyboard.go:136
↓ 1 callers
Method
Destroy
()
cmd/simulator/glfw_io.go:122
↓ 1 callers
Method
DrawFrame
(screenData *[160][240]byte)
cmd/simulator/glfw_io.go:129
↓ 1 callers
Method
Enable
()
components/iobus.go:35
↓ 1 callers
Method
GetOutputWire
(index int)
components/bus.go:28
↓ 1 callers
Method
IsAddressMode
()
components/iobus.go:63
↓ 1 callers
Method
LoadToRAM
(offset uint16, values []uint16)
computer/computer.go:59
↓ 1 callers
Function
NewComputer
(screenChannel chan *[160][240]byte, quitChannel chan bool)
computer/computer.go:35
↓ 1 callers
Function
NewDisplaydAdapter
()
io/display.go:36
↓ 1 callers
Function
NewGlfwIO
(screenChannel chan *[160][240]byte, keyPressChannel chan *io.KeyPress, quitChannel chan bool)
cmd/simulator/glfw_io.go:21
↓ 1 callers
Function
NewInstructionDecoder3x8
()
cpu/cpu.go:287
↓ 1 callers
Function
NewKeyboard
(keyPressChannel chan *KeyPress, quit chan bool)
io/keyboard.go:129
↓ 1 callers
Function
NewNORGate
()
circuit/gates.go:97
↓ 1 callers
Function
NewScreenControl
(adapter *DisplayAdapter, outputChan chan *[160][240]byte, quit chan bool)
io/display.go:167
← previous
next →
101–200 of 604, ranked by callers