RKL.S82 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450
  1. ******************************************************
  2. ******************************************************
  3. *
  4. *
  5. * ROBOTRON 6-JULY-83 3:00
  6. * 21-JULY-83 8:00
  7. * 29-JULY-83 1:30
  8. * 22-AUGUST-83 5:00
  9. *
  10. * RKERNEL.S
  11. *
  12. ******************************************************
  13. *******************
  14. *
  15. * ROBOTRON KERNEL GOES HERE
  16. *
  17. *******************
  18. * HERE STORE THE STATUS OF EVERYTHING BECAUSE WE ARRIVED BY INTERUPT
  19. KERNEL
  20. PHA ;SAVE REGISTERS
  21. TXA
  22. PHA
  23. TYA
  24. PHA
  25. TOPWAIT STA WSYNC ;ONLY CHECK FOR TOP WHEN OFF EDGE
  26. BIT MSTAT ;WAIT FOR EXACT BOTTOM OF SCREEN
  27. M2 BPL TOPWAIT
  28. TOPWAIT1 BIT MSTAT
  29. BMI TOPWAIT1 ;CHANGE TO BMI FOR SI MARIA
  30. * STORING TO DPL CAUSES DMA TO START
  31. * Y IS ALWAYS THE OFFSET
  32. * X IS ALWAYS THE LOW DL POINTER
  33. ;ZONE 0
  34. ;LINE 0
  35. LDY #0
  36. LDA #H(DLZONE0)
  37. STA DPH
  38. LDX #L(DLZONE0)
  39. STA WSYNC ;WAIT FOR START OF SCAN LINE
  40. DB $84,$38,$EA,$EA
  41. STX DPL
  42. ;DMA TIME
  43. INY
  44. * WE'VE SEEN ENOUGH OF THIS
  45. PRINT OFF
  46. ;LINE 1
  47. STA WSYNC ;WAIT FOR START OF SCAN LINE
  48. DB $84,$38,$EA,$EA
  49. STX DPL
  50. ;DMA TIME
  51. INY
  52. ;LINE 2
  53. STA WSYNC ;WAIT FOR START OF SCAN LINE
  54. DB $84,$38,$EA,$EA
  55. STX DPL
  56. ;DMA TIME
  57. INY
  58. ;LINE 3
  59. STA WSYNC ;WAIT FOR START OF SCAN LINE
  60. DB $84,$38,$EA,$EA
  61. STX DPL
  62. ;DMA TIME
  63. INY
  64. ;LINE 4
  65. STA WSYNC ;WAIT FOR START OF SCAN LINE
  66. DB $84,$38,$EA,$EA
  67. STX DPL
  68. ;DMA TIME
  69. INY
  70. ;LINE 5
  71. STA WSYNC ;WAIT FOR START OF SCAN LINE
  72. DB $84,$38,$EA,$EA
  73. STX DPL
  74. ;DMA TIME
  75. INY
  76. ;LINE 6
  77. STA WSYNC ;WAIT FOR START OF SCAN LINE
  78. DB $84,$38,$EA,$EA
  79. STX DPL
  80. ;DMA TIME
  81. INY
  82. ;LINE 7
  83. STA WSYNC ;WAIT FOR START OF SCAN LINE
  84. DB $84,$38,$EA,$EA
  85. STX DPL
  86. ;DMA TIME
  87. INY
  88. ;LINE 8
  89. STA WSYNC ;WAIT FOR START OF SCAN LINE
  90. DB $84,$38,$EA,$EA
  91. STX DPL
  92. ;DMA TIME
  93. INY
  94. ;LINE 9
  95. STA WSYNC ;WAIT FOR START OF SCAN LINE
  96. DB $84,$38,$EA,$EA
  97. STX DPL
  98. ;DMA TIME
  99. INY
  100. ;LINE 10
  101. STA WSYNC ;WAIT FOR START OF SCAN LINE
  102. DB $84,$38,$EA,$EA
  103. STX DPL
  104. ;DMA TIME
  105. INY
  106. ;LINE 11
  107. STA WSYNC ;WAIT FOR START OF SCAN LINE
  108. DB $84,$38,$EA,$EA
  109. STX DPL
  110. ;DMA TIME
  111. INY
  112. ;LINE 12
  113. STA WSYNC ;WAIT FOR START OF SCAN LINE
  114. DB $84,$38,$EA,$EA
  115. STX DPL
  116. ;DMA TIME
  117. INY
  118. ;LINE 13
  119. STA WSYNC ;WAIT FOR START OF SCAN LINE
  120. DB $84,$38,$EA,$EA
  121. STX DPL
  122. ;DMA TIME
  123. INY
  124. ;LINE 14
  125. STA WSYNC ;WAIT FOR START OF SCAN LINE
  126. DB $84,$38,$EA,$EA
  127. STX DPL
  128. ;DMA TIME
  129. INY
  130. LDA #H(DLZONE1) ;START TO SET UP FOR THE NEXT ZONE
  131. ;LINE 15
  132. STA WSYNC ;WAIT FOR START OF SCAN LINE
  133. DB $84,$38,$EA,$EA
  134. STX DPL
  135. ;DMA TIME
  136. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  137. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  138. ;ZONE 1
  139. ;LINE 0
  140. LDX #L(DLZONE1)
  141. STA WSYNC ;WAIT FOR START OF SCAN LINE
  142. DB $84,$38,$EA,$EA
  143. STX DPL
  144. ;DMA TIME
  145. INY
  146. ;LINE 1
  147. STA WSYNC ;WAIT FOR START OF SCAN LINE
  148. DB $84,$38,$EA,$EA
  149. STX DPL
  150. ;DMA TIME
  151. INY
  152. ;LINE 2
  153. STA WSYNC ;WAIT FOR START OF SCAN LINE
  154. DB $84,$38,$EA,$EA
  155. STX DPL
  156. ;DMA TIME
  157. INY
  158. ;LINE 3
  159. STA WSYNC ;WAIT FOR START OF SCAN LINE
  160. DB $84,$38,$EA,$EA
  161. STX DPL
  162. ;DMA TIME
  163. INY
  164. ;LINE 4
  165. STA WSYNC ;WAIT FOR START OF SCAN LINE
  166. DB $84,$38,$EA,$EA
  167. STX DPL
  168. ;DMA TIME
  169. INY
  170. ;LINE 5
  171. STA WSYNC ;WAIT FOR START OF SCAN LINE
  172. DB $84,$38,$EA,$EA
  173. STX DPL
  174. ;DMA TIME
  175. INY
  176. ;LINE 6
  177. STA WSYNC ;WAIT FOR START OF SCAN LINE
  178. DB $84,$38,$EA,$EA
  179. STX DPL
  180. ;DMA TIME
  181. INY
  182. ;LINE 7
  183. STA WSYNC ;WAIT FOR START OF SCAN LINE
  184. DB $84,$38,$EA,$EA
  185. STX DPL
  186. ;DMA TIME
  187. INY
  188. ;LINE 8
  189. STA WSYNC ;WAIT FOR START OF SCAN LINE
  190. DB $84,$38,$EA,$EA
  191. STX DPL
  192. ;DMA TIME
  193. INY
  194. ;LINE 9
  195. STA WSYNC ;WAIT FOR START OF SCAN LINE
  196. DB $84,$38,$EA,$EA
  197. STX DPL
  198. ;DMA TIME
  199. INY
  200. ;LINE 10
  201. STA WSYNC ;WAIT FOR START OF SCAN LINE
  202. DB $84,$38,$EA,$EA
  203. STX DPL
  204. ;DMA TIME
  205. INY
  206. ;LINE 11
  207. STA WSYNC ;WAIT FOR START OF SCAN LINE
  208. DB $84,$38,$EA,$EA
  209. STX DPL
  210. ;DMA TIME
  211. INY
  212. ;LINE 12
  213. STA WSYNC ;WAIT FOR START OF SCAN LINE
  214. DB $84,$38,$EA,$EA
  215. STX DPL
  216. ;DMA TIME
  217. INY
  218. ;LINE 13
  219. STA WSYNC ;WAIT FOR START OF SCAN LINE
  220. DB $84,$38,$EA,$EA
  221. STX DPL
  222. ;DMA TIME
  223. INY
  224. ;LINE 14
  225. STA WSYNC ;WAIT FOR START OF SCAN LINE
  226. DB $84,$38,$EA,$EA
  227. STX DPL
  228. ;DMA TIME
  229. INY
  230. LDA #H(DLZONE2) ;START TO SET UP FOR THE NEXT ZONE
  231. ;LINE 15
  232. STA WSYNC ;WAIT FOR START OF SCAN LINE
  233. DB $84,$38,$EA,$EA
  234. STX DPL
  235. ;DMA TIME
  236. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  237. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  238. ;ZONE 2
  239. ;LINE 0
  240. LDX #L(DLZONE2)
  241. STA WSYNC ;WAIT FOR START OF SCAN LINE
  242. DB $84,$38,$EA,$EA
  243. STX DPL
  244. ;DMA TIME
  245. INY
  246. ;LINE 1
  247. STA WSYNC ;WAIT FOR START OF SCAN LINE
  248. DB $84,$38,$EA,$EA
  249. STX DPL
  250. ;DMA TIME
  251. INY
  252. ;LINE 2
  253. STA WSYNC ;WAIT FOR START OF SCAN LINE
  254. DB $84,$38,$EA,$EA
  255. STX DPL
  256. ;DMA TIME
  257. INY
  258. ;LINE 3
  259. STA WSYNC ;WAIT FOR START OF SCAN LINE
  260. DB $84,$38,$EA,$EA
  261. STX DPL
  262. ;DMA TIME
  263. INY
  264. ;LINE 4
  265. STA WSYNC ;WAIT FOR START OF SCAN LINE
  266. DB $84,$38,$EA,$EA
  267. STX DPL
  268. ;DMA TIME
  269. INY
  270. ;LINE 5
  271. STA WSYNC ;WAIT FOR START OF SCAN LINE
  272. DB $84,$38,$EA,$EA
  273. STX DPL
  274. ;DMA TIME
  275. INY
  276. ;LINE 6
  277. STA WSYNC ;WAIT FOR START OF SCAN LINE
  278. DB $84,$38,$EA,$EA
  279. STX DPL
  280. ;DMA TIME
  281. INY
  282. ;LINE 7
  283. STA WSYNC ;WAIT FOR START OF SCAN LINE
  284. DB $84,$38,$EA,$EA
  285. STX DPL
  286. ;DMA TIME
  287. INY
  288. ;LINE 8
  289. STA WSYNC ;WAIT FOR START OF SCAN LINE
  290. DB $84,$38,$EA,$EA
  291. STX DPL
  292. ;DMA TIME
  293. INY
  294. ;LINE 9
  295. STA WSYNC ;WAIT FOR START OF SCAN LINE
  296. DB $84,$38,$EA,$EA
  297. STX DPL
  298. ;DMA TIME
  299. INY
  300. ;LINE 10
  301. STA WSYNC ;WAIT FOR START OF SCAN LINE
  302. DB $84,$38,$EA,$EA
  303. STX DPL
  304. ;DMA TIME
  305. INY
  306. ;LINE 11
  307. STA WSYNC ;WAIT FOR START OF SCAN LINE
  308. DB $84,$38,$EA,$EA
  309. STX DPL
  310. ;DMA TIME
  311. INY
  312. ;LINE 12
  313. STA WSYNC ;WAIT FOR START OF SCAN LINE
  314. DB $84,$38,$EA,$EA
  315. STX DPL
  316. ;DMA TIME
  317. INY
  318. ;LINE 13
  319. STA WSYNC ;WAIT FOR START OF SCAN LINE
  320. DB $84,$38,$EA,$EA
  321. STX DPL
  322. ;DMA TIME
  323. INY
  324. ;LINE 14
  325. STA WSYNC ;WAIT FOR START OF SCAN LINE
  326. DB $84,$38,$EA,$EA
  327. STX DPL
  328. ;DMA TIME
  329. INY
  330. LDA #H(DLZONE3) ;START TO SET UP FOR THE NEXT ZONE
  331. ;LINE 15
  332. STA WSYNC ;WAIT FOR START OF SCAN LINE
  333. DB $84,$38,$EA,$EA
  334. STX DPL
  335. ;DMA TIME
  336. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  337. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  338. ;ZONE3
  339. ;LINE 0
  340. LDX #L(DLZONE3)
  341. STA WSYNC ;WAIT FOR START OF SCAN LINE
  342. DB $84,$38,$EA,$EA
  343. STX DPL
  344. ;DMA TIME
  345. INY
  346. ;LINE 1
  347. STA WSYNC ;WAIT FOR START OF SCAN LINE
  348. DB $84,$38,$EA,$EA
  349. STX DPL
  350. ;DMA TIME
  351. INY
  352. ;LINE 2
  353. STA WSYNC ;WAIT FOR START OF SCAN LINE
  354. DB $84,$38,$EA,$EA
  355. STX DPL
  356. ;DMA TIME
  357. INY
  358. ;LINE 3
  359. STA WSYNC ;WAIT FOR START OF SCAN LINE
  360. DB $84,$38,$EA,$EA
  361. STX DPL
  362. ;DMA TIME
  363. INY
  364. ;LINE 4
  365. STA WSYNC ;WAIT FOR START OF SCAN LINE
  366. DB $84,$38,$EA,$EA
  367. STX DPL
  368. ;DMA TIME
  369. INY
  370. ;LINE 5
  371. STA WSYNC ;WAIT FOR START OF SCAN LINE
  372. DB $84,$38,$EA,$EA
  373. STX DPL
  374. ;DMA TIME
  375. INY
  376. ;LINE 6
  377. STA WSYNC ;WAIT FOR START OF SCAN LINE
  378. DB $84,$38,$EA,$EA
  379. STX DPL
  380. ;DMA TIME
  381. INY
  382. ;LINE 7
  383. STA WSYNC ;WAIT FOR START OF SCAN LINE
  384. DB $84,$38,$EA,$EA
  385. STX DPL
  386. ;DMA TIME
  387. INY
  388. ;LINE 8
  389. STA WSYNC ;WAIT FOR START OF SCAN LINE
  390. DB $84,$38,$EA,$EA
  391. STX DPL
  392. ;DMA TIME
  393. INY
  394. ;LINE 9
  395. STA WSYNC ;WAIT FOR START OF SCAN LINE
  396. DB $84,$38,$EA,$EA
  397. STX DPL
  398. ;DMA TIME
  399. INY
  400. ;LINE 10
  401. STA WSYNC ;WAIT FOR START OF SCAN LINE
  402. DB $84,$38,$EA,$EA
  403. STX DPL
  404. ;DMA TIME
  405. INY
  406. ;LINE 11
  407. STA WSYNC ;WAIT FOR START OF SCAN LINE
  408. DB $84,$38,$EA,$EA
  409. STX DPL
  410. ;DMA TIME
  411. INY
  412. ;LINE 12
  413. STA WSYNC ;WAIT FOR START OF SCAN LINE
  414. DB $84,$38,$EA,$EA
  415. STX DPL
  416. ;DMA TIME
  417. INY
  418. ;LINE 13
  419. STA WSYNC ;WAIT FOR START OF SCAN LINE
  420. DB $84,$38,$EA,$EA
  421. STX DPL
  422. ;DMA TIME
  423. INY
  424. ;LINE 14
  425. STA WSYNC ;WAIT FOR START OF SCAN LINE
  426. DB $84,$38,$EA,$EA
  427. STX DPL
  428. ;DMA TIME
  429. INY
  430. LDA #H(DLZONE4) ;START TO SET UP FOR THE NEXT ZONE
  431. ;LINE 15
  432. STA WSYNC ;WAIT FOR START OF SCAN LINE
  433. DB $84,$38,$EA,$EA
  434. STX DPL
  435. ;DMA TIME
  436. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  437. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  438. ;ZONE 4
  439. ;LINE 0
  440. LDX #L(DLZONE4)
  441. STA WSYNC ;WAIT FOR START OF SCAN LINE
  442. DB $84,$38,$EA,$EA
  443. STX DPL
  444. ;DMA TIME
  445. INY
  446. ;LINE 1
  447. STA WSYNC ;WAIT FOR START OF SCAN LINE
  448. DB $84,$38,$EA,$EA
  449. STX DPL
  450. ;DMA TIME
  451. INY
  452. ;LINE 2
  453. STA WSYNC ;WAIT FOR START OF SCAN LINE
  454. DB $84,$38,$EA,$EA
  455. STX DPL
  456. ;DMA TIME
  457. INY
  458. ;LINE 3
  459. STA WSYNC ;WAIT FOR START OF SCAN LINE
  460. DB $84,$38,$EA,$EA
  461. STX DPL
  462. ;DMA TIME
  463. INY
  464. ;LINE 4
  465. STA WSYNC ;WAIT FOR START OF SCAN LINE
  466. DB $84,$38,$EA,$EA
  467. STX DPL
  468. ;DMA TIME
  469. INY
  470. ;LINE 5
  471. STA WSYNC ;WAIT FOR START OF SCAN LINE
  472. DB $84,$38,$EA,$EA
  473. STX DPL
  474. ;DMA TIME
  475. INY
  476. ;LINE 6
  477. STA WSYNC ;WAIT FOR START OF SCAN LINE
  478. DB $84,$38,$EA,$EA
  479. STX DPL
  480. ;DMA TIME
  481. INY
  482. ;LINE 7
  483. STA WSYNC ;WAIT FOR START OF SCAN LINE
  484. DB $84,$38,$EA,$EA
  485. STX DPL
  486. ;DMA TIME
  487. INY
  488. ;LINE 8
  489. STA WSYNC ;WAIT FOR START OF SCAN LINE
  490. DB $84,$38,$EA,$EA
  491. STX DPL
  492. ;DMA TIME
  493. INY
  494. ;LINE 9
  495. STA WSYNC ;WAIT FOR START OF SCAN LINE
  496. DB $84,$38,$EA,$EA
  497. STX DPL
  498. ;DMA TIME
  499. INY
  500. ;LINE 10
  501. STA WSYNC ;WAIT FOR START OF SCAN LINE
  502. DB $84,$38,$EA,$EA
  503. STX DPL
  504. ;DMA TIME
  505. INY
  506. ;LINE 11
  507. STA WSYNC ;WAIT FOR START OF SCAN LINE
  508. DB $84,$38,$EA,$EA
  509. STX DPL
  510. ;DMA TIME
  511. INY
  512. ;LINE 12
  513. STA WSYNC ;WAIT FOR START OF SCAN LINE
  514. DB $84,$38,$EA,$EA
  515. STX DPL
  516. ;DMA TIME
  517. INY
  518. ;LINE 13
  519. STA WSYNC ;WAIT FOR START OF SCAN LINE
  520. DB $84,$38,$EA,$EA
  521. STX DPL
  522. ;DMA TIME
  523. INY
  524. ;LINE 14
  525. STA WSYNC ;WAIT FOR START OF SCAN LINE
  526. DB $84,$38,$EA,$EA
  527. STX DPL
  528. ;DMA TIME
  529. INY
  530. LDA #H(DLZONE5) ;START TO SET UP FOR THE NEXT ZONE
  531. ;LINE 15
  532. STA WSYNC ;WAIT FOR START OF SCAN LINE
  533. DB $84,$38,$EA,$EA
  534. STX DPL
  535. ;DMA TIME
  536. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  537. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  538. ;ZONE 5
  539. ;LINE 0
  540. LDX #L(DLZONE5)
  541. STA WSYNC ;WAIT FOR START OF SCAN LINE
  542. DB $84,$38,$EA,$EA
  543. STX DPL
  544. ;DMA TIME
  545. INY
  546. ;LINE 1
  547. STA WSYNC ;WAIT FOR START OF SCAN LINE
  548. DB $84,$38,$EA,$EA
  549. STX DPL
  550. ;DMA TIME
  551. INY
  552. ;LINE 2
  553. STA WSYNC ;WAIT FOR START OF SCAN LINE
  554. DB $84,$38,$EA,$EA
  555. STX DPL
  556. ;DMA TIME
  557. INY
  558. ;LINE 3
  559. STA WSYNC ;WAIT FOR START OF SCAN LINE
  560. DB $84,$38,$EA,$EA
  561. STX DPL
  562. ;DMA TIME
  563. INY
  564. ;LINE 4
  565. STA WSYNC ;WAIT FOR START OF SCAN LINE
  566. DB $84,$38,$EA,$EA
  567. STX DPL
  568. ;DMA TIME
  569. INY
  570. ;LINE 5
  571. STA WSYNC ;WAIT FOR START OF SCAN LINE
  572. DB $84,$38,$EA,$EA
  573. STX DPL
  574. ;DMA TIME
  575. INY
  576. ;LINE 6
  577. STA WSYNC ;WAIT FOR START OF SCAN LINE
  578. DB $84,$38,$EA,$EA
  579. STX DPL
  580. ;DMA TIME
  581. INY
  582. ;LINE 7
  583. STA WSYNC ;WAIT FOR START OF SCAN LINE
  584. DB $84,$38,$EA,$EA
  585. STX DPL
  586. ;DMA TIME
  587. INY
  588. ;LINE 8
  589. STA WSYNC ;WAIT FOR START OF SCAN LINE
  590. DB $84,$38,$EA,$EA
  591. STX DPL
  592. ;DMA TIME
  593. INY
  594. ;LINE 9
  595. STA WSYNC ;WAIT FOR START OF SCAN LINE
  596. DB $84,$38,$EA,$EA
  597. STX DPL
  598. ;DMA TIME
  599. INY
  600. ;LINE 10
  601. STA WSYNC ;WAIT FOR START OF SCAN LINE
  602. DB $84,$38,$EA,$EA
  603. STX DPL
  604. ;DMA TIME
  605. INY
  606. ;LINE 11
  607. STA WSYNC ;WAIT FOR START OF SCAN LINE
  608. DB $84,$38,$EA,$EA
  609. STX DPL
  610. ;DMA TIME
  611. INY
  612. ;LINE 12
  613. STA WSYNC ;WAIT FOR START OF SCAN LINE
  614. DB $84,$38,$EA,$EA
  615. STX DPL
  616. ;DMA TIME
  617. INY
  618. ;LINE 13
  619. STA WSYNC ;WAIT FOR START OF SCAN LINE
  620. DB $84,$38,$EA,$EA
  621. STX DPL
  622. ;DMA TIME
  623. INY
  624. ;LINE 14
  625. STA WSYNC ;WAIT FOR START OF SCAN LINE
  626. DB $84,$38,$EA,$EA
  627. STX DPL
  628. ;DMA TIME
  629. INY
  630. LDA #H(DLZONE6) ;START TO SET UP FOR THE NEXT ZONE
  631. ;LINE 15
  632. STA WSYNC ;WAIT FOR START OF SCAN LINE
  633. DB $84,$38,$EA,$EA
  634. STX DPL
  635. ;DMA TIME
  636. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  637. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  638. ;ZONE 6
  639. ;LINE 0
  640. LDX #L(DLZONE6)
  641. STA WSYNC ;WAIT FOR START OF SCAN LINE
  642. DB $84,$38,$EA,$EA
  643. STX DPL
  644. ;DMA TIME
  645. INY
  646. ;LINE 1
  647. STA WSYNC ;WAIT FOR START OF SCAN LINE
  648. DB $84,$38,$EA,$EA
  649. STX DPL
  650. ;DMA TIME
  651. INY
  652. ;LINE 2
  653. STA WSYNC ;WAIT FOR START OF SCAN LINE
  654. DB $84,$38,$EA,$EA
  655. STX DPL
  656. ;DMA TIME
  657. INY
  658. ;LINE 3
  659. STA WSYNC ;WAIT FOR START OF SCAN LINE
  660. DB $84,$38,$EA,$EA
  661. STX DPL
  662. ;DMA TIME
  663. INY
  664. ;LINE 4
  665. STA WSYNC ;WAIT FOR START OF SCAN LINE
  666. DB $84,$38,$EA,$EA
  667. STX DPL
  668. ;DMA TIME
  669. INY
  670. ;LINE 5
  671. STA WSYNC ;WAIT FOR START OF SCAN LINE
  672. DB $84,$38,$EA,$EA
  673. STX DPL
  674. ;DMA TIME
  675. INY
  676. ;LINE 6
  677. STA WSYNC ;WAIT FOR START OF SCAN LINE
  678. DB $84,$38,$EA,$EA
  679. STX DPL
  680. ;DMA TIME
  681. INY
  682. ;LINE 7
  683. STA WSYNC ;WAIT FOR START OF SCAN LINE
  684. DB $84,$38,$EA,$EA
  685. STX DPL
  686. ;DMA TIME
  687. INY
  688. ;LINE 8
  689. STA WSYNC ;WAIT FOR START OF SCAN LINE
  690. DB $84,$38,$EA,$EA
  691. STX DPL
  692. ;DMA TIME
  693. INY
  694. ;LINE 9
  695. STA WSYNC ;WAIT FOR START OF SCAN LINE
  696. DB $84,$38,$EA,$EA
  697. STX DPL
  698. ;DMA TIME
  699. INY
  700. ;LINE 10
  701. STA WSYNC ;WAIT FOR START OF SCAN LINE
  702. DB $84,$38,$EA,$EA
  703. STX DPL
  704. ;DMA TIME
  705. INY
  706. ;LINE 11
  707. STA WSYNC ;WAIT FOR START OF SCAN LINE
  708. DB $84,$38,$EA,$EA
  709. STX DPL
  710. ;DMA TIME
  711. INY
  712. ;LINE 12
  713. STA WSYNC ;WAIT FOR START OF SCAN LINE
  714. DB $84,$38,$EA,$EA
  715. STX DPL
  716. ;DMA TIME
  717. INY
  718. ;LINE 13
  719. STA WSYNC ;WAIT FOR START OF SCAN LINE
  720. DB $84,$38,$EA,$EA
  721. STX DPL
  722. ;DMA TIME
  723. INY
  724. ;LINE 14
  725. STA WSYNC ;WAIT FOR START OF SCAN LINE
  726. DB $84,$38,$EA,$EA
  727. STX DPL
  728. ;DMA TIME
  729. INY
  730. LDA #H(DLZONE7) ;START TO SET UP FOR THE NEXT ZONE
  731. ;LINE 15
  732. STA WSYNC ;WAIT FOR START OF SCAN LINE
  733. DB $84,$38,$EA,$EA
  734. STX DPL
  735. ;DMA TIME
  736. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  737. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  738. ;ZONE 7
  739. ;LINE 0
  740. LDX #L(DLZONE7)
  741. STA WSYNC ;WAIT FOR START OF SCAN LINE
  742. DB $84,$38,$EA,$EA
  743. STX DPL
  744. ;DMA TIME
  745. INY
  746. ;LINE 1
  747. STA WSYNC ;WAIT FOR START OF SCAN LINE
  748. DB $84,$38,$EA,$EA
  749. STX DPL
  750. ;DMA TIME
  751. INY
  752. ;LINE 2
  753. STA WSYNC ;WAIT FOR START OF SCAN LINE
  754. DB $84,$38,$EA,$EA
  755. STX DPL
  756. ;DMA TIME
  757. INY
  758. ;LINE 3
  759. STA WSYNC ;WAIT FOR START OF SCAN LINE
  760. DB $84,$38,$EA,$EA
  761. STX DPL
  762. ;DMA TIME
  763. INY
  764. ;LINE 4
  765. STA WSYNC ;WAIT FOR START OF SCAN LINE
  766. DB $84,$38,$EA,$EA
  767. STX DPL
  768. ;DMA TIME
  769. INY
  770. ;LINE 5
  771. STA WSYNC ;WAIT FOR START OF SCAN LINE
  772. DB $84,$38,$EA,$EA
  773. STX DPL
  774. ;DMA TIME
  775. INY
  776. ;LINE 6
  777. STA WSYNC ;WAIT FOR START OF SCAN LINE
  778. DB $84,$38,$EA,$EA
  779. STX DPL
  780. ;DMA TIME
  781. INY
  782. ;LINE 7
  783. STA WSYNC ;WAIT FOR START OF SCAN LINE
  784. DB $84,$38,$EA,$EA
  785. STX DPL
  786. ;DMA TIME
  787. INY
  788. ;LINE 8
  789. STA WSYNC ;WAIT FOR START OF SCAN LINE
  790. DB $84,$38,$EA,$EA
  791. STX DPL
  792. ;DMA TIME
  793. INY
  794. ;LINE 9
  795. STA WSYNC ;WAIT FOR START OF SCAN LINE
  796. DB $84,$38,$EA,$EA
  797. STX DPL
  798. ;DMA TIME
  799. INY
  800. ;LINE 10
  801. STA WSYNC ;WAIT FOR START OF SCAN LINE
  802. DB $84,$38,$EA,$EA
  803. STX DPL
  804. ;DMA TIME
  805. INY
  806. ;LINE 11
  807. STA WSYNC ;WAIT FOR START OF SCAN LINE
  808. DB $84,$38,$EA,$EA
  809. STX DPL
  810. ;DMA TIME
  811. INY
  812. ;LINE 12
  813. STA WSYNC ;WAIT FOR START OF SCAN LINE
  814. DB $84,$38,$EA,$EA
  815. STX DPL
  816. ;DMA TIME
  817. INY
  818. ;LINE 13
  819. STA WSYNC ;WAIT FOR START OF SCAN LINE
  820. DB $84,$38,$EA,$EA
  821. STX DPL
  822. ;DMA TIME
  823. INY
  824. ;LINE 14
  825. STA WSYNC ;WAIT FOR START OF SCAN LINE
  826. DB $84,$38,$EA,$EA
  827. STX DPL
  828. ;DMA TIME
  829. INY
  830. LDA #H(DLZONE8) ;START TO SET UP FOR THE NEXT ZONE
  831. ;LINE 15
  832. STA WSYNC ;WAIT FOR START OF SCAN LINE
  833. DB $84,$38,$EA,$EA
  834. STX DPL
  835. ;DMA TIME
  836. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  837. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  838. ;ZONE 8
  839. ;LINE 0
  840. LDX #L(DLZONE8)
  841. STA WSYNC ;WAIT FOR START OF SCAN LINE
  842. DB $84,$38,$EA,$EA
  843. STX DPL
  844. ;DMA TIME
  845. INY
  846. ;LINE 1
  847. STA WSYNC ;WAIT FOR START OF SCAN LINE
  848. DB $84,$38,$EA,$EA
  849. STX DPL
  850. ;DMA TIME
  851. INY
  852. ;LINE 2
  853. STA WSYNC ;WAIT FOR START OF SCAN LINE
  854. DB $84,$38,$EA,$EA
  855. STX DPL
  856. ;DMA TIME
  857. INY
  858. ;LINE 3
  859. STA WSYNC ;WAIT FOR START OF SCAN LINE
  860. DB $84,$38,$EA,$EA
  861. STX DPL
  862. ;DMA TIME
  863. INY
  864. ;LINE 4
  865. STA WSYNC ;WAIT FOR START OF SCAN LINE
  866. DB $84,$38,$EA,$EA
  867. STX DPL
  868. ;DMA TIME
  869. INY
  870. ;LINE 5
  871. STA WSYNC ;WAIT FOR START OF SCAN LINE
  872. DB $84,$38,$EA,$EA
  873. STX DPL
  874. ;DMA TIME
  875. INY
  876. ;LINE 6
  877. STA WSYNC ;WAIT FOR START OF SCAN LINE
  878. DB $84,$38,$EA,$EA
  879. STX DPL
  880. ;DMA TIME
  881. INY
  882. ;LINE 7
  883. STA WSYNC ;WAIT FOR START OF SCAN LINE
  884. DB $84,$38,$EA,$EA
  885. STX DPL
  886. ;DMA TIME
  887. INY
  888. ;LINE 8
  889. STA WSYNC ;WAIT FOR START OF SCAN LINE
  890. DB $84,$38,$EA,$EA
  891. STX DPL
  892. ;DMA TIME
  893. INY
  894. ;LINE 9
  895. STA WSYNC ;WAIT FOR START OF SCAN LINE
  896. DB $84,$38,$EA,$EA
  897. STX DPL
  898. ;DMA TIME
  899. INY
  900. ;LINE 10
  901. STA WSYNC ;WAIT FOR START OF SCAN LINE
  902. DB $84,$38,$EA,$EA
  903. STX DPL
  904. ;DMA TIME
  905. INY
  906. ;LINE 11
  907. STA WSYNC ;WAIT FOR START OF SCAN LINE
  908. DB $84,$38,$EA,$EA
  909. STX DPL
  910. ;DMA TIME
  911. INY
  912. ;LINE 12
  913. STA WSYNC ;WAIT FOR START OF SCAN LINE
  914. DB $84,$38,$EA,$EA
  915. STX DPL
  916. ;DMA TIME
  917. INY
  918. ;LINE 13
  919. STA WSYNC ;WAIT FOR START OF SCAN LINE
  920. DB $84,$38,$EA,$EA
  921. STX DPL
  922. ;DMA TIME
  923. INY
  924. ;LINE 14
  925. STA WSYNC ;WAIT FOR START OF SCAN LINE
  926. DB $84,$38,$EA,$EA
  927. STX DPL
  928. ;DMA TIME
  929. INY
  930. LDA #H(DLZONE9) ;START TO SET UP FOR THE NEXT ZONE
  931. ;LINE 15
  932. STA WSYNC ;WAIT FOR START OF SCAN LINE
  933. DB $84,$38,$EA,$EA
  934. STX DPL
  935. ;DMA TIME
  936. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  937. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  938. ;ZONE 9
  939. ;LINE 0
  940. LDX #L(DLZONE9)
  941. STA WSYNC ;WAIT FOR START OF SCAN LINE
  942. DB $84,$38,$EA,$EA
  943. STX DPL
  944. ;DMA TIME
  945. INY
  946. ;LINE 1
  947. STA WSYNC ;WAIT FOR START OF SCAN LINE
  948. DB $84,$38,$EA,$EA
  949. STX DPL
  950. ;DMA TIME
  951. INY
  952. ;LINE 2
  953. STA WSYNC ;WAIT FOR START OF SCAN LINE
  954. DB $84,$38,$EA,$EA
  955. STX DPL
  956. ;DMA TIME
  957. INY
  958. ;LINE 3
  959. STA WSYNC ;WAIT FOR START OF SCAN LINE
  960. DB $84,$38,$EA,$EA
  961. STX DPL
  962. ;DMA TIME
  963. INY
  964. ;LINE 4
  965. STA WSYNC ;WAIT FOR START OF SCAN LINE
  966. DB $84,$38,$EA,$EA
  967. STX DPL
  968. ;DMA TIME
  969. INY
  970. ;LINE 5
  971. STA WSYNC ;WAIT FOR START OF SCAN LINE
  972. DB $84,$38,$EA,$EA
  973. STX DPL
  974. ;DMA TIME
  975. INY
  976. ;LINE 6
  977. STA WSYNC ;WAIT FOR START OF SCAN LINE
  978. DB $84,$38,$EA,$EA
  979. STX DPL
  980. ;DMA TIME
  981. INY
  982. ;LINE 7
  983. STA WSYNC ;WAIT FOR START OF SCAN LINE
  984. DB $84,$38,$EA,$EA
  985. STX DPL
  986. ;DMA TIME
  987. INY
  988. ;LINE 8
  989. STA WSYNC ;WAIT FOR START OF SCAN LINE
  990. DB $84,$38,$EA,$EA
  991. STX DPL
  992. ;DMA TIME
  993. INY
  994. ;LINE 9
  995. STA WSYNC ;WAIT FOR START OF SCAN LINE
  996. DB $84,$38,$EA,$EA
  997. STX DPL
  998. ;DMA TIME
  999. INY
  1000. ;LINE 10
  1001. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1002. DB $84,$38,$EA,$EA
  1003. STX DPL
  1004. ;DMA TIME
  1005. INY
  1006. ;LINE 11
  1007. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1008. DB $84,$38,$EA,$EA
  1009. STX DPL
  1010. ;DMA TIME
  1011. INY
  1012. ;LINE 12
  1013. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1014. DB $84,$38,$EA,$EA
  1015. STX DPL
  1016. ;DMA TIME
  1017. INY
  1018. ;LINE 13
  1019. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1020. DB $84,$38,$EA,$EA
  1021. STX DPL
  1022. ;DMA TIME
  1023. INY
  1024. ;LINE 14
  1025. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1026. DB $84,$38,$EA,$EA
  1027. STX DPL
  1028. ;DMA TIME
  1029. INY
  1030. LDA #H(DLZONE10) ;START TO SET UP FOR THE NEXT ZONE
  1031. ;LINE 15
  1032. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1033. DB $84,$38,$EA,$EA
  1034. STX DPL
  1035. ;DMA TIME
  1036. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  1037. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  1038. ;ZONE 10
  1039. ;LINE 0
  1040. LDX #L(DLZONE10)
  1041. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1042. DB $84,$38,$EA,$EA
  1043. STX DPL
  1044. ;DMA TIME
  1045. INY
  1046. ;LINE 1
  1047. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1048. DB $84,$38,$EA,$EA
  1049. STX DPL
  1050. ;DMA TIME
  1051. INY
  1052. ;LINE 2
  1053. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1054. DB $84,$38,$EA,$EA
  1055. STX DPL
  1056. ;DMA TIME
  1057. INY
  1058. ;LINE 3
  1059. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1060. DB $84,$38,$EA,$EA
  1061. STX DPL
  1062. ;DMA TIME
  1063. INY
  1064. ;LINE 4
  1065. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1066. DB $84,$38,$EA,$EA
  1067. STX DPL
  1068. ;DMA TIME
  1069. INY
  1070. ;LINE 5
  1071. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1072. DB $84,$38,$EA,$EA
  1073. STX DPL
  1074. ;DMA TIME
  1075. INY
  1076. ;LINE 6
  1077. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1078. DB $84,$38,$EA,$EA
  1079. STX DPL
  1080. ;DMA TIME
  1081. INY
  1082. ;LINE 7
  1083. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1084. DB $84,$38,$EA,$EA
  1085. STX DPL
  1086. ;DMA TIME
  1087. INY
  1088. ;LINE 8
  1089. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1090. DB $84,$38,$EA,$EA
  1091. STX DPL
  1092. ;DMA TIME
  1093. INY
  1094. ;LINE 9
  1095. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1096. DB $84,$38,$EA,$EA
  1097. STX DPL
  1098. ;DMA TIME
  1099. INY
  1100. ;LINE 10
  1101. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1102. DB $84,$38,$EA,$EA
  1103. STX DPL
  1104. ;DMA TIME
  1105. INY
  1106. ;LINE 11
  1107. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1108. DB $84,$38,$EA,$EA
  1109. STX DPL
  1110. ;DMA TIME
  1111. INY
  1112. ;LINE 12
  1113. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1114. DB $84,$38,$EA,$EA
  1115. STX DPL
  1116. ;DMA TIME
  1117. INY
  1118. ;LINE 13
  1119. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1120. DB $84,$38,$EA,$EA
  1121. STX DPL
  1122. ;DMA TIME
  1123. INY
  1124. ;LINE 14
  1125. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1126. DB $84,$38,$EA,$EA
  1127. STX DPL
  1128. ;DMA TIME
  1129. INY
  1130. LDA #H(DLZONE11) ;START TO SET UP FOR THE NEXT ZONE
  1131. ;LINE 15
  1132. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1133. DB $84,$38,$EA,$EA
  1134. STX DPL
  1135. ;DMA TIME
  1136. LDY #0 ;SET THE OFFSET TO ZERO FOR NEW ZONE
  1137. STA DPH ;SET UP THE DISPLAY HIGH POINTER
  1138. ;ZONE 11
  1139. ;LINE 0
  1140. LDX #L(DLZONE11)
  1141. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1142. DB $84,$38,$EA,$EA
  1143. STX DPL
  1144. ;DMA TIME
  1145. INY
  1146. ;LINE 1
  1147. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1148. DB $84,$38,$EA,$EA
  1149. STX DPL
  1150. ;DMA TIME
  1151. INY
  1152. ;LINE 2
  1153. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1154. DB $84,$38,$EA,$EA
  1155. STX DPL
  1156. ;DMA TIME
  1157. INY
  1158. ;LINE 3
  1159. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1160. DB $84,$38,$EA,$EA
  1161. STX DPL
  1162. ;DMA TIME
  1163. INY
  1164. ;LINE 4
  1165. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1166. DB $84,$38,$EA,$EA
  1167. STX DPL
  1168. ;DMA TIME
  1169. INY
  1170. ;LINE 5
  1171. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1172. DB $84,$38,$EA,$EA
  1173. STX DPL
  1174. ;DMA TIME
  1175. INY
  1176. ;LINE 6
  1177. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1178. DB $84,$38,$EA,$EA
  1179. STX DPL
  1180. ;DMA TIME
  1181. INY
  1182. ;LINE 7
  1183. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1184. DB $84,$38,$EA,$EA
  1185. STX DPL
  1186. ;DMA TIME
  1187. INY
  1188. ;LINE 8
  1189. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1190. DB $84,$38,$EA,$EA
  1191. STX DPL
  1192. ;DMA TIME
  1193. INY
  1194. ;LINE 9
  1195. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1196. DB $84,$38,$EA,$EA
  1197. STX DPL
  1198. ;DMA TIME
  1199. INY
  1200. ;LINE 10
  1201. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1202. DB $84,$38,$EA,$EA
  1203. STX DPL
  1204. ;DMA TIME
  1205. INY
  1206. ;LINE 11
  1207. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1208. DB $84,$38,$EA,$EA
  1209. STX DPL
  1210. ;DMA TIME
  1211. INY
  1212. ;LINE 12
  1213. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1214. DB $84,$38,$EA,$EA
  1215. STX DPL
  1216. ;DMA TIME
  1217. INY
  1218. ;LINE 13
  1219. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1220. DB $84,$38,$EA,$EA
  1221. STX DPL
  1222. ;DMA TIME
  1223. INY
  1224. ;LINE 14
  1225. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1226. DB $84,$38,$EA,$EA
  1227. STX DPL
  1228. ;DMA TIME
  1229. INY
  1230. * OK, TURN ON LISTING AGAIN
  1231. PRINT ON
  1232. ;LINE 15
  1233. STA WSYNC ;WAIT FOR START OF SCAN LINE
  1234. DB $84,$38,$EA,$EA
  1235. STX DPL
  1236. ;DMA TIME
  1237. * INCREMENT FRAME COUNT
  1238. INC FRMCNT
  1239. * THEN SET UP THE TIMER FOR THE NEXT FRAME
  1240. LDA #$7C ;THIS SHOULD GIVE THE CORRECT WAIT
  1241. STA TIM64TI ;BEFORE THE NEXT INTERUPT
  1242. *
  1243. *******************
  1244. *
  1245. * CALL THE SOUND DRIVER ROUTINE
  1246. *
  1247. JSR TUNER ;ROUTINE IN RSOUNDS.S
  1248. *
  1249. *
  1250. * END OF KERNEL
  1251. *
  1252. * RESTORE THE REGISTERS THAT WERE SAVED AT THE BEGINING
  1253. * AND DO AN RTI
  1254. PLA
  1255. TAY
  1256. PLA
  1257. TAX
  1258. PLA
  1259. RTI
  1260. ******************************************
  1261. * END OF RKERNEL.S
  1262. EJE