bugZ80 assembler - Bugs: bug #12261, RFE: Warn for junk at end of line


bug #12261: RFE: Warn for junk at end of line

Submitted by:  None
Submitted on:  Wed 09 Mar 2005 04:40:03 PM UTC
Category:  None Severity:  2 - Minor
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Thu 10 Mar 2005 11:15:50 AM UTC, comment #1: 

CP and SUB are very much like ADD, SBC, ADC, etc.  However, there is a difference: CP and SUB can only be performed on A, while the others can also be performed on (at least) HL.

For this reason, according to my documentation, the first argument should not be specified for CP and SUB.  So the correct way of writing it would be
CP 002h
which is assembled correctly.

However, the assembler should at least emit a warning about the junk at end of line which was not parsed.  Perhaps it would be a good idea to also allow this alternative notation.

Bas Wijnen <shevek>
Project Administrator
Wed 09 Mar 2005 04:40:03 PM UTC, original submission:  

CP A, 002h should compile to: FE 02, but instead compiles to BF, which is the opcode for CP A, A.



(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


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
2005-03-10 shevek Severity3 - Normal => 2 - Minor
    Summarycp a.nn compiles as cp a,a => RFE: Warn for junk at end of line

Back to the top

Powered by Savane 3.9