asm80 / asm80-node

ASM80 is the assembler for old 8bit CPUs. This is a standalone version for Node.js
http://www.asm80.com
MIT License
21 stars 6 forks source link

6502 Assembler ignoring 1-byte instructions #8

Closed NullMember closed 6 years ago

NullMember commented 6 years ago

Hi. Your project is awesome. Thank you for your hard work. Probably latest commit broke 6502 assembler. All 1-byte instructions are ignored. Here is example:

LDX #0xFF LOOP: CLC INX DEY BNE LOOP

Listing:

0000 A2 FF LDX #0xFF
0002 LOOP:
0002 00 CLC
0002 00 INX
0002 00 DEY
0002 D0 FE BNE LOOP
LOOP: 0002 DEFINED AT LINE 2 USED AT LINE 6

maly commented 6 years ago

It should be fixed now, commit #fa4f92e, version 1.8.1