10 rem bank 8 kb pages of the 16 mb xram into the memory map 20 poke 56,128:clr:rem keep basic's own data below $8000 30 poke 53359,86:poke 53359,88:poke 53359,33 40 if peek(53312)<>86 or peek(53313)<>88 then print "no vic-x here":end 50 if peek(53316)=0 then print "no xram: switch the reu on":end 60 rem --- window 0 at $8000 (slot 3), switched on (128) 70 poke 53333,0:poke 53334,131 80 poke 53332,5:poke 32768,53:rem page 5: store the character 5 90 poke 53332,200:poke 32768,50:rem page 200: store the character 2 100 rem --- one poke swaps all 8 kb back 110 poke 53332,5:print chr$(peek(32768)); 120 poke 53332,200:print chr$(peek(32768)) 130 poke 53334,0:rem window off: $8000 is c64 ram again