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

Method Emit

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

Source from the content-addressed store, hash-verified

89}
90
91func (s SHL) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
92 return []uint16{shlOpcodes[s.Register]}, nil
93}
94
95func (s SHL) String() string {
96 result := fmt.Sprintf("SHL R%d", s.Register)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected