MCPcopy Create free account
hub / github.com/djhworld/simple-computer / LOAD

Struct LOAD

asm/instructions.go:235–238  ·  view source on GitHub ↗

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 R0, R2 0x0003 = LD R0, R3 0x0004 = LD R1, R0 0x0005 = LD R1, R1 0x0006 = LD R1, R2 0x0007 = LD R1, R3 0x0008 = LD R2, R0 0x0009 = LD R2, R1 0x000A = L

Source from the content-addressed store, hash-verified

233// 0x000E = LD R3, R2
234// 0x000F = LD R3, R3
235type LOAD struct {
236 MemoryAddressReg REGISTER
237 ToRegister REGISTER
238}
239
240func (l LOAD) Size() int {
241 return 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected