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

Method Emit

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

Source from the content-addressed store, hash-verified

392}
393
394func (o OR) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
395 return []uint16{orBases[o.ARegister] + uint16(o.BRegister)}, nil
396}
397
398func (o OR) String() string {
399 result := fmt.Sprintf("OR R%d, R%d", o.ARegister, o.BRegister)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected