adumont / hrm-cpu

Human Resource Machine - CPU Design #HRM
https://twitter.com/i/moments/1017515777610649601
GNU General Public License v3.0
71 stars 8 forks source link

Assembler: label substitution in .BIN #8

Closed adumont closed 6 years ago

adumont commented 6 years ago

Doesn't substitute all labels in .BIN when used more than one.

Ex PROG:

init:
  00: 00    ; INBOX 
  01: 90 00 ; JUMPZ init
  03: 10    ; OUTBOX 
  04: 80 00 ; JUMP init

BIN generated: v2.0 raw 00 90 00 10 80 init

adumont commented 6 years ago

Fixed in cb8fa93767779f206d26a183a239f84bc564524f