bugZ80 assembler - Bugs: bug #31030, z80asm SIGSEGV on cp(ix)...

 
 

bug #31030: z80asm SIGSEGV on cp(ix) instruction with no offset specified

Submitted by:  None
Submitted on:  Tue 14 Sep 2010 10:15:45 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
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.

 

Thu 05 May 2016 02:01:46 PM UTC, comment #1:

confirmed, related to bug #47653

Peter Kollner <asgalon>
Project Member
Tue 14 Sep 2010 10:15:45 AM UTC, original submission:

The following instruction will cause z80asm (1.8) to dump core:

cp (ix)

The last part must be changed to (ix+0) to compile correctly. The -v(*6) output gives this before crashing:

5 (0x8004): Piece of code found:cp
5 (0x8004): Remainder of line= (ix) .
5 (0x8004): Piece of code found:( ix +)
5 (0x8004): Remainder of line= .
5 (0x8004): wrtb called with argument 0xbe
5 (0x8004): writing indexed byte 0xdd
5 (0x8004): write_one_byte called with argument 0xdd
5 (0x8005): writing byte 0xbe
5 (0x8005): write_one_byte called with argument 0xbe
5 (0x8006): Making reference for index/jump Segmentation fault (core dumped)

I'm not quibbling over whether "cp (ix)" is valid or not without an explicit offset, but the assembler should not crash.

This was running on OpenSolaris (x86) at the time (compiled with gcc 4.3 I think).

-- Brian Ruthven

Anonymous

 

(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 asgalon (Posted a comment)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 May 2016 02:01:46 PM UTCasgalonStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1