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

Method Emit

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

Source from the content-addressed store, hash-verified

112}
113
114func (s SHR) Emit(labelResolver LabelResolver, symbolResolver SymbolResolver) ([]uint16, error) {
115 return []uint16{shrOpcodes[s.Register]}, nil
116}
117
118func (s SHR) String() string {
119 result := fmt.Sprintf("SHR R%d", s.Register)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected