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

Method Emit

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

Source from the content-addressed store, hash-verified

242}
243
244func (l LOAD) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
245 return []uint16{ldBases[l.MemoryAddressReg] + uint16(l.ToRegister)}, nil
246}
247
248func (l LOAD) String() string {
249 result := fmt.Sprintf("LD R%d, R%d", l.MemoryAddressReg, l.ToRegister)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected