This ought to be obvious
Alan Adams (2486) 1149 posts |
I’m trying to run the following and getting “abort on data transfer” at line -2. If I remove the branch instruction, the error goes away. It makes no difference whether the target label exists or not. What am I missing?
|
Julie Stamp (8365) 474 posts |
Your two assembler passes are with |
David Pitt (3386) 1248 posts |
|
Colin (478) 2433 posts |
There isn’t an OPT 8 to 11, it does the same as 0 to 3 – unless I was out that day. You want 4 to 7. |
David Pitt (3386) 1248 posts |
DEF PROCasm FOR pass%=12 TO 15 STEP 3 *REPORT \G pass% ~code% ~size% O%=code% P%=0 L%=code%+size% [OPT pass% b skipdata .skipdata ] NEXT ENDPROC 00000000 OPT pass% 00000000 EAFFFFFF b skipdata 00000004 .skipdata * |
Steve Fryatt (216) 2105 posts |
Bit 3 enables bounds checking against the value in
12 to 15, as David says, might be better. |
Colin (478) 2433 posts |
Ah. I was out that day. |
Alan Adams (2486) 1149 posts |
Yes, I realised aftyer reading trhe first answer that I had omitted the flag for offset assembly, but yused the values for it. 12 to 15 is what I intended to use. Like I said – should have been obvious. |
Rick Murray (539) 13840 posts |
If in doubt, remember you can always use the |
Steve Pampling (1551) 8170 posts |
I’m reminded of the firewall rule number I inserted the other day. |