You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hexadecimal values that contain BASIC keywords get mangled by PUTBASIC, as it converts them to BASIC tokens. For example, &3DEF gets converted to &3<token for DEF>, which obviously breaks things (though the listings still look correct, which makes it really difficult to spot!).
Attached in the zip are two example .bas files (test1.bas and test2.bas) that demonstrate the problem, one in BASIC and the other in assembler. You can build these into the test.ssd disc image using test.asm, like this:
beebasm -i test.asm -do test.ssd
The zip contains test.asm and test.ssd. To see the problem, load test.ssd and try CHAINing the test1 and test2 programs. The BASIC example in test1 gives up with an error, while the assembly example in test2 assembles, but the value of &3DEF is incorrectly put into memory as &3. The listings look OK, but that's because BASIC is showing the DEF token as "DEF", which is indistinguishable from the letters "D", "E" and "F". If you re-enter the offending lines within BASIC, the problem goes away.
The text was updated successfully, but these errors were encountered:
Hexadecimal values that contain BASIC keywords get mangled by PUTBASIC, as it converts them to BASIC tokens. For example, &3DEF gets converted to &3<token for DEF>, which obviously breaks things (though the listings still look correct, which makes it really difficult to spot!).
test.zip
Attached in the zip are two example .bas files (test1.bas and test2.bas) that demonstrate the problem, one in BASIC and the other in assembler. You can build these into the test.ssd disc image using test.asm, like this:
The zip contains test.asm and test.ssd. To see the problem, load test.ssd and try CHAINing the test1 and test2 programs. The BASIC example in test1 gives up with an error, while the assembly example in test2 assembles, but the value of &3DEF is incorrectly put into memory as &3. The listings look OK, but that's because BASIC is showing the DEF token as "DEF", which is indistinguishable from the letters "D", "E" and "F". If you re-enter the offending lines within BASIC, the problem goes away.
The text was updated successfully, but these errors were encountered: