Hi, On Sun, Nov 08, 2009 at 09:38:32AM +0100, Gudjon I. Gudjonsson wrote: > Can you please test if this bug has been fixed in the current version?
It has not. To test this, you can do the following:
create a file named test.asm, with in it:
mov #18, *30
mov #18, 30
mov #18, 3000
Then run as-hc08 -o test.asm. This creates a file called test.rel. It
looks like this:
XH
H 1 areas 0 global symbols
A _CODE size 9 flags 0 addr 0
T 00 00 6E 12 1E 6E 12 1E 6E 12 B8
R 00 00 00 00
The line starting with T shows that (at address 0), there is 3 times the
same 3-byte command (6e 12 xx), where xx is 1e for 30, and b8 for 3000
(3000 & 0xff = 0xb8a).
If you only want to test, you don't even need to look at the output; if
"mov #18, 3000" compiles without errors, this bug is still present.
There should be an error for "mov #18, 30" as well, but it is not a big
problem if there isn't (it is obvious that it really means
"mov #18, *30", because there is no other option).
Thanks,
Bas
signature.asc
Description: Digital signature

