From: SourceForge.net <no...@so...> - 2009-02-23 23:19:52
|
Bugs item #1704376, was opened at 2007-04-20 16:21 Message generated for change (Comment added) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1704376&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: z80 port Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Philipp Krause (spth) Assigned to: Nobody/Anonymous (nobody) Summary: missing as-z80 errors Initial Comment: as-z80 does not give an error for some nonsense instructions and terminates as if the code had been assembled successfully. One examp,e is jr M,somewhere. While there is a jp M, somewhere and coditional jr (with flags other than M) there is no jr M, somewhere. Not as an official instruction, not as an unofficial one. It took me some time to debug code with a jr M, somewhere in it, when the code would work with either branch chosen unconditionally, but not with the conditional jump. I think as-z80 should give an erro message in such cases. ---------------------------------------------------------------------- >Comment By: Borut Ražem (borutr) Date: 2009-02-23 22:38 Message: Thanks Philipp, I found by myself too that the error was caused by too long relative jump and not by invalid addressing mode. Can you tell me where I can find a z80 instruction set reference in order to find other invalid jr addressing modes (jr PO,somewhere; jr PE,somewhere; jr P,somewhere; ...). Sorry for false alarm ;-( Borut ---------------------------------------------------------------------- Comment By: Philipp Krause (spth) Date: 2009-02-23 22:27 Message: File Added: test.s ---------------------------------------------------------------------- Comment By: Borut Ražem (borutr) Date: 2009-02-23 22:16 Message: I tried with the following example: ----8<---- nn = 0x0584 jr M,nn ---->8---- and the assembler complained with: t.asm:2: Error: <a> machine specific addressing or addressing mode error which seems OK to me!!?? Bort ---------------------------------------------------------------------- Comment By: Borut Ražem (borutr) Date: 2009-02-23 18:36 Message: Philipp, can you attach a small example so that I can test it with the original asxxxx V04.11? Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1704376&group_id=599 |