bugZ80 assembler - Bugs: bug #51332, Wrong opcode generated for...


bug #51332: Wrong opcode generated for "add a,ixh"

Submitted by:  Tomaž Šolc <avian>
Submitted on:  Wed 28 Jun 2017 11:36:24 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 28 Jun 2017 11:36:24 AM UTC, original submission:  


z80asm generates a wrong opcode for "add a,ixh" (and possibly other undocumented instructions involving IXH and IXL).

How to reproduce (using latest code from git, commit f49176a):

$ cat test.asm
add a,ixh
$ src/z80asm -o test.bin test.asm
$ hd test.bin

                1. dd 85

Generated opcode should be "dd 84" (opcode for "add a,h" with "dd" prefix). See:


If this project is still maintained, I can make a patch for this bug, like I recently did for "inc ixh".

Best regards

Tomaž Šolc <avian>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by avian (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5