home *** CD-ROM | disk | FTP | other *** search
/ Transactor / Transactor_14_1986_Transactor_Publishing.d64 / graphcmds (.txt) < prev    next >
Commodore BASIC  |  2023-02-26  |  14KB  |  1,089 lines

  1. 0 rem graphcmds (paul adams)          :
  2. 1 :
  3. 2 rem 24 statements, 0 functions
  4. 3 :
  5. 4 rem keyword characters: 113
  6. 5 :
  7. 6 rem keywords #175 to #198
  8. 7 :
  9. 8 rem==================================
  10. 9 :
  11. 39 setlfs = $ffba
  12. 40 setnam = $ffbd
  13. 41 open   = $ffc0
  14. 42 chkin  = $ffc6
  15. 43 close  = $ffc3
  16. 44 clrchn = $ffcc
  17. 45 getin  = $ffe4
  18. 46 chkout = $ffc9
  19. 47 chrout = $ffd2
  20. 48 ;
  21. 49 tmp    = $57
  22. 50 tmp2   = $59
  23. 51 tmp3   = $5a
  24. 52 tmp4   = $5c
  25. 400 .asc "plo[212]gcl[210]gco[204]uppe[210]"
  26. 401 .asc "lowe[210]defaul[212]lin[197]"
  27. 402 .asc "slin[197]dlin[197]nlin[197]"
  28. 403 .asc "qlin[197]cha[210]scha[210]"
  29. 404 .asc "ba[210]sba[210]dba[210]nba[210]"
  30. 405 .asc "gsav[197]gloa[196]siz[197]"
  31. 406 .asc "lma[210]gprin[212]eras[197]"
  32. 407 .asc "patter[206]
  33. 1400 .w[176]d plo[171]1,gcl[171]1,gco[171]1,uppe[171]1
  34. 1401 .w[176]d lowe[171]1,[150]lt[171]1,plin[171]1
  35. 1402 .w[176]d slin[171]1,dlin[171]1,nlin[171]1
  36. 1403 .w[176]d qlin[171]1,cha[171]1,scha[171]1
  37. 1404 .w[176]d bba[171]1,sba[171]1,dba[171]1,nba[171]1
  38. 1405 .w[176]d gsav[171]1,gloa[171]1,siz[171]1
  39. 1406 .w[176]d lma[171]1,gprin[171]1,eras[171]1
  40. 1408 .w[176]d patt[171]1
  41. 2620 usfp ldx #0
  42. 2622 stx $0d
  43. 2624 sta $62
  44. 2626 sty $63
  45. 2628 ldx #$90
  46. 2630 sec
  47. 2632 jmp $bc49
  48. 2634 ;
  49. 3694 powers .byte 1,2,4,8,16,32,64,128
  50. 3696 ;
  51. 12694 plo jsr [161]2
  52. 12696 plo1 sec
  53. 12698 lda #$8f
  54. 12700 sbc y
  55. 12702 sta ty
  56. 12704 lda #1
  57. 12706 sbc y[170]1
  58. 12708 sta ty[170]1
  59. 12710 bcs plo2
  60. 12712 rts
  61. 12714 plo2 ldx #$c0
  62. 12716 ldy #$c0
  63. 12718 lda y[170]1
  64. 12720 bne plo3
  65. 12722 lda #$c7
  66. 12724 cmp y
  67. 12726 bcs plo4
  68. 12728 plo3 ldx #0
  69. 12730 ldy #$a0
  70. 12732 plo4 stx tmp
  71. 12734 sty tmp[170]1
  72. 12736 ldx x
  73. 12738 lda x[170]1
  74. 12740 beq plo5
  75. 12742 cmp #1
  76. 12744 bne plo2
  77. 12746 cpx #$40
  78. 12748 bcs plo2
  79. 12750 plo5 r[176]
  80. 12752 txa
  81. 12754 r[176]
  82. 12756 lsr
  83. 12758 lsr
  84. 12760 sta col
  85. 12762 txa
  86. 12764 [175] #7
  87. 12766 e[176] #7
  88. 12768 tax
  89. 12770 lda powers,x
  90. 12772 sta bitp
  91. 12774 ldx ty
  92. 12776 lda ty[170]1
  93. 12778 r[176]
  94. 12780 txa
  95. 12782 r[176]
  96. 12784 lsr
  97. 12786 lsr
  98. 12788 sta row
  99. 12790 txa
  100. 12792 [175] #7
  101. 12794 sta rast
  102. 12796 lda row
  103. 12798 ldx #6
  104. 12800 jsr cmltad
  105. 12802 ldx #2
  106. 12804 jsr mltadd
  107. 12806 lda col
  108. 12808 ldx #3
  109. 12810 jsr cmltad
  110. 12812 ldy #0
  111. 12814 sty tmp2
  112. 12816 lda rast
  113. 12818 jsr add
  114. 12820 sei
  115. 12822 lda 1
  116. 12824 [175] #$fc
  117. 12826 sta 1
  118. 12828 lda (tmp),y
  119. 12830 e[176] erflg
  120. 12832 [176]a bitp
  121. 12834 e[176] erflg
  122. 12836 sta (tmp),y
  123. 12838 lda 1
  124. 12840 [176]a #3
  125. 12842 sta 1
  126. 12844 cli
  127. 12846 ldy $dd00
  128. 12848 lda $028d
  129. 12850 tax
  130. 12852 [175] #2
  131. 12854 beq plo7
  132. 12856 jsr [150]lt
  133. 12858 plo6 lda $028d
  134. 12860 tax
  135. 12862 [175] #2
  136. 12864 bne plo6
  137. 12866 tya
  138. 12868 [175] #3
  139. 12870 cmp #3
  140. 12872 beq plo11
  141. 12874 e[176] #1
  142. 12876 bcc plo9
  143. 12878 plo7 txa
  144. 12880 [175] #4
  145. 12882 beq plo11
  146. 12884 plo8 lda $028d
  147. 12886 [175] #4
  148. 12888 bne plo8
  149. 12890 tya
  150. 12892 [175] #3
  151. 12894 plo9 bne plo10
  152. 12896 jmp uppe
  153. 12898 plo10 cmp #1
  154. 12900 bne plo11
  155. 12902 jmp lowe
  156. 12904 plo11 rts
  157. 12906 ;
  158. 12908 cmltad pha
  159. 12910 lda #0
  160. 12912 sta tmp2
  161. 12914 pla
  162. 12916 ;
  163. 12918 mltadd asl
  164. 12920 rol tmp2
  165. 12922 dex
  166. 12924 bne mltadd
  167. 12926 ;
  168. 12928 add pha
  169. 12930 clc
  170. 12932 adc tmp
  171. 12934 sta tmp
  172. 12936 lda tmp2
  173. 12938 adc tmp[170]1
  174. 12940 sta tmp[170]1
  175. 12942 pla
  176. 12944 rts
  177. 12946 ;
  178. 12948 [161]2 jsr $ad8a
  179. 12950 jsr $aefd
  180. 12952 jsr comx
  181. 12954 jsr $b7f7
  182. 12956 sty x
  183. 12958 sta x[170]1
  184. 12960 jsr $ad8a
  185. 12962 jsr comy
  186. 12964 jsr $b7f7
  187. 12966 sty y
  188. 12968 sta y[170]1
  189. 12970 rts
  190. 12972 ;
  191. 12974 gcl lda #$bf
  192. 12976 sta t3
  193. 12978 lda #$ff
  194. 12980 sta t5
  195. 12982 ldx #$20
  196. 12984 ldy #$40
  197. 12986 lda #0
  198. 12988 gcl1 pha
  199. 12990 lda #0
  200. 12992 sta t2
  201. 12994 sta t4
  202. 12996 pla
  203. 12998 gcl2 dey
  204. 13000 sta (t2),y
  205. 13002 sta (t4),y
  206. 13004 bne gcl2
  207. 13006 dec t3
  208. 13008 dec t5
  209. 13010 dex
  210. 13012 bne gcl2
  211. 13014 rts
  212. 13016 ;
  213. 13018 gco jsr $b79e
  214. 13020 lda #$8f
  215. 13022 sta t3
  216. 13024 lda #$cf
  217. 13026 sta t5
  218. 13028 txa
  219. 13030 ldx #4
  220. 13032 ldy #$e8
  221. 13034 bne gcl1
  222. 13036 ;
  223. 13038 uppe ldx #0
  224. 13040 .byte $2c
  225. 13042 lowe ldx #3
  226. 13044 .byte $2c
  227. 13046 [150]lt ldx #6
  228. 13048 lda scrdat,x
  229. 13050 sta $d011
  230. 13052 inx
  231. 13054 lda scrdat,x
  232. 13056 sta $d018
  233. 13058 lda $dd02
  234. 13060 [176]a #3
  235. 13062 sta $dd02
  236. 13064 inx
  237. 13066 sei
  238. 13068 [150]1 lda $d012
  239. 13070 bne [150]1
  240. 13072 lda $dd00
  241. 13074 [175] #$fc
  242. 13076 [176]a scrdat,x
  243. 13078 sta $dd00
  244. 13080 cli
  245. 13082 rts
  246. 13084 ;
  247. 13086 scrdat [178][172]
  248. 13088 .byte $3b,$38,$01
  249. 13090 .byte $3b,$38,$00
  250. 13092 .byte $1b,$17,$03
  251. 13094 ;
  252. 13096 slin lda #$55
  253. 13098 .byte $2c
  254. 13100 dlin lda #$33
  255. 13102 .byte $2c
  256. 13104 nlin lda #$ff
  257. 13106 .byte $2c
  258. 13108 qlin lda #$0f
  259. 13110 sta dot
  260. 13112 ;
  261. 13114 plin jsr $ad8a
  262. 13116 jsr $aefd
  263. 13118 jsr comx
  264. 13120 ldx #[179]yo
  265. 13122 ldy #[177]yo
  266. 13124 jsr $bbd4
  267. 13126 jsr $b7f7
  268. 13128 sty x1
  269. 13130 sta x1[170]1
  270. 13132 jsr $ad8a
  271. 13134 jsr $aefd
  272. 13136 jsr comy
  273. 13138 ldx #[179]tmpf
  274. 13140 ldy #[177]tmpf
  275. 13142 jsr $bbd4
  276. 13144 jsr $b7f7
  277. 13146 sty y1
  278. 13148 sta y1[170]1
  279. 13150 jsr $ad8a
  280. 13152 jsr $aefd
  281. 13154 jsr comx
  282. 13156 ldx #[179]xo
  283. 13158 ldy #[177]xo
  284. 13160 jsr $bbd4
  285. 13162 jsr $b7f7
  286. 13164 sty x2
  287. 13166 sta x2[170]1
  288. 13168 lda #[179]xo
  289. 13170 ldy #[177]xo
  290. 13172 jsr $bba2
  291. 13174 lda #[179]yo
  292. 13176 ldy #[177]yo
  293. 13178 jsr $b850
  294. 13180 ldx #[179]dx
  295. 13182 ldy #[177]dx
  296. 13184 jsr $bbd4
  297. 13186 jsr $ad8a
  298. 13188 jsr comy
  299. 13190 ldx #[179]xo
  300. 13192 ldy #[177]xo
  301. 13194 jsr $bbd4
  302. 13196 jsr $b7f7
  303. 13198 sty y2
  304. 13200 sta y2[170]1
  305. 13202 lda #[179]xo
  306. 13204 ldy #[177]xo
  307. 13206 jsr $bba2
  308. 13208 lda #[179]tmpf
  309. 13210 ldy #[177]tmpf
  310. 13212 jsr $b850
  311. 13214 ldx #[179]dy
  312. 13216 ldy #[177]dy
  313. 13218 jsr $bbd4
  314. 13220 lda $61
  315. 13222 beq lin1
  316. 13224 lda #[179]dx
  317. 13226 ldy #[177]dx
  318. 13228 jsr $bb0f
  319. 13230 ldx #[179]sx
  320. 13232 ldy #[177]sx
  321. 13234 jsr $bbd4
  322. 13236 lda #[179]tmpf
  323. 13238 ldy #[177]tmpf
  324. 13240 jsr $ba28
  325. 13242 jsr $bfb4
  326. 13244 lda #[179]yo
  327. 13246 ldy #[177]yo
  328. 13248 jsr $b867
  329. 13250 ldx #[179]xo
  330. 13252 ldy #[177]xo
  331. 13254 jsr $bbd4
  332. 13256 lin1 lda #[179]dx
  333. 13258 ldy #[177]dx
  334. 13260 jsr $bba2
  335. 13262 lda $61
  336. 13264 beq lin2
  337. 13266 lda #[179]dy
  338. 13268 ldy #[177]dy
  339. 13270 jsr $bb0f
  340. 13272 ldx #[179]sy
  341. 13274 ldy #[177]sy
  342. 13276 jsr $bbd4
  343. 13278 lda #[179]yo
  344. 13280 ldy #[177]yo
  345. 13282 jsr $ba28
  346. 13284 jsr $bfb4
  347. 13286 lda #[179]tmpf
  348. 13288 ldy #[177]tmpf
  349. 13290 jsr $b867
  350. 13292 ldx #[179]yo
  351. 13294 ldy #[177]yo
  352. 13296 jsr $bbd4
  353. 13298 lin2 lda #[179]dx
  354. 13300 ldy #[177]dx
  355. 13302 jsr $bba2
  356. 13304 lsr $66
  357. 13306 ldx #[179]tmpf
  358. 13308 ldy #[177]tmpf
  359. 13310 jsr $bbd4
  360. 13312 lda #[179]dy
  361. 13314 ldy #[177]dy
  362. 13316 jsr $bba2
  363. 13318 lsr $66
  364. 13320 lda #[179]tmpf
  365. 13322 ldy #[177]tmpf
  366. 13324 jsr $bc5b
  367. 13326 bmi lin7
  368. 13328 lda dy[170]1
  369. 13330 bmi lin3
  370. 13332 jsr swap
  371. 13334 lin3 lda y1
  372. 13336 sta y
  373. 13338 lda y1[170]1
  374. 13340 sta y[170]1
  375. 13342 lda dy
  376. 13344 bne lin4
  377. 13346 lda x1
  378. 13348 sta x
  379. 13350 lda x1[170]1
  380. 13352 sta x[170]1
  381. 13354 jmp lin6
  382. 13356 lin4 ldy y
  383. 13358 lda y[170]1
  384. 13360 sty $63
  385. 13362 sta $62
  386. 13364 ldx #$90
  387. 13366 sec
  388. 13368 jsr $bc49
  389. 13370 lda #[179]sx
  390. 13372 ldy #[177]sx
  391. 13374 jsr $ba28
  392. 13376 lda #[179]xo
  393. 13378 ldy #[177]xo
  394. 13380 jsr $b867
  395. 13382 jsr $b849
  396. 13384 jsr $b7f7
  397. 13386 sty x
  398. 13388 sta x[170]1
  399. 13390 jsr dplot
  400. 13392 lda y[170]1
  401. 13394 cmp y2[170]1
  402. 13396 bne lin5
  403. 13398 lda y
  404. 13400 cmp y2
  405. 13402 beq lin6
  406. 13404 lin5 inc y
  407. 13406 bne lin4
  408. 13408 inc y[170]1
  409. 13410 bne lin4
  410. 13412 lin6 jmp plo1
  411. 13414 lin7 lda dx[170]1
  412. 13416 bmi lin8
  413. 13418 jsr swap
  414. 13420 lin8 lda x1
  415. 13422 sta x
  416. 13424 lda x1[170]1
  417. 13426 sta x[170]1
  418. 13428 lin9 ldy x
  419. 13430 lda x[170]1
  420. 13432 jsr usfp
  421. 13434 lda #[179]sy
  422. 13436 ldy #[177]sy
  423. 13438 jsr $ba28
  424. 13440 lda #[179]yo
  425. 13442 ldy #[177]yo
  426. 13444 jsr $b867
  427. 13446 jsr $b849
  428. 13448 jsr $b7f7
  429. 13450 sty y
  430. 13452 sta y[170]1
  431. 13454 jsr dplot
  432. 13456 lda x[170]1
  433. 13458 cmp x2[170]1
  434. 13460 bne lin10
  435. 13462 lda x
  436. 13464 cmp x2
  437. 13466 beq lin11
  438. 13468 lin10 inc x
  439. 13470 bne lin9
  440. 13472 inc x[170]1
  441. 13474 bne lin9
  442. 13476 lin11 jmp plo1
  443. 13478 ;
  444. 13480 swap ldx #3
  445. 13482 swa1 ldy x1,x
  446. 13484 lda x2,x
  447. 13486 sta x1,x
  448. 13488 tya
  449. 13490 sta x2,x
  450. 13492 dex
  451. 13494 bpl swa1
  452. 13496 rts
  453. 13498 ;
  454. 13500 f320 .byte $90,$20,$00,$00,$00
  455. 13502 f400 .byte $90,$48,$00,$00,$00
  456. 13504 ;
  457. 13506 comx lda #[179]f320
  458. 13508 ldy #[177]f320
  459. 13510 bne chek
  460. 13512 ;
  461. 13514 comy lda #[179]f400
  462. 13516 ldy #[177]f400
  463. 13518 ;
  464. 13520 chek ldx $66
  465. 13522 bmi che1
  466. 13524 jsr $bc5b
  467. 13526 bpl che2
  468. 13528 che1 rts
  469. 13530 che2 jmp $b248
  470. 13532 ;
  471. 13534 dplot r[176] dot
  472. 13536 php
  473. 13538 rol dot
  474. 13540 plp
  475. 13542 r[176] dot
  476. 13544 bcc che1
  477. 13546 jmp plo1
  478. 13548 ;
  479. 13550 cha jsr [161]2
  480. 13552 jsr $aefd
  481. 13554 jsr $ad9e
  482. 13556 jsr $b6a3
  483. 13558 sta [195]
  484. 13560 cha1 ldy #0
  485. 13562 lda ($22),y
  486. 13564 tax
  487. 13566 [175] #$7f
  488. 13568 cmp #$20
  489. 13570 txa
  490. 13572 bcs cha6
  491. 13574 ldy #9
  492. 13576 cha2 cmp ctrls,y
  493. 13578 beq cha3
  494. 13580 dey
  495. 13582 bpl cha2
  496. 13584 bmi cha4
  497. 13586 cha3 tya
  498. 13588 asl
  499. 13590 tax
  500. 13592 lda ccrtns,x
  501. 13594 sta t2
  502. 13596 lda ccrtns[170]1,x
  503. 13598 sta t3
  504. 13600 jsr cha5
  505. 13602 cha4 jmp cha20
  506. 13604 cha5 jmp (t2)
  507. 13606 ;
  508. 13608 ctrls .byte $12,$92,$1f,$9e,$90
  509. 13610 .byte $05,$11,$1d,$91,$9d
  510. 13612 ;
  511. 13614 ccrtns .w[176]d ccr,ccrx,ccl,ccu,cce
  512. 13616 .w[176]d ccex,ccdn,ccrt,ccup,cclt
  513. 13618 ;
  514. 13620 ccr lda #4
  515. 13622 .byte $2c
  516. 13624 ccl lda #8
  517. 13626 [176]a choff
  518. 13628 bne ccu1
  519. 13630 ;
  520. 13632 ccrx lda #$db
  521. 13634 .byte $2c
  522. 13636 ccu lda #$d7
  523. 13638 [175] choff
  524. 13640 ccu1 sta choff
  525. 13642 rts
  526. 13644 ;
  527. 13646 cce lda #$ff
  528. 13648 .byte $2c
  529. 13650 ccex lda #0
  530. 13652 sta erflg
  531. 13654 rts
  532. 13656 ;
  533. 13658 ccdn lda #$f8
  534. 13660 .byte $2c
  535. 13662 ccup lda #8
  536. 13664 jmp yoff
  537. 13666 ;
  538. 13668 ccrt lda #8
  539. 13670 .byte $2c
  540. 13672 cclt lda #$f8
  541. 13674 jmp xoff
  542. 13676 ;
  543. 13678 cha6 [175] #$e0
  544. 13680 cmp #$60
  545. 13682 bne cha7
  546. 13684 txa
  547. 13686 sec
  548. 13688 sbc #$20
  549. 13690 tax
  550. 13692 bne cha9
  551. 13694 cha7 cmp #$80
  552. 13696 [175] #$40
  553. 13698 bcc cha8
  554. 13700 adc #$3f
  555. 13702 cha8 sta t2
  556. 13704 sec
  557. 13706 txa
  558. 13708 sbc t2
  559. 13710 tax
  560. 13712 cha9 lda #0
  561. 13714 sta tmp
  562. 13716 txa
  563. 13718 ldx #3
  564. 13720 cha10 asl
  565. 13722 rol tmp
  566. 13724 dex
  567. 13726 bne cha10
  568. 13728 sta tmp4
  569. 13730 lda choff
  570. 13732 clc
  571. 13734 adc tmp
  572. 13736 sta tmp4[170]1
  573. 13738 lda #$f9
  574. 13740 jsr yoff
  575. 13742 ldy #7
  576. 13744 cha11 sei
  577. 13746 lda 1
  578. 13748 [175] #$fb
  579. 13750 sta 1
  580. 13752 lda (tmp4),y
  581. 13754 tax
  582. 13756 lda 1
  583. 13758 [176]a #4
  584. 13760 sta 1
  585. 13762 cli
  586. 13764 tya
  587. 13766 pha
  588. 13768 txa
  589. 13770 pha
  590. 13772 ldx #7
  591. 13774 cha12 pla
  592. 13776 asl
  593. 13778 pha
  594. 13780 bcc cha17
  595. 13782 lda x[170]1
  596. 13784 bmi cha14
  597. 13786 cha13 lda #$fe
  598. 13788 sta tmp
  599. 13790 lda #$c0
  600. 13792 jsr xoff2
  601. 13794 bpl cha13
  602. 13796 cha14 lda #1
  603. 13798 sta tmp
  604. 13800 lda #$40
  605. 13802 jsr xoff2
  606. 13804 bmi cha14
  607. 13806 lda y[170]1
  608. 13808 bmi cha16
  609. 13810 cha15 lda #$fe
  610. 13812 sta tmp
  611. 13814 lda #$70
  612. 13816 jsr yoff2
  613. 13818 bpl cha15
  614. 13820 cha16 lda #1
  615. 13822 sta tmp
  616. 13824 lda #$90
  617. 13826 jsr yoff2
  618. 13828 bmi cha16
  619. 13830 txa
  620. 13832 pha
  621. 13834 jsr plo1
  622. 13836 pla
  623. 13838 tax
  624. 13840 cha17 dex
  625. 13842 bmi cha18
  626. 13844 lda #1
  627. 13846 jsr xoff
  628. 13848 jmp cha12
  629. 13850 cha18 pla
  630. 13852 pla
  631. 13854 tay
  632. 13856 dey
  633. 13858 bmi cha19
  634. 13860 lda #$f9
  635. 13862 jsr xoff
  636. 13864 lda #1
  637. 13866 jsr yoff
  638. 13868 jmp cha11
  639. 13870 cha19 lda #1
  640. 13872 jsr xoff
  641. 13874 cha20 inc $22
  642. 13876 bne cha21
  643. 13878 inc $23
  644. 13880 cha21 dec [195]
  645. 13882 beq cha22
  646. 13884 jmp cha1
  647. 13886 cha22 rts
  648. 13888 ;
  649. 13890 xoff pha
  650. 13892 cmp #$80
  651. 13894 bcs xof1
  652. 13896 lda #0
  653. 13898 .byte $2c
  654. 13900 xof1 lda #$ff
  655. 13902 sta tmp
  656. 13904 pla
  657. 13906 ;
  658. 13908 xoff2 clc
  659. 13910 adc x
  660. 13912 sta x
  661. 13914 lda tmp
  662. 13916 adc x[170]1
  663. 13918 sta x[170]1
  664. 13920 rts
  665. 13922 ;
  666. 13924 yoff pha
  667. 13926 cmp #$80
  668. 13928 bcs yof1
  669. 13930 lda #0
  670. 13932 .byte $2c
  671. 13934 yof1 lda #$ff
  672. 13936 sta tmp
  673. 13938 pla
  674. 13940 ;
  675. 13942 yoff2 clc
  676. 13944 adc y
  677. 13946 sta y
  678. 13948 lda tmp
  679. 13950 adc y[170]1
  680. 13952 sta y[170]1
  681. 13954 rts
  682. 13956 ;
  683. 13958 scha jsr [161]2
  684. 13960 jsr $aefd
  685. 13962 lda #$fe
  686. 13964 jsr xoff
  687. 13966 lda #$fe
  688. 13968 jsr yoff
  689. 13970 jsr $b79e
  690. 13972 txa
  691. 13974 sta tmp3
  692. 13976 asl
  693. 13978 asl
  694. 13980 adc tmp3
  695. 13982 sta tmp3
  696. 13984 ldy #5
  697. 13986 sch1 lda tmp3
  698. 13988 tax
  699. 13990 inc tmp3
  700. 13992 lda scx,x
  701. 13994 ldx #5
  702. 13996 sch2 asl
  703. 13998 pha
  704. 14000 bcc sch5
  705. 14002 lda x[170]1
  706. 14004 beq sch3
  707. 14006 lda x
  708. 14008 cmp #$40
  709. 14010 bcs sch5
  710. 14012 sch3 lda y[170]1
  711. 14014 beq sch4
  712. 14016 lda y
  713. 14018 cmp #$90
  714. 14020 bcs sch5
  715. 14022 sch4 txa
  716. 14024 pha
  717. 14026 tya
  718. 14028 pha
  719. 14030 jsr plo1
  720. 14032 pla
  721. 14034 tay
  722. 14036 pla
  723. 14038 tax
  724. 14040 sch5 lda #1
  725. 14042 jsr xoff
  726. 14044 pla
  727. 14046 dex
  728. 14048 bne sch2
  729. 14050 lda #1
  730. 14052 jsr yoff
  731. 14054 lda #$fb
  732. 14056 jsr xoff
  733. 14058 dey
  734. 14060 bne sch1
  735. 14062 rts
  736. 14064 ;
  737. 14066 ;chars [171] 5 left bits of 5 bytes
  738. 14068 scx [178][172]
  739. 14070 .byte $88,$50,$20,$50,$88
  740. 14072 .byte $20,$20,$fc,$20,$20
  741. 14074 .byte $fc,$88,$88,$88,$fc
  742. 14076 .byte $20,$50,$88,$50,$20
  743. 14078 .byte $00,$50,$20,$50,$00
  744. 14080 .byte $00,$20,$70,$20,$00
  745. 14082 .byte $00,$70,$50,$70,$00
  746. 14084 .byte $00,$20,$50,$20,$00
  747. 14086 .byte $fc,$fc,$fc,$fc,$fc
  748. 14088 .byte $20,$70,$fc,$70,$20
  749. 14090 .byte $00,$70,$70,$70,$00
  750. 14092 .byte $00,$20,$70,$20,$00
  751. 14094 ;
  752. 14096 sba ldx #$55
  753. 14098 lda #$aa
  754. 14100 bne nb1
  755. 14102 ;
  756. 14104 dba ldx #$33
  757. 14106 lda #$99
  758. 14108 bne nb1
  759. 14110 ;
  760. 14112 nba lda #$ff
  761. 14114 tax
  762. 14116 nb1 stx dot
  763. 14118 sta ldot
  764. 14120 ;
  765. 14122 bba lda dot
  766. 14124 sta tmp3
  767. 14126 lda ldot
  768. 14128 pha
  769. 14130 jsr [161]2
  770. 14132 sty y1
  771. 14134 sta y1[170]1
  772. 14136 lda x
  773. 14138 sta x1
  774. 14140 lda x[170]1
  775. 14142 sta x1[170]1
  776. 14144 jsr $aefd
  777. 14146 jsr [161]2
  778. 14148 sty y2
  779. 14150 sta y2[170]1
  780. 14152 ba1 ldy y2
  781. 14154 lda y2[170]1
  782. 14156 sty y
  783. 14158 sta y[170]1
  784. 14160 lda tmp3
  785. 14162 sta dot
  786. 14164 ba2 sec
  787. 14166 lda x
  788. 14168 sbc x1
  789. 14170 lda x[170]1
  790. 14172 sbc x1[170]1
  791. 14174 bcc ba5
  792. 14176 r[176] ldot
  793. 14178 php
  794. 14180 rol ldot
  795. 14182 plp
  796. 14184 r[176] ldot
  797. 14186 bcc ba4
  798. 14188 ba3 sec
  799. 14190 lda y
  800. 14192 sbc y1
  801. 14194 lda y[170]1
  802. 14196 sbc y1[170]1
  803. 14198 bcc ba4
  804. 14200 jsr dplot
  805. 14202 lda #$ff
  806. 14204 jsr yoff
  807. 14206 bcs ba3
  808. 14208 ba4 lda #$ff
  809. 14210 jsr xoff
  810. 14212 bcs ba1
  811. 14214 ba5 pla
  812. 14216 sta ldot
  813. 14218 rts
  814. 14220 ;
  815. 14222 gsav ldx #0
  816. 14224 lda #"w"
  817. 14226 bne gd1
  818. 14228 ;
  819. 14230 gloa ldx #1
  820. 14232 lda #"r"
  821. 14234 ;
  822. 14236 gd1 sta gnsuf[170]5
  823. 14238 stx tmp2
  824. 14240 jsr $ad9e
  825. 14242 jsr $b6a3
  826. 14244 cmp #$0f
  827. 14246 bcc gd2
  828. 14248 lda #$0e
  829. 14250 gd2 pha
  830. 14252 tax
  831. 14254 ldy #0
  832. 14256 gd3 lda ($22),y
  833. 14258 sta g[165]am[170]2,y
  834. 14260 iny
  835. 14262 dex
  836. 14264 bne gd3
  837. 14266 ldx #0
  838. 14268 gd4 lda gnsuf,x
  839. 14270 sta g[165]am[170]2,y
  840. 14272 iny
  841. 14274 inx
  842. 14276 cpx #6
  843. 14278 bne gd4
  844. 14280 pla
  845. 14282 clc
  846. 14284 adc #8
  847. 14286 ldx #[179]g[165]am
  848. 14288 ldy #[177]g[165]am
  849. 14290 jsr setnam
  850. 14292 lda #2
  851. 14294 tay
  852. 14296 ldx #8
  853. 14298 jsr setlfs
  854. 14300 jsr [159]
  855. 14302 bcc gd5
  856. 14304 cmp #4
  857. 14306 bne gd8
  858. 14308 gd5 ldy #0
  859. 14310 sty tmp
  860. 14312 ldx #2
  861. 14314 lda tmp2
  862. 14316 bne gd9
  863. 14318 jsr chkout
  864. 14320 lda hite
  865. 14322 tay
  866. 14324 jsr chrout
  867. 14326 lda hite[170]1
  868. 14328 jsr chrout
  869. 14330 gd6 sta tmp[170]1
  870. 14332 gd7 sei
  871. 14334 lda 1
  872. 14336 [175] #$fc
  873. 14338 sta 1
  874. 14340 lda (tmp),y
  875. 14342 pha
  876. 14344 lda 1
  877. 14346 [176]a #3
  878. 14348 sta 1
  879. 14350 cli
  880. 14352 pla
  881. 14354 jsr chrout
  882. 14356 lda $90
  883. 14358 bne gd8
  884. 14360 iny
  885. 14362 bne gd7
  886. 14364 inc tmp[170]1
  887. 14366 beq gd8
  888. 14368 lda tmp[170]1
  889. 14370 cmp #$c0
  890. 14372 bne gd7
  891. 14374 lda #$e0
  892. 14376 bne gd6
  893. 14378 gd8 jsr [156]chn
  894. 14380 lda #2
  895. 14382 jmp [160]
  896. 14384 ;
  897. 14386 gd9 jsr chkin
  898. 14388 jsr [161]in
  899. 14390 sta hite
  900. 14392 tay
  901. 14394 lda $90
  902. 14396 bne gd8
  903. 14398 jsr [161]in
  904. 14400 sta hite[170]1
  905. 14402 sta tmp[170]1
  906. 14404 gd10 jsr [161]in
  907. 14406 sta (tmp),y
  908. 14408 lda $90
  909. 14410 bne gd8
  910. 14412 iny
  911. 14414 bne gd10
  912. 14416 inc tmp[170]1
  913. 14418 beq gd8
  914. 14420 lda tmp[170]1
  915. 14422 cmp #$c0
  916. 14424 bne gd10
  917. 14426 lda #$e0
  918. 14428 sta tmp[170]1
  919. 14430 bne gd10
  920. 14432 ;
  921. 14434 g[165]am [178][172]
  922. 14436 .[198] "0:0123456789abcd.g,s,w"
  923. 14438 gnsuf .[198] ".g,s,w"
  924. 14440 ;
  925. 14442 gprin lda #0
  926. 14444 jsr setnam
  927. 14446 lda #3
  928. 14448 ldx #4
  929. 14450 ldy #$ff
  930. 14452 jsr setlfs
  931. 14454 jsr [159]
  932. 14456 bcc gpr1
  933. 14458 jmp gpr12
  934. 14460 gpr1 ldx #3
  935. 14462 jsr chkout
  936. 14464 ldx #6
  937. 14466 gpr2 lda ptrs,x
  938. 14468 jsr chrout
  939. 14470 dex
  940. 14472 bpl gpr2
  941. 14474 lda #0
  942. 14476 sta tmp
  943. 14478 lda hite[170]1
  944. 14480 sta tmp[170]1
  945. 14482 ldy hite
  946. 14484 gpr3 ldx #5
  947. 14486 gpr4 lda ptrr,x
  948. 14488 jsr chrout
  949. 14490 dex
  950. 14492 bpl gpr4
  951. 14494 lda #$28
  952. 14496 sta tmp3
  953. 14498 gpr5 ldx #7
  954. 14500 sei
  955. 14502 lda #$fc
  956. 14504 [175] 1
  957. 14506 sta 1
  958. 14508 gpr6 lda (tmp),y
  959. 14510 sta buff,x
  960. 14512 iny
  961. 14514 bne gpr7
  962. 14516 inc tmp[170]1
  963. 14518 gpr7 dex
  964. 14520 bpl gpr6
  965. 14522 lda #3
  966. 14524 [176]a 1
  967. 14526 sta 1
  968. 14528 cli
  969. 14530 tya
  970. 14532 pha
  971. 14534 ldy #7
  972. 14536 gpr8 ldx #7
  973. 14538 gpr9 rol buff,x
  974. 14540 rol
  975. 14542 dex
  976. 14544 bpl gpr9
  977. 14546 jsr chrout
  978. 14548 dey
  979. 14550 bpl gpr8
  980. 14552 pla
  981. 14554 tay
  982. 14556 dec tmp3
  983. 14558 bne gpr5
  984. 14560 cpy #$40
  985. 14562 bne gpr3
  986. 14564 lda tmp[170]1
  987. 14566 cmp #$ff
  988. 14568 beq gpr10
  989. 14570 cmp #$bf
  990. 14572 bne gpr3
  991. 14574 lda #$e0
  992. 14576 sta tmp[170]1
  993. 14578 ldy #0
  994. 14580 beq gpr3
  995. 14582 gpr10 ldx #3
  996. 14584 gpr11 lda ptrf,x
  997. 14586 jsr chrout
  998. 14588 dex
  999. 14590 bpl gpr11
  1000. 14592 gpr12 jsr [156]chn
  1001. 14594 lda #3
  1002. 14596 jmp [160]
  1003. 14598 ;
  1004. 14600 ;prt c[145]diti[145]ing [131] strings
  1005. 14602 ptrs [178][172]
  1006. 14604 .byte $00,$0d,$44,$1b,$08,$41,$1b
  1007. 14606 ptrr [178][172]
  1008. 14608 .byte $01,$40,$4b,$1b,$09,$0d
  1009. 14610 ptrf .byte $32,$1b,$0d
  1010. 14612 ;
  1011. 15000 lma jsr $b79e
  1012. 15002 stx ptrs[170]1
  1013. 15004 lma1 rts
  1014. 15006 ;
  1015. 15008 siz jsr $ad8a
  1016. 15010 jsr comy
  1017. 15012 jsr $b7f7
  1018. 15014 sty tmp3
  1019. 15016 sta tmp3[170]1
  1020. 15018 ldx #$a0
  1021. 15020 stx hite[170]1
  1022. 15022 sz1 sec
  1023. 15024 lda #$6f
  1024. 15026 sbc tmp3
  1025. 15028 lda #1
  1026. 15030 sbc tmp3[170]1
  1027. 15032 bmi lma1
  1028. 15034 clc
  1029. 15036 lda #$20
  1030. 15038 adc tmp3
  1031. 15040 sta tmp3
  1032. 15042 lda #0
  1033. 15044 adc tmp3[170]1
  1034. 15046 sta tmp3[170]1
  1035. 15048 clc
  1036. 15050 lda #5
  1037. 15052 adc hite[170]1
  1038. 15054 cmp #$c0
  1039. 15056 bcc sz2
  1040. 15058 cmp #$e0
  1041. 15060 bcs sz2
  1042. 15062 [176]a #20
  1043. 15064 sz2 sta hite[170]1
  1044. 15066 bne sz1
  1045. 15068 ;
  1046. 15070 eras jsr $b79e
  1047. 15072 txa
  1048. 15074 beq era1
  1049. 15076 ldx #$ff
  1050. 15078 era1 stx erflg
  1051. 15080 rts
  1052. 15082 ;
  1053. 15084 patt jsr $b79e
  1054. 15086 stx dot
  1055. 15088 jsr $aefd
  1056. 15090 jsr $b79e
  1057. 15092 stx ldot
  1058. 15094 rts
  1059. 15096 ;
  1060. 15098 x1    .w[176]d $0040
  1061. 15100 y1    .w[176]d $0040
  1062. 15102 x2    .w[176]d $0080
  1063. 15104 y2    .w[176]d $0080
  1064. 15106 dx     [172][178][172][170]5
  1065. 15108 dy     [172][178][172][170]5
  1066. 15110 sx     [172][178][172][170]5
  1067. 15112 sy     [172][178][172][170]5
  1068. 15114 x     .w[176]d $0080
  1069. 15116 y     .w[176]d $0080
  1070. 15118 tmpf   [172][178][172][170]5
  1071. 15120 xo     [172][178][172][170]5
  1072. 15122 yo     [172][178][172][170]5
  1073. 15124 ty     [172][178][172][170]2
  1074. 15126 bitp   [172][178][172][170]1
  1075. 15128 row    [172][178][172][170]1
  1076. 15130 rast   [172][178][172][170]1
  1077. 15132 col    [172][178][172][170]1
  1078. 15134 dot   .byte $ff
  1079. 15136 ldot  .byte $ff
  1080. 15138 addr   [172][178][172][170]2
  1081. 15140 erflg .byte $00
  1082. 15142 tx     [172][178][172][170]2
  1083. 15144 ty2    [172][178][172][170]2
  1084. 15146 hite  .w[176]d $a000
  1085. 15148 buff   [172][178][172][170]8
  1086. 15150 choff .byte $d0
  1087. 15152 [195]   .byte $10
  1088. 15154 ;
  1089.