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: NoneSeverity: 2 - Minor
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.

 

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.

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

 

CC list is empty

 

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

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 10 Mar 2005 11:15:50 AM UTCshevekSeverity3 - 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.1-cleanup1