informedcitizenry / 6502.Net

A .Net-based Cross-Assembler for Several 8-Bit Microprocessors
MIT License
58 stars 17 forks source link

Incorrect assembly for the Z80 #15

Closed SuperJMN closed 1 year ago

SuperJMN commented 1 year ago

When assembling this code:

LABEL ld hl, 1
djnz LABEL

It should have assembled as:

21
01
00
10
FB

However, it assembled as:

21
01
00
10
FC

Please, notice that the last line is different (FB vs FC) Am I missing something?

Thanks!

informedcitizenry commented 1 year ago

Thanks I'll take a look. That's a big one.

informedcitizenry commented 1 year ago

This is fixed now.