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

Struct CMP

asm/instructions.go:463–466  ·  view source on GitHub ↗

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 0x00F6 = CMP R1, R2 0x00F7 = CMP R1, R3 0x00F8 = CMP R2, R0 0x00F9 = CMP R2, R1 0x00FA = CMP R2, R2 0x00FB = CMP R2, R3 0x00FC = CMP R3, R0 0x00FD = CMP

Source from the content-addressed store, hash-verified

461// 0x00FE = CMP R3, R2
462// 0x00FF = CMP R3, R3
463type CMP struct {
464 ARegister REGISTER
465 BRegister REGISTER
466}
467
468func (c CMP) Size() int {
469 return 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected