Difference between revisions of "Talk:Detokenising in 6502 machine code"

From BeebWiki
Jump to: navigation, search
m (highlighting)
m
Line 9: Line 9:
 
The '''P%=''' needs to be ''inside'' the loop, not outside! :)
 
The '''P%=''' needs to be ''inside'' the loop, not outside! :)
 
See [http://mdfs.net/Info/Comp/BBC/ProgTips/Detoken DetokenDemo].
 
See [http://mdfs.net/Info/Comp/BBC/ProgTips/Detoken DetokenDemo].
 +
 
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 22:19, 9 March 2015 (UTC)
 
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 22:19, 9 March 2015 (UTC)

Revision as of 23:21, 9 March 2015

I tried to make a listing (below) out of the code and run it in BeebEm, but it just prints out "128: AND" and then hangs. What am I doing wrong? Apologies if it's something incredibly obvious.

5 tbase=&70:tptr=&72:OSWRCH=&FFEE
10 P%=&4000:FORV%=0TO3STEP3:[
20 OPT V%

Lurkio (talk) 20:52, 9 March 2015 (UTC)

The P%= needs to be inside the loop, not outside! :) See DetokenDemo.

Jgharston (talk) 22:19, 9 March 2015 (UTC)