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

Method Size

asm/instructions.go:240–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240func (l LOAD) Size() int {
241 return 1
242}
243
244func (l LOAD) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
245 return []uint16{ldBases[l.MemoryAddressReg] + uint16(l.ToRegister)}, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected