kevinpt / opbasm

Open PicoBlaze Assembler
http://kevinpt.github.io/opbasm/
MIT License
60 stars 13 forks source link

Writing "label :" will cause opbasm to not define the label as expected #31

Open lf- opened 2 years ago

lf- commented 2 years ago

Example broken code:

label : or s0, s0
call label

Output from latest master:

» opbasm -m 1024 -3 --verbose wat.psm
OPBASM - Open PicoBlaze Assembler 1.3.9
Target architecture: PicoBlaze-3
  Device configuration:
    Memory size: 1024, Scratchpad size: 64

  Reading source: wat.psm

  Assembling code...

ERROR: Invalid address: label
  wat.psm line 2:  call label