bugZ80 assembler - Bugs: bug #55596, Problem with undocumented...

 
 

bug #55596: Problem with undocumented instructions

Submitter:  None
Submitted:  Mon 28 Jan 2019 08:45:29 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 16 Mar 2021 04:42:21 PM UTC, comment #5: 

Fix available for testing.

Paul Flo Williams <hisdeedsaredust>
Group Member
Tue 16 Mar 2021 04:14:42 PM UTC, comment #4: 

Confirmed that:

1. ld a,ixh will fail with because ixh is unresolved.
2. <op> ixh will generate wrong opcode, where <op> is "add", "or", "sub", etc.

Fix coming today.

Paul Flo Williams <hisdeedsaredust>
Group Member
Sat 13 Mar 2021 03:47:15 PM UTC, comment #3: 

Please also check bug #51332. I have added a test asm file for that

Peter Kollner <asgalon>
Group Member
Sat 13 Mar 2021 03:34:53 PM UTC, comment #2: 

Hi, sorry, haven't seen this before. Please check with the patch #9377, which is already added now.

Peter Kollner <asgalon>
Group Member
Tue 02 Mar 2021 02:33:19 PM UTC, comment #1: 

I hope this is up for grabs as I've started working on it!

Paul Flo Williams <hisdeedsaredust>
Group Member
Mon 28 Jan 2019 08:45:29 PM UTC, original submission:  

I've discovered some issues with undocumented opcodes in z80asm 1.8. 

== inc ixl

arkos.asm:1697: error: parse error. Remainder of line=ixl

== ld a, ixl

arkos.asm:2738: error: unable to resolve reference: ixl

== or ixl

Assembles without any error but produces the wrong opcode. It should be DD B5, but produced DD B4, which is actually or ixh.

I have attached the file I was trying to assemble. As a workaround I commented out the problematic instruction and put the raw opcodes in place with defb.

I have not done a comprehensive test of undocumented opcodes, so they should all probably be double checked.

Here are some examples of undocumented insturctions that work correctly:


ld ixl,%1001
ld ixl,a
ld ixl,b


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46115:  arkos.asm added by None (59KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by asgalon (Posted a comment)
  • -email is unavailable- added by hisdeedsaredust (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-17 hisdeedsaredust StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2021-03-16 hisdeedsaredust StatusIn Progress Ready For Test
        Assigned tohisdeedsaredust None
    2021-03-13 asgalon StatusNone In Progress
        Assigned toNone hisdeedsaredust
    2019-01-28 None Attached File- Added arkos.asm, #46115

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code