﻿ rem -----------------------------------------------------------------------------------------------------------------------------------------
 rem -----------------------------------------------------------------------------------------------------------------------------------------
 rem Atari 2600 Console Throw Switches Diagnostic program
 rem shows the position of the three throw switches on the console
 rem -----------------------------------------------------------------------------------------------------------------------------------------
 rem -----------------------------------------------------------------------------------------------------------------------------------------


 rem -------------------------------------------------
 rem ---init section, runs once: ---------------------
 rem -------------------------------------------------
 vwpixel(0,0,bindplayer0)
 loadplayer0(0)

 rem -------------------------------------------------
 rem --- gameloop subroutine, runs every frame:    ---
 rem -------------------------------------------------
 t=1-t:rem toggle alternate frames
 if t=1 then goto checkbwcolor
 
 rem check left/right difficulty throw switch settings:
 vwpixel(19,0,bindplayer1) 
 if SWCHB|%10111111=255 then loadplayer0(0) else loadplayer0(8)
 if SWCHB|%01111111=255 then loadplayer1(0) else loadplayer1(8)

 COLUP1=100
   
 return

checkbwcolor
 vwpixel(10,0,bindplayer1)
 loadplayer1(16)
 if SWCHB|%11110111=247 then COLUP1 = $0b else COLUP1=100

 rem -------------------------------------------------
 rem ---gameloop2 subroutine, runs every frame:   ---
 rem -------------------------------------------------
 
 rem  if f=3 and SWCHB|%11110111=247 then goto Frame1BottomVerticalBlank:rem --- Frame 3 can just repeat frame1's load for a double speed scroll!

virtualworld
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................
............................................................................................


sprites

........
........
.XXXXXX.
.X....X.
xXXXXXX.
XX....X.
XX....X.
XX....X.

........
........
XXXXXX..
XX...X..
XXXXXXX.
XX....X.
XX....X.
XXXXXXX.


..XXXX..
.XXXXXX.
X..XX..X
XXXXXXXX
XXX..XXX
X.XXXX.X
.X....X.
..XXXX..

........
........
........
........
........
........
........
........
