][ HI-RES GRAPHICS ][

Page 16 of 24

HI-RES COLORS

0 = Black1 (Gr/V1)
1 = Green
2 = Violet
3 = White1 (Gr/V1)
4 = Black2 (Or/B1)
5 = Orange
6 = Blue
7 = White2 (Or/B1)

HI-RES GRAPHICS COMMANDS

POKE 28,C.........COLOR of Shape (C=0-7) PEEK (224) + PEEK (225) * 256...........Horizontal position of last HPLOT PEEK (224-225)....Hi-Res Graphics X Coordinate PEEK (226)........Hi-Res Graphics Y Coordinate POKE 228,X........Hi-Res Graphics Color Byte (X can be 0-255) PEEK (230)........Hi-Res Plotting Page. (32=Page 1, 64=Page 2, 96=Page 3) POKE 231,S........Set SCALE of Shape PEEK (232-233)....Shape Table Starting Address PEEK (234)........Collision Counter for Shapes PEEK (241)........SPEED (256 - current speed) POKE 241,X........Set the speed to X (0-255) PEEK (243)........FLASH Mask POKE 249,R........Set ROTATION of Shape (R=1 to 64; 0=Normal; 16 = 90° Clockwise) POKE 800,H........Set Horizontal Coordinate. (H=MODULUS 256 clockwise) POKE 801,H/256....H = 0 (left) to 279 (right). Both POKE 800 and 801 required POKE 802,V........Sets Vertical Coordinate. (V = 0 (top) to 159 (bottom)) POKE 804,S........Starting Address of Shape Table Low Byte (S=MODULUS 256) POKE 805,S/256....Starting Address of Shape Table High Byte POKE 812,X........Set COLOR for Hi-Res CALL -11780.......FIND or Position CALL -11272.......FIND or Background (HCOLOR 1 set for black background) CALL -11471.......Hi-Res Graphics Background COLOR CALL -11462.......Hi-Res DRAW1 (X0,Y0,COLOR) CALL -11335.......Hi-Res SHLOAD CALL -3805........Draw predefined Shape CALL -3761........Plot a Point on Screen CALL -3116........HGR (especially useful in Integer BASIC) CALL -3114........Restore Page 1 picture after pressing RESET CALL -3106........HGR2 (especially useful in Integer BASIC) CALL -3100........Show Hi-Res Page 1 CALL -3086........Clear Hi-Res screen to Black CALL -3082........Clear Hi-Res screen to last used HCOLOR CALL -2613........Determine the next shape table DRAW/XDRAW CALL 62450........CLEAR current Hi-Res screen to BLACK CALL 62454........CLEAR current Hi-Res screen to HCOLOR of last dot plotted Save Hi-Res Page 1 Picture..............BSAVE PICTURE, A$2000, L$2000 Save Hi-Res Page 2 Picture..............BSAVE PICTURE, A$4000, L$2000 Make Picture BRUNable...................POKE 8191,96: BSAVE PICTURE,A$1FFF,L$2001 Move Picture from Page 2 to Page 1......CALL -151, 2000<4000.5FFFM