bugZ80 assembler - Bugs: bug #50211, Modulo operation missing in...

 
 

bug #50211: Modulo operation missing in expressions

Submitter:  None
Submitted:  Thu 02 Feb 2017 08:54:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Feb 2017 08:54:43 PM UTC, original submission:  

Hello Peter and Bas,

when I played around with lookup tables I noticed, that the calculation of the modulo operation does not work at all. It always returns zero (e.g. LD A,10%7 results in 0 instead of 3). Looking in the source code I found the modulo operation not implemented as stated in the documentation. Therefore I'd like to contribute a patch for adding modulo support as well. It can be found in the attachments of this submission.

Best regards,
Stefan Koch

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #41325:  z80asm-1.8+modulo_revised.diff added by None (1KiB - application/octet-stream)
file #39649:  z80asm-1.8+modulo.diff added by None (906B - application/octet-stream - patch for adding modulo support in expressions)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2017-07-25 None Attached File- Added z80asm-1.8+modulo_revised.diff, #41325
2017-02-02 None Attached File- Added z80asm-1.8+modulo.diff, #39649

Back to the top

Powered by Savane 3.14-f13d.
Corresponding source code