jimbro1000 / online6809

Online Motorola 6809 Emulator
https://6809.ukdragons.org.uk
7 stars 5 forks source link

Assembler does not respect address mode hints #10

Open jimbro1000 opened 1 year ago

jimbro1000 commented 1 year ago

The "<" and ">" hints for addressing are not observed or respected

E.g. LDA <REG81,PCR This should force the assembler to treat the label "REG81" as an 8-bit offset value, provided the REG81 label address is within 127 bytes of the program counter address

REG81  FCB   0
TADA   LDU   #LADA
       LBSR  CLRMEM
       LDA   #$13
       STA   REG81
       LDA   <REG81,PCR

Should treat REG81 as -11. While technically this fits in the 5-bit offset capability the < hint should force the 8-bit offset mode

See page 3-49 of Leventhal 6809 Assembly Language Programming