MCPcopy Index your code

hub / github.com/djhworld/simple-computer / types & classes

Types & classes92 in github.com/djhworld/simple-computer

↓ 2 callersTypeAliasIO_MODE
asm/instructions.go:14
↓ 1 callersTypeAliasREGISTER
asm/instructions.go:13
StructADD
ADDS ---------------------- 0x0080 = ADD R0, R0 0x0081 = ADD R0, R1 0x0082 = ADD R0, R2 0x0083 = ADD R0, R3 0x0084 = ADD R1, R0 0x0085 = ADD R1, R1 0x
asm/instructions.go:572
StructALU
alu/alu.go:23
StructAND
ANDS ---------------------- 0x00C0 = AND R0, R0 0x00C1 = AND R0, R1 0x00C2 = AND R0, R2 0x00C3 = AND R0, R3 0x00C4 = AND R1, R0 0x00C5 = AND R1, R1 0x
asm/instructions.go:424
StructANDGate
circuit/gates.go:21
StructANDGate3
components/big_gates.go:281
StructANDGate4
components/big_gates.go:210
StructANDGate5
components/big_gates.go:248
StructANDGate8
components/big_gates.go:168
StructANDer
components/components.go:244
StructAdd2
components/adder.go:61
StructAdder
components/adder.go:8
StructAssembler
asm/assembler.go:20
StructBit
components/storage.go:8
StructBus
components/bus.go:5
StructBusOne
components/components.go:492
StructCALL
PSUEDO INSTRUCTIONS - these are composite instructions that may map to multiple opcodes
asm/instructions.go:628
StructCLF
CLF (CLEAR FLAGS) ---------------------- 0x0060 CLF
asm/instructions.go:484
StructCMP
CMP ---------------------- 0x00F0 = CMP R0, R0 0x00F1 = CMP R0, R1 0x00F2 = CMP R0, R2 0x00F3 = CMP R0, R3 0x00F4 = CMP R1, R0 0x00F5 = CMP R1, R1 0x0
asm/instructions.go:463
StructCPU
cpu/cpu.go:298
StructCell
memory/memory.go:11
StructComparator
components/components.go:429
StructCompare2
components/components.go:364
InterfaceComponent
components/components.go:9
StructDATA
DATA put value in memory into register (2 byte instruction) ---------------------- 0x0020 = DATA R0 0x0021 = DATA R1 0x0022 = DATA R2 0x0023 = DATA R3
asm/instructions.go:41
StructDEFLABEL
PLACEHOLDER INSTRUCTIONS - these are used by the assembler
asm/instructions.go:591
StructDEFSYMBOL
asm/instructions.go:608
StructDecoder2x4
components/decoders.go:7
StructDecoder3x8
components/decoders.go:51
StructDecoder4x16
components/decoders.go:114
StructDecoder8x256
Decoder is constructed from 16 4x16 decoders https://www.quora.com/How-can-I-construct-a-8X256-decoder-using-4X16-decoders-only
components/decoders.go:182
StructDisplayAdapter
[cpu] -------> display adapter --------> display RAM <--------- screen control ---------> [screenChannel] write write
io/display.go:14
StructDumbPeripheral
Dumb peripheral that just contains a register In 'ENABLE' state: emits the values 0x00DA for data mode, and 0x00AD for address mode In SET state: sets
cpu/cpu_test.go:1018
StructDummyComponent
components/components_test.go:11
InterfaceEnableable
cpu/cpu.go:267
StructEnabler
components/components.go:15
StructGlfwIO
GlfwIO is for running the system using GLFW. libglfw3 will be required on the system
cmd/simulator/glfw_io.go:14
StructIN
IN ---------------------- 0x0070 = IN Data, R0 0x0071 = IN Data, R1 0x0072 = IN Data, R2 0x0073 = IN Data, R3 0x0074 = IN Addr, R0 0x0075 = IN Addr, R
asm/instructions.go:300
StructIOBus
components/iobus.go:14
InterfaceInstruction
asm/instructions.go:28
StructInstructionDecoder3x8
cpu/cpu.go:281
StructInstructions
Instructions - useful list data structure for convienience
asm/instructions.go:664
StructIsZero
components/components.go:155
StructJMP
asm/instructions.go:534
StructJMPF
asm/instructions.go:500
StructJR
JR set instruction address register to value in register ---------------------- 0x0030 = JR R0 0x0031 = JR R1 0x0032 = JR R2 0x0033 = JR R3
asm/instructions.go:130
StructKeyPress
io/keyboard.go:12
StructKeyboard
io/keyboard.go:123
StructKeyboardAdapter
[cpu] <-------------> keyboard adapter <----------- keyboard <----------- [keyPressChannel] read/write write no
io/keyboard.go:19
StructLABEL
asm/markers.go:9
StructLOAD
LOADS ---------------------- arg A = memory address to load from arg B = register to store value in 0x0000 = LD R0, R0 0x0001 = LD R0, R1 0x0002 = LD
asm/instructions.go:235
FuncTypeLabelResolver
func(LABEL) (uint16, error)
asm/instructions.go:10
StructLeftShifter
TODO not sure if this is exactly how this should look...
components/components.go:57
StructMemory64K
memory/memory.go:44
StructNANDGate
circuit/gates.go:3
StructNORGate
circuit/gates.go:93
StructNOT
NOT ---------------------- 0x00B0 = NOT R0 0x00B5 = NOT R1 0x00BA = NOT R2 0x00BF = NOT R3
asm/instructions.go:153
StructNOTGate
circuit/gates.go:39
StructNOTer
components/components.go:208
StructNUMBER
asm/markers.go:31
StructOR
ORS ---------------------- 0x00D0 = OR R0, R0 0x00D1 = OR R0, R1 0x00D2 = OR R0, R2 0x00D3 = OR R0, R3 0x00D4 = OR R1, R0 0x00D5 = OR R1, R1 0x00D6 =
asm/instructions.go:385
StructORGate
circuit/gates.go:57
StructORGate3
components/big_gates.go:5
StructORGate4
components/big_gates.go:39
StructORGate5
components/big_gates.go:77
StructORGate6
components/big_gates.go:120
StructORer
components/components.go:284
StructOUT
OUT ---------------------- 0x0078 = OUT Data, R0 0x0079 = OUT Data, R1 0x007A = OUT Data, R2 0x007B = OUT Data, R3 0x007C = OUT Addr, R0 0x007D = OUT
asm/instructions.go:264
StructParser
asm/parser.go:29
InterfacePeripheral
io/peripheral.go:7
StructPrintStateConfig
computer/computer.go:17
StructRegister
components/register.go:11
StructRightShifter
components/components.go:106
StructSHL
SHL ---------------------- 0x00A0 = SHL R0 0x00A5 = SHL R1 0x00AA = SHL R2 0x00AF = SHL R3
asm/instructions.go:83
StructSHR
SHR ---------------------- 0x0090 = SHL R0 0x0095 = SHL R1 0x009A = SHL R2 0x009F = SHL R3
asm/instructions.go:106
StructSTORE
STORES ---------------------- arg A = memory address for value arg B = value to store in memory 0x0010 = ST R0, R0 0x0011 = ST R0, R1 0x0012 = ST R0,
asm/instructions.go:194
StructSYMBOL
asm/markers.go:20
StructScreenControl
io/display.go:155
InterfaceSettable
cpu/cpu.go:272
StructSimpleComputer
computer/computer.go:22
StructStepper
components/stepper.go:9
FuncTypeSymbolResolver
func(SYMBOL) (uint16, error)
asm/instructions.go:11
InterfaceUpdatable
cpu/cpu.go:277
StructWire
circuit/wires.go:3
StructWord
components/storage.go:43
StructXOR
XORS ---------------------- 0x00E0 = XOR R0, R0 0x00E1 = XOR R0, R1 0x00E2 = XOR R0, R2 0x00E3 = XOR R0, R3 0x00E4 = XOR R1, R0 0x00E5 = XOR R1, R1 0x
asm/instructions.go:346
StructXORGate
circuit/gates.go:75
StructXORer
components/components.go:324
StructdisplayRAM
Display RAM is special as the writes (inputs) and reads (outputs) are two separate units that operate independently.
io/display_ram.go:11
StructglfwDisplay
cmd/simulator/glfw_io.go:79
Interfacemarker
asm/markers.go:5