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

Method Emit

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

Source from the content-addressed store, hash-verified

431}
432
433func (a AND) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
434 return []uint16{andBases[a.ARegister] + uint16(a.BRegister)}, nil
435}
436
437func (a AND) String() string {
438 result := fmt.Sprintf("AND R%d, R%d", a.ARegister, a.BRegister)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected