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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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:

Hi,

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:

http://www.z80.info/z80undoc.htm

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

Best regards
Tomaž

Tomaž Šolc <avian>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1