(symbol SYMBOL)
| 31 | } |
| 32 | |
| 33 | func (a *Assembler) ResolveSymbol(symbol SYMBOL) (uint16, error) { |
| 34 | if v, ok := a.symbols[symbol.Name]; !ok { |
| 35 | fmt.Println(a.symbols) |
| 36 | return 0x0000, fmt.Errorf("Cannot find symbol: %s in symbol map", symbol.Name) |
| 37 | } else { |
| 38 | return v, nil |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func (a *Assembler) Process(codeStartOffset uint16, instructions []Instruction) ([]uint16, error) { |
| 43 | a.labels = make(map[string]uint16) |
nothing calls this directly
no outgoing calls
no test coverage detected