1 *RASTER GRAPHICS -GR.8 EXAMPLE - WITH MUSIC- JEFF STANTON 2 ORG $4000 3 *ZERO PAGE EQUATES 4 SHPL EQU $F0 5 SHPH EQU $F1 6 HIRESL EQU $F2 7 HIRESH EQU $F3 8 SL EQU $F4 9 SH EQU $F5 10 *OTHER EQUATES 11 SCREEN EQU $6000 ;SCREEN IS ACTUALLY OFFSET 496 BYTES @ $61FO 12 NDLIST EQU $6000 ;ADR OF DISPLAY LIST 13 STICK EQU $278 14 COLOR1 EQU $2C5 15 COLOR2 EQU $2C6 16 AUDC1 EQU $D201 17 AUDF1 EQU $D200 18 NOTEL EQU $F6 19 NOTEH EQU $F7 20 SETVBK EQU $E45C 21 XITVBK EQU $E462 22 *LINE LOOKUP TABLE - LO BYTE STARTS AT $4000 4000 F01840 23 YVERTL DB $F0,$18,$40,$68,$90,$B8,$E0,$08 4008 305880 24 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 4010 7098C0 25 DB $70,$98,$C0,$E8,$10,$38,$60,$88 4018 B0D800 26 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 4020 F01840 27 DB $F0,$18,$40,$68,$90,$B8,$E0,$08 4028 305880 28 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 4030 7098C0 29 DB $70,$98,$C0,$E8,$10,$38,$60,$88 4038 B0D800 30 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 4040 F01840 31 DB $F0,$18,$40,$68,$90,$B8,$E0,$08 4048 305880 32 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 4050 7098C0 33 DB $70,$98,$C0,$E8,$10,$38,$60,$88 4058 B0D800 34 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 4060 F01840 35 DB $F0,$18,$40,$68,$90,$B8,$E0,$08 4068 305880 36 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 4070 7098C0 37 DB $70,$98,$C0,$E8,$10,$38,$60,$88 4078 B0D800 38 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 4080 F01840 39 DB $F0,$18,$40,$68,$90,$B8,$E0,$08 4088 305880 40 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 4090 7098C0 41 DB $70,$98,$C0,$E8,$10,$38,$60,$88 4098 B0D800 42 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 40A0 F01840 43 DB $F0,$18,$40,$68,$90,$B8,$E0,$08 40A8 305880 44 DB $30,$58,$80,$A8,$D0,$F8,$20,$48 40B0 7098C0 45 DB $70,$98,$C0,$E8,$10,$38,$60,$88 40B8 B0D800 46 DB $B0,$D8,$00,$28,$50,$78,$A0,$C8 40C0 000000 47 DS $40 48 *LINE L00KUP TABLE - HI BYTE STARTS AT $4100 4100 010202 49 YVERTH DB $01,$02,$02,$02,$02,$02,$02,$03 4108 030303 50 DB $03,$03,$03,$03,$03,$03,$04,$04 4110 040404 51 DB $04,$04,$04,$04,$05,$05,$05,$05 4118 050506 52 DB $05,$05,$06,$06,$06,$06,$06,$06 4120 060707 53 DB $06,$07,$07,$07,$07,$07,$07,$08 4128 080808 54 DB $08,$08,$08,$08,$08,$08,$09,$09 4130 090909 55 DB $09,$09,$09,$09,$0A,$0A,$0A,$0A 4138 0A0A0B 56 DB $0A,$0A,$0B,$0B,$0B,$0B,$0B,$0B 4140 0B0C0C 57 DB $0B,$0C,$0C,$0C,$0C,$0C,$0C,$0D 4148 0D0D0D 58 DB $0D,$0D,$0D,$0D,$0D,$0D,$0E,$0E 4150 0E0E0E 59 DB $0E,$0E,$0E,$0E,$0F,$0F,$0F,$0F 4158 0F0F10 60 DB $0F,$0F,$10,$10,$10,$10,$10,$10 4160 101111 61 DB $10,$11,$11,$11,$11,$11,$11,$12 4168 121212 62 DB $12,$12,$12,$12,$12,$12,$13,$13 4170 131313 63 DB $13,$13,$13,$13,$14,$14,$14,$14 4178 141415 64 DB $14,$14,$15,$15,$15,$15,$15,$15 4180 151616 65 DB $15,$16,$16,$16,$16,$16,$16,$17 4188 171717 66 DB $17,$17,$17,$17,$17,$17,$18,$18 4190 181818 67 DB $18,$18,$18,$18,$19,$19,$19,$19 4198 19191A 68 DB $19,$19,$1A,$1A,$1A,$1A,$1A,$1A 41A0 1A1B1B 69 DB $1A,$1B,$1B,$1B,$1B,$1B,$1B,$1C 41A8 1C1C1C 70 DB $1C,$1C,$1C,$1C,$1C,$1C,$1D,$1D 41B0 1D1D1D 71 DB $1D,$1D,$1D,$1D,$1E,$1E,$1E,$1E 41B8 1E1E1F 72 DB $1E,$1E,$1F,$1F,$1F,$1F,$1F,$1F 41C0 000000 73 DS $40 74 *DISPLAY LIST STARTS AT $4200 4200 707070 75 DLIST DB $70,$70,$70,$4F,$F0,$61,$0F,$0F 4208 0F0F0F 76 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4210 0F0F0F 77 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4218 0F0F0F 78 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4220 0F0F0F 79 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4228 0F0F0F 80 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4230 0F0F0F 81 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4238 0F0F0F 82 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4240 0F0F0F 83 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4248 0F0F0F 84 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4250 0F0F0F 85 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4258 0F0F0F 86 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$4F 4260 00700F 87 DB $00,$70,$0F,$0F,$0F,$0F,$0F,$0F 4268 0F0F0F 88 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4270 0F0F0F 89 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4278 0F0F0F 90 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4280 0F0F0F 91 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4288 0F0F0F 92 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4290 0F0F0F 93 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 4298 0F0F0F 94 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 42A0 0F0F0F 95 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 42A8 0F0F0F 96 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 42B0 0F0F0F 97 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 42B8 0F0F0F 98 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$0F 42C0 0F0F0F 99 DB $0F,$0F,$0F,$0F,$0F,$0F,$0F,$41 42C8 0060 100 DB $00,$60 42CA 000000 101 DS $36 102 *HORIZONTAL OFFSET TABLE - START AT $4300 103 *THIS POINTS TO PROPER OFFSET SHAPE FOR EACH X POS (0-159) 4300 000102 104 XOFF DB $00,$01,$02,$03,$00,$01,$02,$03 4308 000102 105 DB $00,$01,$02,$03,$00,$01,$02,$03 4310 000102 106 DB $00,$01,$02,$03,$00,$01,$02,$03 4318 000102 107 DB $00,$01,$02,$03,$00,$01,$02,$03 4320 000102 108 DB $00,$01,$02,$03,$00,$01,$02,$03 4328 000102 109 DB $00,$01,$02,$03,$00,$01,$02,$03 4330 000102 110 DB $00,$01,$02,$03,$00,$01,$02,$03 4338 000102 111 DB $00,$01,$02,$03,$00,$01,$02,$03 4340 000102 112 DB $00,$01,$02,$03,$00,$01,$02,$03 4348 000102 113 DB $00,$01,$02,$03,$00,$01,$02,$03 4350 000102 114 DB $00,$01,$02,$03,$00,$01,$02,$03 4358 000102 115 DB $00,$01,$02,$03,$00,$01,$02,$03 4360 000102 116 DB $00,$01,$02,$03,$00,$01,$02,$03 4368 000102 117 DB $00,$01,$02,$03,$00,$01,$02,$03 4370 000102 118 DB $00,$01,$02,$03,$00,$01,$02,$03 4378 000102 119 DB $00,$01,$02,$03,$00,$01,$02,$03 4380 000102 120 DB $00,$01,$02,$03,$00,$01,$02,$03 4388 000102 121 DB $00,$01,$02,$03,$00,$01,$02,$03 4390 000102 122 DB $00,$01,$02,$03,$00,$01,$02,$03 4398 000102 123 DB $00,$01,$02,$03,$00,$01,$02,$03 124 *SHPLO CONTAINS LO ORDER BYTE ADDRESS OF OUR 4 SHAPES 43A0 00172E 125 SHPLO DB $00,$17,$2E,$45 126 *SHPHI CONTAINS HI ORDER BYTE ADDRESS OF OUR 4 SHAPES 43A4 444546 127 SHPHI DB $44,$45,$46,$47 43A8 000000 128 DS $58 129 *SHAPES MUST BEGIN AT $4400 130 *SHAPE0 4400 02AAAA 131 SHAPES DB $02,$AA,$AA,$AA,$AA,$AA,$80,$00,$00 4409 0AAAAA 132 DB $0A,$AA,$AA,$AA,$AA,$AA,$A8,$00,$00 4412 2AAAAA 133 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$00,$00 441B 2AAAAA 134 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 4424 AAAAAA 135 DB $AA,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 442D AAAAAA 136 DB $AA,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 4436 2AAAAA 137 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 443F 2AAAAA 138 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$00,$00 4448 0AAAAA 139 DB $0A,$AA,$AA,$AA,$AA,$AA,$A8,$00,$00 4451 000001 140 DB $00,$00,$01,$55,$40,$00,$00,$00,$00 445A 000381 141 DB $00,$03,$81,$55,$40,$00,$00,$00,$00 4463 000380 142 DB $00,$03,$80,$55,$00,$00,$00,$00,$00 446C 000100 143 DB $00,$01,$00,$15,$00,$00,$00,$00,$00 4475 000780 144 DB $00,$07,$80,$18,$00,$00,$00,$00,$00 447E 000180 145 DB $00,$01,$80,$18,$00,$00,$00,$00,$00 4487 4007AA 146 DB $40,$07,$AA,$8A,$80,$00,$C0,$A0,$00 4490 501F02 147 DB $50,$1F,$02,$AA,$80,$00,$C2,$A8,$00 4499 501C00 148 DB $50,$1C,$00,$AA,$80,$00,$E2,$AB,$00 44A2 540000 149 DB $54,$00,$00,$0A,$80,$00,$EA,$AB,$00 44AB 5507FF 150 DB $55,$07,$FF,$FF,$FF,$FD,$EA,$AB,$00 44B4 550FFF 151 DB $55,$0F,$FF,$FF,$FF,$E5,$E2,$AB,$00 44BD 555FFF 152 DB $55,$5F,$FF,$FF,$FF,$D4,$02,$A8,$00 44C6 554000 153 DB $55,$40,$00,$18,$00,$10,$00,$A0,$00 44CF 505000 154 DB $50,$50,$00,$18,$00,$50,$00,$00,$00 44D8 501000 155 DB $50,$10,$00,$18,$00,$40,$00,$00,$00 44E1 401400 156 DB $40,$14,$00,$18,$01,$40,$00,$00,$00 44EA 000500 157 DB $00,$05,$00,$18,$01,$00,$00,$00,$00 44F3 000540 158 DB $00,$05,$40,$54,$05,$00,$00,$00,$00 44FC 000155 159 DB $00,$01,$55,$55,$54,$00,$00,$00,$00 4505 000055 160 DB $00,$00,$55,$55,$54,$00,$00,$00,$00 450E 000015 161 DB $00,$00,$15,$01,$50,$00,$00,$00,$00 162 *SHAPE #1 SHIFTED RT 2 PIXELS 4517 00AAAA 163 DB $00,$AA,$AA,$AA,$AA,$AA,$A0,$00,$00 4520 02AAAA 164 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$00,$00 4529 0AAAAA 165 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 4532 0AAAAA 166 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 453B 2AAAAA 167 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 4544 2AAAAA 168 DB $2A,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 454D 0AAAAA 169 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 4556 0AAAAA 170 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 455F 02AAAA 171 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$00,$00 4568 000000 172 DB $00,$00,$00,$55,$50,$00,$00,$00,$00 4571 0000E0 173 DB $00,$00,$E0,$55,$50,$00,$00,$00,$00 457A 0000E0 174 DB $00,$00,$E0,$15,$40,$00,$00,$00,$00 4583 000040 175 DB $00,$00,$40,$05,$40,$00,$00,$00,$00 458C 0001E0 176 DB $00,$01,$E0,$06,$00,$00,$00,$00,$00 4595 000060 177 DB $00,$00,$60,$06,$00,$00,$00,$30,$00 459E 1001EA 178 DB $10,$01,$EA,$A2,$A0,$00,$30,$28,$00 45A7 1407C0 179 DB $14,$07,$C0,$AA,$A0,$00,$30,$28,$00 45B0 140700 180 DB $14,$07,$00,$AA,$A0,$00,$30,$AA,$C0 45B9 150000 181 DB $15,$00,$00,$02,$A0,$00,$78,$AA,$C0 45C2 1501FF 182 DB $15,$01,$FF,$FF,$FF,$FF,$7A,$AA,$C0 45CB 1503FF 183 DB $15,$03,$FF,$FF,$FF,$F9,$78,$AA,$C0 45D4 1557FF 184 DB $15,$57,$FF,$FF,$FF,$F5,$00,$AA,$00 45DD 155000 185 DB $15,$50,$00,$06,$00,$04,$00,$28,$00 45E6 141400 186 DB $14,$14,$00,$06,$00,$14,$00,$00,$00 45EF 140400 187 DB $14,$04,$00,$06,$00,$10,$00,$00,$00 45F8 100500 188 DB $10,$05,$00,$06,$00,$50,$00,$00,$00 4601 000140 189 DB $00,$01,$40,$06,$00,$40,$00,$00,$00 460A 000150 190 DB $00,$01,$50,$15,$01,$40,$00,$00,$00 4613 000055 191 DB $00,$00,$55,$55,$55,$00,$00,$00,$00 461C 000015 192 DB $00,$00,$15,$55,$55,$00,$00,$00,$00 4625 000005 193 DB $00,$00,$05,$40,$54,$00,$00,$00,$00 194 *SHAPE #2 SHIFTED RT 4 PIXELS 462E 002AAA 195 DB $00,$2A,$AA,$AA,$AA,$AA,$A8,$00,$00 4637 00AAAA 196 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 4640 02AAAA 197 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 4649 02AAAA 198 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 4652 0AAAAA 199 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 465B 0AAAAA 200 DB $0A,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 4664 02AAAA 201 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 466D 02AAAA 202 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$A0,$00 4676 00AAAA 203 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$80,$00 467F 000000 204 DB $00,$00,$00,$15,$54,$00,$00,$00,$00 4688 000038 205 DB $00,$00,$38,$15,$54,$00,$00,$00,$00 4691 000038 206 DB $00,$00,$38,$05,$50,$00,$00,$00,$00 469A 000010 207 DB $00,$00,$10,$01,$50,$00,$00,$00,$00 46A3 000078 208 DB $00,$00,$78,$01,$80,$00,$00,$00,$00 46AC 000018 209 DB $00,$00,$18,$01,$80,$00,$00,$00,$00 46B5 04007E 210 DB $04,$00,$7E,$E8,$A8,$00,$0C,$0A,$00 46BE 0501F0 211 DB $05,$01,$F0,$6A,$A8,$00,$0C,$2A,$80 46C7 0501C0 212 DB $05,$01,$C0,$0A,$A8,$00,$1E,$2A,$B0 46D0 054000 213 DB $05,$40,$00,$00,$A8,$00,$1E,$AA,$B0 46D9 05507F 214 DB $05,$50,$7F,$FF,$FF,$FF,$DE,$AA,$B0 46E2 0550FF 215 DB $05,$50,$FF,$FF,$FF,$FE,$5E,$2A,$B0 46EB 0555FF 216 DB $05,$55,$FF,$FF,$FF,$FD,$40,$2A,$80 46F4 055400 217 DB $05,$54,$00,$01,$80,$01,$00,$0A,$00 46FD 050500 218 DB $05,$05,$00,$01,$80,$05,$00,$00,$00 4706 050100 219 DB $05,$01,$00,$01,$80,$04,$00,$00,$00 470F 040140 220 DB $04,$01,$40,$01,$80,$14,$00,$00,$00 4718 000050 221 DB $00,$00,$50,$01,$80,$10,$00,$00,$00 4721 000054 222 DB $00,$00,$54,$05,$40,$50,$00,$00,$00 472A 000015 223 DB $00,$00,$15,$55,$55,$40,$00,$00,$00 4733 000005 224 DB $00,$00,$05,$55,$55,$40,$00,$00,$00 473C 000001 225 DB $00,$00,$01,$50,$15,$00,$00,$00,$00 226 *SHAPE #3 SHIFTED RT 6 PIXELS 4745 000AAA 227 DB $00,$0A,$AA,$AA,$AA,$AA,$AA,$00,$00 474E 002AAA 228 DB $00,$2A,$AA,$AA,$AA,$AA,$AA,$A0,$00 4757 00AAAA 229 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 4760 00AAAA 230 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$00 4769 02AAAA 231 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$00 4772 02AAAA 232 DB $02,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$00 477B 00AAAA 233 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$AA,$00 4784 00AAAA 234 DB $00,$AA,$AA,$AA,$AA,$AA,$AA,$A8,$00 478D 002AAA 235 DB $00,$2A,$AA,$AA,$AA,$AA,$AA,$A0,$00 4796 000000 236 DB $00,$00,$00,$05,$55,$00,$00,$00,$00 479F 00000E 237 DB $00,$00,$0E,$05,$55,$00,$00,$00,$00 47A8 00000E 238 DB $00,$00,$0E,$01,$54,$00,$00,$00,$00 47B1 000004 239 DB $00,$00,$04,$00,$54,$00,$00,$00,$00 47BA 00001E 240 DB $00,$00,$1E,$00,$60,$00,$00,$00,$00 47C3 000006 241 DB $00,$00,$06,$00,$60,$00,$00,$00,$00 47CC 01001E 242 DB $01,$00,$1E,$AA,$2A,$00,$03,$02,$80 47D5 01407C 243 DB $01,$40,$7C,$0A,$AA,$00,$03,$0A,$A0 47DE 014070 244 DB $01,$40,$70,$02,$AA,$00,$07,$8A,$AC 47E7 015000 245 DB $01,$50,$00,$00,$2A,$00,$07,$AA,$AC 47F0 01541F 246 DB $01,$54,$1F,$FF,$FF,$FF,$F7,$AA,$AC 47F9 01543F 247 DB $01,$54,$3F,$FF,$FF,$FF,$97,$8A,$AC 4802 01557F 248 DB $01,$55,$7F,$FF,$FF,$FF,$50,$0A,$A0 480B 015500 249 DB $01,$55,$00,$00,$60,$00,$40,$02,$80 4814 014140 250 DB $01,$41,$40,$00,$60,$01,$40,$00,$00 481D 014040 251 DB $01,$40,$40,$00,$60,$01,$00,$00,$00 4826 010050 252 DB $01,$00,$50,$00,$60,$05,$00,$00,$00 482F 000014 253 DB $00,$00,$14,$00,$60,$04,$00,$00,$00 4838 000015 254 DB $00,$00,$15,$01,$50,$14,$00,$00,$00 4841 000005 255 DB $00,$00,$05,$55,$55,$50,$00,$00,$00 484A 000001 256 DB $00,$00,$01,$55,$55,$50,$00,$00,$00 4853 000000 257 DB $00,$00,$00,$54,$05,$40,$00,$00,$00 258 *START TABLE ON EVEN PAGE BOUNDARY 485C 000000 259 DS $A4 4900 43103F 260 NOTES DB $43,$10,$3F,$08,$38,$20,$00,$14 ;P1M1 4908 43084B 261 DB $43,$08,$4B,$10,$43,$08,$54,$40 4910 431043 262 DB $43,$10,$43,$08,$4B,$10,$54,$08 4918 652000 263 DB $65,$20,$00,$10,$65,$08,$43,$10 ;P1M2 4920 43084B 264 DB $43,$08,$4B,$20,$00,$10 4926 43103F 265 DB $43,$10,$3F,$08,$38,$20,$00,$14 ;P1M1 492E 43084B 266 DB $43,$08,$4B,$10,$43,$08,$54,$40 4936 431043 267 DB $43,$10,$43,$08,$4B,$10,$54,$08 493E 652000 268 DB $65,$20,$00,$10,$65,$08,$43,$10 ;P1M2 4946 43084B 269 DB $43,$08,$4B,$20,$00,$10 494C 382000 270 DB $38,$20,$00,$02,$38,$20,$00,$02,$38,$20,$38,$10 ;P2M1 4958 000238 271 DB $00,$02,$38,$10,$32,$08,$4B,$10,$00,$02 4962 4B0800 272 DB $4B,$08,$00,$02,$4B,$10,$00,$02,$4B,$08,$00,$02,$4B,$40,$00 4971 024B10 273 DB $02,$4B,$10 ;P2M2 4974 00024B 274 DB $00,$02,$4B,$08,$00,$02,$4B,$10,$00,$02,$4B,$08,$00,$02,$4B 4983 40 275 DB $40 4984 541000 276 DB $54,$10,$00,$02,$54,$08,$00,$02,$54 498D 100002 277 DB $10,$00,$02,$54,$08,$00,$02,$54,$40 ;P2M3 4996 382000 278 DB $38,$20,$00,$02,$38,$20,$00,$02,$38,$20,$38,$10 ;P2M1 49A2 000238 279 DB $00,$02,$38,$10,$32,$08,$4B,$10,$00,$02 49AC 4B0800 280 DB $4B,$08,$00,$02,$4B,$10,$00,$02,$4B 49B5 080002 281 DB $08,$00,$02,$4B,$40,$00,$02,$4B,$10 ;P2M2 49BE 00024B 282 DB $00,$02,$4B,$08,$00,$02,$4B,$10,$00 49C7 024B08 283 DB $02,$4B,$08,$00,$02,$4B,$40 49CE 541000 284 DB $54,$10,$00,$02,$54,$08,$00,$02,$54 49D7 100002 285 DB $10,$00,$02,$54,$08,$00,$02,$54,$40 ;P2M3 49E0 0015FF 286 DB $00,$15,$FF ;REST & REPEAT 287 *VARIABLES 49E3 00 288 XX DS 1 49E4 00 289 YY DS 1 49E5 00 290 HORIZ DS 1 49E6 00 291 TEMP DS 1 49E7 00 292 DEPTH DS 1 49E8 00 293 SLNGH DS 1 49E9 00 294 VERT DS 1 49EA 00 295 OFFSET DS 1 49EB 00 296 POINTER DS 1 49EC 00 297 TIME DS 1 49ED 00 298 TDELAY DS 1 49EE 00 299 VBFLAG DS 1 300 *CLEAR SCREEN 8K INCLUDING NDLIST AREA 49EF A900 301 CLRSCR LDA #>SCREEN ;SETUP POINTERS TO CLEAR SCREEN 49F1 85F4 302 STA SL 49F3 A960 303 LDA #NDLIST 4A15 8D3002 322 STA 560 4A18 A960 323 LDA #NOTES ;GET LO BYTE OF TABLE 4A3B 85F6 338 STA NOTEL 4A3D A949 339 LDA #FRAME 4A5A 205CE4 353 JSR SETVBK 4A5D 4C5D4A 354 FOREVER JMP FOREVER 355 *VBLANK ROUTINE 4A60 ADEE49 356 FRAME LDA VBFLAG 4A63 F003 357 BEQ OK 4A65 4C62E4 358 JMP $E462 4A68 A901 359 OK LDA #$01 4A6A 8DEE49 360 STA VBFLAG 4A6D ADE349 361 LDA XX ;CALC NEW HORIZ OFFSET 4A70 4A 362 LSR ;DIVIDE BY 4 TO GET HORIZ BYTE 4A71 4A 363 LSR 4A72 8DE549 364 STA HORIZ 4A75 20E74A 365 JSR SETUP 4A78 200B4B 366 JSR DRAW ;DRAW SHAPE 4A7B ADED49 367 LDA TDELAY ;DELAY 3/60 TH SEC 4A7E C903 368 CMP #$03 4A80 D01F 369 BNE AB1 4A82 20E74A 370 JSR SETUP 4A85 20904B 371 JSR XDRAW ;XDRAW SHAPE 4A88 20454B 372 JSR JOYSTK ;READ JOYSTICK 4A8B ADE349 373 LDA XX ;CALC NEW HORIZ OFFSET 4A8E 4A 374 LSR 4A8F 4A 375 LSR 4A90 8DE549 376 STA HORIZ 4A93 20E74A 377 JSR SETUP 4A96 200B4B 378 JSR DRAW ;IMMEDIATELY REDRAW SHAPE 4A99 A900 379 LDA #$00 ;RESET DELAY 4A9B 8DED49 380 STA TDELAY 4A9E 4CA44A 381 JMP SOUND 4AA1 EEED49 382 AB1 INC TDELAY 4AA4 ADEC49 383 SOUND LDA TIME 4AA7 C514 384 CMP $14 4AA9 B034 385 BGE AC2 386 *STOP NOTE - EQUIVALENT TO SOUND 0,0,0,0 4AAB A900 387 LDA #$00 4AAD 8D08D2 388 STA $D208 4AB0 A903 389 LDA #$03 4AB2 8D0FD2 390 STA $D20F 4AB5 ACEB49 391 LDY POINTER 392 *LOAD NEXT NOTE 4AB8 B1F6 393 LDA (NOTEL),Y 4ABA C9FF 394 CMP #$FF ;LAST NOTE? 4ABC D009 395 BNE AC3 396 *RESET TO BEGINNING NOTE 4ABE A000 397 LDY #$00 4AC0 8CEB49 398 STY POINTER 4AC3 A949 399 LDA #