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

Struct DATA

asm/instructions.go:41–44  ·  view source on GitHub ↗

DATA put value in memory into register (2 byte instruction) ---------------------- 0x0020 = DATA R0 0x0021 = DATA R1 0x0022 = DATA R2 0x0023 = DATA R3

Source from the content-addressed store, hash-verified

39// 0x0022 = DATA R2
40// 0x0023 = DATA R3
41type DATA struct {
42 ToRegister REGISTER
43 Data marker
44}
45
46func (d DATA) Size() int {
47 return 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected