Sakrac / x65

6502 Macro Assembler in a single c++ file using the struse single file text parsing library. Supports most syntaxes.
MIT License
38 stars 7 forks source link

Local Labels that start with : don't work #2

Closed dwsJason closed 5 years ago

dwsJason commented 5 years ago

Example lst output below: $000a e2 30 sep #$30 3 sep #$30 asm/waitkey.s(33): $000c 8f 10 c0 e0 sta $e0c010 5+ stal $e0c010 :lp $0010 af 00 c0 e0 lda $e0c000 5+ ldal $e0c000 bpl :lp $0014 8f 10 c0 e0 sta $e0c010 5+ stal $e0c010

I have verified that if I swap the :lp lable, with .lp, that code does generate for the bpl :lp

I am using the linker if that makes any difference. Generating a GSOS application. Basically I noticed this because the program wasn't waiting for my key-press.

Sakrac commented 5 years ago

Totally forgot I support : for local labels! Turns out I added support for Kick Assembler syntax which conflicts with this. I can add a command line option for that to disambiguate and allow ':' for local labels again.

Sakrac commented 5 years ago

Fixed, if for any reason Kick Assembler code with macros are needed this can be disabled by passing in -KickAsm as a command line argument.

dwsJason commented 5 years ago

Confirmed Fixed.