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

Struct ADD

asm/instructions.go:572–575  ·  view source on GitHub ↗

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 0x0086 = ADD R1, R2 0x0087 = ADD R1, R3 0x0088 = ADD R2, R0 0x0089 = ADD R2, R1 0x008A = ADD R2, R2 0x008B = ADD R2, R3 0x008C = ADD R3, R0 0x008D = ADD

Source from the content-addressed store, hash-verified

570// 0x008E = ADD R3, R2
571// 0x008F = ADD R3, R3
572type ADD struct {
573 ARegister REGISTER
574 BRegister REGISTER
575}
576
577func (a ADD) Size() int {
578 return 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected