Talk:Detokenising in 6502 machine code

From BeebWiki
Revision as of 23:19, 9 March 2015 by Jgharston (talk | contribs)
Jump to: navigation, search

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

The P%= needs to be inside the loop, not outside! :) See DetokenDemo. Jgharston (talk) 22:19, 9 March 2015 (UTC)