z80asm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Z80asm-devel] [bugs #12261] RFE: Warn for junk at end of line


From: Bas Wijnen
Subject: [Z80asm-devel] [bugs #12261] RFE: Warn for junk at end of line
Date: Thu, 10 Mar 2005 11:15:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050210 Firefox/1.0 (Debian package 1.0+dfsg.1-6)

Update of bugs #12261 (project z80asm):

                Severity:             5 - Average => 3 - Ordinary           
                 Summary: cp a.nn compiles as cp a,a => RFE: Warn for junk at
end of line

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12261>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]