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

Method Emit

asm/instructions.go:472–474  ·  view source on GitHub ↗
(labelResolver LabelResolver, symbolResolver SymbolResolver)

Source from the content-addressed store, hash-verified

470}
471
472func (c CMP) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
473 return []uint16{cmpBases[c.ARegister] + uint16(c.BRegister)}, nil
474}
475
476func (c CMP) String() string {
477 result := fmt.Sprintf("CMP R%d, R%d", c.ARegister, c.BRegister)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected