Acorn DNFS annotated disassembly -------------------------------- Zero page usage: 9F = high byte of econet open port workspace (&1A) A0/A1 = address of open port block (e.g. &196F) A2/A3 = length of open port buffer A4/A5 = address of open port buffer A6 = offset into open port workspace (page &1A) A9 = ROM service number (7=osbyte, 8=osword) Page D usage: D20-25 = packet to send D2A = length of data in open port block D3D-40 = incoming data packet D3D = src address, station num D3E = src network (0) D3F = control byte D40 = port number D4A = control status byte b0 - transmit error(?) b1 - tube enabled b2 - broadcast mode b6 - transmit error b7 - expecting data packet(?) D4B/C = address in DNFS ROM of handler for next NMI D4F = index of next byte in packet (at D20) to send D50 = bytes in packet at D20 to write (e.g. 6 for scout) D5C = status byte, 2=scout sent, 3=incoming packet matches open file D62 = osword busy flag, 0=busy, &80=idle D66 = init flag, 0=not initialised, &80=initialised D67 = tube flag, 0=not operating over tube, &FF=tube 8000 4C E1 80 La. JMP &80E1 ; lang 8003 4C F7 80 Lw. JMP &80F7 ; service request 8006 82 . ??? 8007 10 83 .. BPL &7F8C 8009 44 D ??? 800A 46 53 FS LSR &53 800C 2C 4E 45 ,NE BIT &454E 800F 54 T ??? 8010 00 . BRK 8011 28 ( PLP 8012 43 C ??? 8013 29 52 )R AND #&52 8015 4F O ??? 8016 46 46 FF LSR &46 8018 00 . BRK ; table of offsets from 8580 for error messages 8019 0D 18 27 ..' ORA &2718 801C 31 31 11 AND (&31),Y 801E 31 39 19 AND (&39),Y 8020 45 01 E. EOR &01 8022 00 . BRK 8023 60 ` RTS 8024 03 . ??? 8025 F5 BB u; SBC &BB,X 8027 C4 1C D. CPY &1C 8029 B4 3B 4; LDY &3B,X 802B F5 6E un SBC &6E,X 802D 86 07 .. STX &07 802F F5 38 u8 SBC &38,X 8031 35 F0 5p AND &F0,X 8033 FC | ??? 8034 AE AA DC .*\ LDX &DCAA 8037 EC 2B AC l+, CPX &AC2B 803A DB [ ??? 803B 1A . ??? 803C DB [ ??? 803D 66 50 fP ROR &50 803F CA J DEX 8040 95 37 .7 STA &37,X 8042 38 8 SEC 8043 31 E1 1a AND (&E1),Y 8045 2C 66 6C ,fl BIT &6C66 8048 7C | ??? 8049 BB ; ??? 804A 80 . ??? 804B 82 . ??? 804C 82 . ??? 804D 82 . ??? 804E 81 96 .. STA (&96,X) 8050 80 . ??? 8051 80 . ??? 8052 8E 82 80 ... STX &8082 8055 96 96 .. STX &96,Y 8057 81 84 .. STA (&84,X) 8059 84 92 .. STY &92 805B 84 84 .. STY &84 805D 8A . TXA 805E 88 . DEY 805F 8D 8C 8D ... STA &8D8C 8062 8C 83 86 ... STY &8683 8065 8D 8E 8E ... STA &8E8E 8068 8E 8D 8E ... STX &8E8D 806B 8E 8E 8E ... STX &8E8E 806E 81 A5 .% STA (&A5,X) 8070 EF o ??? 8071 E9 31 i1 SBC #&31 8073 C9 04 I. CMP #&04 8075 B0 6C 0l BCS &80E3 8077 AA * TAX 8078 A9 00 ). LDA #&00 807A 85 A9 .) STA &A9 807C 98 . TYA 807D A0 21 ! LDY #&21 807F D0 66 Pf BNE &80E7 8081 C8 H INY 8082 B1 BB 1; LDA (&BB),Y 8084 C9 20 I CMP #&20 8086 F0 F9 py BEQ &8081 8088 C9 3A I: CMP #&3A 808A B0 11 0. BCS &809D 808C 20 77 86 w. JSR &8677 808F 90 07 .. BCC &8098 8091 8D 01 0E ... STA &0E01 8094 C8 H INY 8095 20 77 86 w. JSR &8677 8098 F0 03 p. BEQ &809D 809A 8D 00 0E ... STA &0E00 809D 20 82 8D .. JSR &8D82 80A0 88 . DEY 80A1 F0 22 p" BEQ &80C5 80A3 B9 05 0F 9.. LDA &0F05,Y 80A6 C9 3A I: CMP #&3A 80A8 D0 F6 Pv BNE &80A0 80AA 20 EE FF n. JSR &FFEE 80AD 20 A1 84 !. JSR &84A1 80B0 20 E0 FF `. JSR &FFE0 80B3 99 05 0F ... STA &0F05,Y 80B6 C8 H INY 80B7 E8 h INX 80B8 C9 0D I. CMP #&0D 80BA D0 F1 Pq BNE &80AD 80BC 20 E7 FF g. JSR &FFE7 80BF D0 DF P_ BNE &80A0 80C1 20 82 8D .. JSR &8D82 80C4 A8 ( TAY 80C5 20 C7 83 G. JSR &83C7 80C8 AE 03 0F ... LDX &0F03 80CB F0 29 p) BEQ &80F6 80CD AD 05 0F -.. LDA &0F05 80D0 A0 17 . LDY #&17 80D2 D0 13 P. BNE &80E7 80D4 20 49 86 I. JSR &8649 80D7 C9 08 I. CMP #&08 80D9 B0 1B 0. BCS &80F6 80DB AA * TAX 80DC 98 . TYA 80DD A0 13 . LDY #&13 80DF D0 06 P. BNE &80E7 80E1 E0 05 `. CPX #&05 ; lang entry point (jmp here from 8000) 80E3 B0 11 0. BCS &80F6 80E5 A0 0E . LDY #&0E 80E7 E8 h INX ; 'return' to routine at 8024_x 8049_x @ remember to add 1 80E8 88 . DEY ; why the loop? 80E9 10 FC .| BPL &80E7 80EB A8 ( TAY 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 80EC BD 49 80 =I. LDA &8049,X A=80 82 82 82 81 96 80 80 8e 82 80 96 96 81 84 82 92 84 84 80EF 48 H PHA 80F0 BD 24 80 =$. LDA &8024,X A=F5 bb c4 1c B4 3B F5 6E 86 07 F5 38 35 F0 FC AE AA DC EC 2B ACDB 80F3 48 H PHA 80F4 A6 BB &; LDX &BB 80F6 60 ` RTS ---------------------------------------------------------------------------- Service entry point (jmp here from 8003) 80F7 2C 8F 02 ,.. BIT &028F ; 028F holds startup options (links on keyboard) ; bit 7 1=DFS, 0=NFS has priority. 80FA 08 . PHP ; save result 80FB 10 03 .. BPL &8100 ; NFS has priority, so skip next test 80FD 20 9D 9F .. JSR &9F9D ; checks disc status register, exits if not find x&03 8100 48 H PHA ; save service call reason 8101 C9 01 I. CMP #&01 ; absolute workspace claim 8103 D0 15 P. BNE &811A ; nope 8105 AD A0 FE - ~ LDA &FEA0 ; status1 8108 29 ED )m AND #&ED ; ~12 - CTS + S2RQ 810A D0 07 P. BNE &8113 ; any set of: IRQ, TDRA, TXU, FD, LOOP, RDA 810C AD A1 FE -!~ LDA &FEA1 ; status2 810F 29 DB )[ AND #&DB ; ~24 - DCD, RxIdle 8111 F0 07 p. BEQ &811A ; none set from RDA, Ovrn, ERR, RxAbt, FV, AP 8113 3E F0 0D >p. ROL &0DF0,X ; shift location left into carry. X is current rom number. 8116 38 8 SEC ; set carry. looks like econet hardware exists. 8117 7E F0 0D ~p. ROR &0DF0,X ; rotate right. all that set bit 7! carry now has b 811A BD F0 0D =p. LDA &0DF0,X ; load it again 811D 0A . ASL A ; shift left, 0 into bit0 811E 68 h PLA ; get service call again 811F 30 02 0. BMI &8123 ; branch if what minus? tube routines are A=-1. -2. 8121 B0 6E 0n BCS &8191 ; carry was set if it looks like econet hardware present 8123 C9 FE I~ CMP #&FE ; tube post-inint 8125 90 5C .\ BCC &8183 ; Econet OSWORD jumps here 8127 D0 1B P. BNE &8144 8129 C0 00 @. CPY #&00 812B F0 56 pV BEQ &8183 812D A2 06 ". LDX #&06 812F A9 14 ). LDA #&14 8131 20 F4 FF t. JSR &FFF4 8134 2C E0 FE ,`~ BIT &FEE0 ; tube 8137 10 FB .{ BPL &8134 8139 AD E1 FE -a~ LDA &FEE1 ; tube 813C F0 43 pC BEQ &8181 813E 20 EE FF n. JSR &FFEE 8141 4C 34 81 L4. JMP &8134 8144 A9 AD )- LDA #&AD 8146 8D 20 02 . . STA &0220 8149 A9 06 ). LDA #&06 814B 8D 21 02 .!. STA &0221 814E A9 16 ). LDA #&16 8150 8D 02 02 ... STA &0202 8153 A9 00 ). LDA #&00 8155 8D 03 02 ... STA &0203 8158 A9 8E ). LDA #&8E 815A 8D E0 FE .`~ STA &FEE0 ; tube 815D A0 00 . LDY #&00 ; copy 0300 bytes from 9362 -> 0400. (Tube service?) 815F B9 62 93 9b. LDA &9362,Y 8162 99 00 04 ... STA &0400,Y 8165 B9 62 94 9b. LDA &9462,Y 8168 99 00 05 ... STA &0500,Y 816B B9 62 95 9b. LDA &9562,Y 816E 99 00 06 ... STA &0600,Y 8171 88 . DEY 8172 D0 EB Pk BNE &815F 8174 20 21 04 !. JSR &0421 8177 A2 60 "` LDX #&60 8179 BD 21 93 =!. LDA &9321,X 817C 95 16 .. STA &16,X 817E CA J DEX 817F 10 F8 .x BPL &8179 8181 A9 00 ). LDA #&00 8183 C9 12 I. CMP #&12 ; SERVICE check - 12=init filing system 8185 D0 08 P. BNE &818F 8187 C0 05 @. CPY #&05 ; FS id number 8189 D0 04 P. BNE &818F 818B A9 0D ). LDA #&0D 818D D0 04 P. BNE &8193 818F C9 0D I. CMP #&0D ; SERVICE check - 13 8191 B0 1C 0. BCS &81AF ; A >= 13 jump to way out 8193 AA * TAX ; move service nuber to X 8194 A5 A9 %) LDA &A9 ; save a8 & a9 on stack 8196 48 H PHA 8197 A5 A8 %( LDA &A8 8199 48 H PHA 819A 86 A9 .) STX &A9 ; service into a9 819C 84 A8 .( STY &A8 ; save fs id number 819E 98 . TYA ; and move to acc 819F A0 00 . LDY #&00 ; clear y 81A1 20 E7 80 g. JSR &80E7 ; uses table at 8024,8049 +x to do a jump ; OSWORD goes to &8E87 81A4 A6 A9 &) LDX &A9 81A6 68 h PLA 81A7 85 A8 .( STA &A8 81A9 68 h PLA 81AA 85 A9 .) STA &A9 81AC 8A . TXA 81AD A6 F4 &t LDX &F4 81AF 28 ( PLP ; fetch flags again. (test of startup options) 81B0 30 37 07 BMI &81E9 ; nfs secondary... 81B2 4C 9D 9F L.. JMP &9F9D ; go check disc again and exit. 81B5 A2 0C ". LDX #&0C 81B7 20 62 83 b. JSR &8362 81BA D0 2E P. BNE &81EA 81BC A0 04 . LDY #&04 81BE B1 9C 1. LDA (&9C),Y 81C0 F0 21 p! BEQ &81E3 81C2 A9 00 ). LDA #&00 81C4 AA * TAX 81C5 91 9C .. STA (&9C),Y 81C7 A8 ( TAY 81C8 A9 C9 )I LDA #&C9 81CA 20 F4 FF t. JSR &FFF4 81CD A9 0A ). LDA #&0A 81CF 20 C4 90 D. JSR &90C4 81D2 86 9E .. STX &9E 81D4 A9 CE )N LDA #&CE 81D6 A6 9E &. LDX &9E 81D8 A0 7F . LDY #&7F 81DA 20 F4 FF t. JSR &FFF4 81DD 69 01 i. ADC #&01 81DF C9 D0 IP CMP #&D0 81E1 F0 F3 ps BEQ &81D6 81E3 A9 00 ). LDA #&00 81E5 85 A9 .) STA &A9 81E7 85 9E .. STA &9E 81E9 60 ` RTS ; exit. 81EA A2 05 ". LDX #&05 81EC 20 62 83 b. JSR &8362 81EF D0 24 P$ BNE &8215 81F1 20 18 82 .. JSR &8218 81F4 38 8 SEC 81F5 66 A8 f( ROR &A8 81F7 20 7B 82 {. JSR &827B 81FA A0 1D . LDY #&1D 81FC B1 9C 1. LDA (&9C),Y 81FE 99 EB 0D .k. STA &0DEB,Y 8201 88 . DEY 8202 C0 14 @. CPY #&14 8204 D0 F6 Pv BNE &81FC 8206 F0 5C p\ BEQ &8264 8208 20 5C 86 \. JSR &865C 820B 0D 4E 46 .NF ORA &464E 820E 53 S ??? 820F 20 33 2E 3. JSR &2E33 8212 36 30 60 ROL &30,X 8214 0D A4 A8 .$( ORA &A8A4 8217 60 ` RTS 8218 A9 06 ). LDA #&06 821A 6C 1E 02 l.. JMP (&021E) 821D 20 18 82 .. JSR &8218 8220 A9 7A )z LDA #&7A 8222 20 F4 FF t. JSR &FFF4 8225 8A . TXA 8226 30 0A 0. BMI &8232 8228 49 55 IU EOR #&55 822A D0 E9 Pi BNE &8215 822C A8 ( TAY 822D A9 78 )x LDA #&78 822F 20 F4 FF t. JSR &FFF4 8232 20 5C 86 \. JSR &865C 8235 45 63 Ec EOR &63 8237 6F o ??? 8238 6E 65 74 net ROR &7465 823B 20 53 74 St JSR &7453 823E 61 74 at ADC (&74,X) 8240 69 6F io ADC #&6F 8242 6E 20 A0 n ROR &A020 8245 14 . ??? 8246 B1 9C 1. LDA (&9C),Y 8248 20 BD 8D =. JSR &8DBD 824B A9 20 ) LDA #&20 824D 2C A1 FE ,!~ BIT &FEA1 8250 F0 0D p. BEQ &825F 8252 20 5C 86 \. JSR &865C 8255 20 4E 6F No JSR &6F4E 8258 20 43 6C Cl JSR &6C43 825B 6F o ??? 825C 63 c ??? 825D 6B k ??? 825E EA j NOP 825F 20 5C 86 \. JSR &865C 8262 0D 0D A0 .. ORA &A00D 8265 0D B9 9A .9. ORA &9AB9 8268 82 . ??? 8269 99 12 02 ... STA &0212,Y 826C 88 . DEY 826D 10 F7 .w BPL &8266 826F 20 25 83 %. JSR &8325 8272 A0 1B . LDY #&1B 8274 A2 07 ". LDX #&07 8276 20 39 83 9. JSR &8339 8279 86 A9 .) STX &A9 827B A9 8F ). LDA #&8F 827D A2 0F ". LDX #&0F 827F 20 F4 FF t. JSR &FFF4 8282 A2 0A ". LDX #&0A 8284 20 F4 FF t. JSR &FFF4 8287 A6 A8 &( LDX &A8 8289 D0 37 P7 BNE &82C2 828B A2 92 ". LDX #&92 828D A0 82 . LDY #&82 828F 4C 1B 8C L.. JMP &8C1B 8292 49 20 I EOR #&20 8294 2E 42 4F .BO ROL &4F42 8297 4F O ??? 8298 54 T ??? 8299 0D 1B FF ... ORA &FF1B 829C 1E FF 21 ..! ASL &21FF,X 829F FF . ??? 82A0 24 FF $. BIT &FF 82A2 27 ' ??? 82A3 FF . ??? 82A4 2A * ROL A 82A5 FF . ??? 82A6 2D FF 0C -.. AND &0CFF 82A9 87 . ??? 82AA 4A J LSR A 82AB 68 h PLA 82AC 89 . ??? 82AD 44 D ??? 82AE 63 c ??? 82AF 85 57 .W STA &57 82B1 13 . ??? 82B2 84 42 .B STY &42 82B4 72 r ??? 82B5 8A . TXA 82B6 41 D8 AX EOR (&D8,X) 82B8 89 . ??? 82B9 52 R ??? 82BA D4 T ??? 82BB 80 . ??? 82BC C0 10 @. CPY #&10 82BE B0 02 0. BCS &82C2 82C0 A0 10 . LDY #&10 82C2 60 ` RTS 82C3 80 . ??? 82C4 90 84 .. BCC &824A 82C6 9D C8 84 .H. STA &84C8,X 82C9 9F . ??? 82CA A9 00 ). LDA #&00 82CC A0 04 . LDY #&04 82CE 91 9C .. STA (&9C),Y 82D0 A0 FF . LDY #&FF 82D2 85 9C .. STA &9C 82D4 85 9E .. STA &9E 82D6 85 A8 .( STA &A8 82D8 8D 62 0D .b. STA &0D62 82DB AA * TAX 82DC A9 FD )} LDA #&FD 82DE 20 F4 FF t. JSR &FFF4 82E1 8A . TXA 82E2 F0 32 p2 BEQ &8316 82E4 A0 15 . LDY #&15 82E6 A9 FE )~ LDA #&FE 82E8 8D 00 0E ... STA &0E00 82EB 91 9C .. STA (&9C),Y 82ED A9 00 ). LDA #&00 82EF 8D 01 0E ... STA &0E01 82F2 8D 63 0D .c. STA &0D63 82F5 8D 06 0E ... STA &0E06 82F8 8D 05 0E ... STA &0E05 82FB C8 H INY 82FC 91 9C .. STA (&9C),Y 82FE A0 03 . LDY #&03 8300 91 9E .. STA (&9E),Y 8302 88 . DEY 8303 A9 EB )k LDA #&EB 8305 91 9E .. STA (&9E),Y 8307 A5 A8 %( LDA &A8 8309 20 55 8E U. JSR &8E55 830C B0 08 0. BCS &8316 830E A9 3F )? LDA #&3F 8310 91 9E .. STA (&9E),Y 8312 E6 A8 f( INC &A8 8314 D0 F1 Pq BNE &8307 8316 AD 18 FE -.~ LDA &FE18 8319 A0 14 . LDY #&14 831B 91 9C .. STA (&9C),Y 831D 20 33 96 3. JSR &9633 8320 A9 40 )@ LDA #&40 8322 8D 64 0D .d. STA &0D64 8325 A9 A8 )( LDA #&A8 8327 A2 00 ". LDX #&00 8329 A0 FF . LDY #&FF 832B 20 F4 FF t. JSR &FFF4 832E 86 F6 .v STX &F6 8330 84 F7 .w STY &F7 8332 A0 36 6 LDY #&36 8334 8C 24 02 .$. STY &0224 8337 A2 01 ". LDX #&01 8339 B9 8D 82 9.. LDA &828D,Y 833C 91 F6 .v STA (&F6),Y 833E C8 H INY 833F B9 8D 82 9.. LDA &828D,Y 8342 91 F6 .v STA (&F6),Y 8344 C8 H INY 8345 A5 F4 %t LDA &F4 8347 91 F6 .v STA (&F6),Y 8349 C8 H INY 834A CA J DEX 834B D0 EC Pl BNE &8339 834D A4 9F $. LDY &9F 834F C8 H INY 8350 60 ` RTS 8351 A0 1D . LDY #&1D 8353 B9 EB 0D 9k. LDA &0DEB,Y 8356 91 9C .. STA (&9C),Y 8358 88 . DEY 8359 C0 14 @. CPY #&14 835B D0 F6 Pv BNE &8353 835D A9 77 )w LDA #&77 835F 4C F4 FF Lt. JMP &FFF4 8362 A4 A8 $( LDY &A8 8364 B1 F2 1r LDA (&F2),Y 8366 C9 2E I. CMP #&2E 8368 F0 13 p. BEQ &837D 836A 29 DF )_ AND #&DF 836C F0 09 p. BEQ &8377 836E DD 08 80 ].. CMP &8008,X 8371 D0 04 P. BNE &8377 8373 C8 H INY 8374 E8 h INX 8375 D0 ED Pm BNE &8364 8377 BD 08 80 =.. LDA &8008,X 837A F0 02 p. BEQ &837E 837C 60 ` RTS 837D C8 H INY 837E B1 F2 1r LDA (&F2),Y 8380 C9 20 I CMP #&20 8382 F0 F9 py BEQ &837D 8384 49 0D I. EOR #&0D 8386 60 ` RTS 8387 A9 90 ). LDA #&90 8389 20 95 83 .. JSR &8395 838C 85 C1 .A STA &C1 838E A9 03 ). LDA #&03 8390 85 C4 .D STA &C4 8392 C6 C0 F@ DEC &C0 8394 60 ` RTS 8395 48 H PHA 8396 A0 0B . LDY #&0B 8398 B9 AD 83 9-. LDA &83AD,Y 839B 99 C0 00 .@. STA &00C0,Y 839E C0 02 @. CPY #&02 83A0 10 06 .. BPL &83A8 83A2 B9 00 0E 9.. LDA &0E00,Y 83A5 99 C2 00 .B. STA &00C2,Y 83A8 88 . DEY 83A9 10 ED .m BPL &8398 83AB 68 h PLA 83AC 60 ` RTS 83AD 80 . ??? 83AE 99 00 00 ... STA &0000,Y 83B1 00 . BRK 83B2 0F . ??? 83B3 FF . ??? 83B4 FF . ??? 83B5 FF . ??? 83B6 0F . ??? 83B7 FF . ??? 83B8 FF . ??? 83B9 48 H PHA 83BA 38 8 SEC 83BB B0 12 0. BCS &83CF 83BD B8 8 CLV 83BE 50 0E P. BVC &83CE 83C0 A9 77 )w LDA #&77 83C2 20 F4 FF t. JSR &FFF4 83C5 A0 17 . LDY #&17 83C7 B8 8 CLV 83C8 AD 02 0E -.. LDA &0E02 83CB 8D 02 0F ... STA &0F02 83CE 18 . CLC 83CF 8C 01 0F ... STY &0F01 83D2 A0 01 . LDY #&01 83D4 B9 03 0E 9.. LDA &0E03,Y 83D7 99 03 0F ... STA &0F03,Y 83DA 88 . DEY 83DB 10 F7 .w BPL &83D4 83DD 08 . PHP 83DE A9 90 ). LDA #&90 83E0 8D 00 0F ... STA &0F00 83E3 20 95 83 .. JSR &8395 83E6 8A . TXA 83E7 69 05 i. ADC #&05 83E9 85 C8 .H STA &C8 83EB 28 ( PLP 83EC B0 1A 0. BCS &8408 83EE 08 . PHP 83EF 20 F7 85 w. JSR &85F7 83F2 28 ( PLP 83F3 08 . PHP 83F4 20 87 83 .. JSR &8387 83F7 20 30 85 0. JSR &8530 83FA 28 ( PLP 83FB C8 H INY 83FC B1 C4 1D LDA (&C4),Y 83FE AA * TAX 83FF F0 06 p. BEQ &8407 8401 50 02 P. BVC &8405 8403 69 2A i* ADC #&2A 8405 D0 73 Ps BNE &847A 8407 60 ` RTS 8408 68 h PLA 8409 A2 C0 "@ LDX #&C0 840B C8 H INY 840C 20 66 92 f. JSR &9266 840F 85 B3 .3 STA &B3 8411 90 E8 .h BCC &83FB 8413 18 . CLC 8414 20 57 86 W. JSR &8657 8417 48 H PHA 8418 8D DF 0F ._. STA &0FDF 841B 8A . TXA 841C 48 H PHA 841D 98 . TYA 841E 48 H PHA 841F 08 . PHP 8420 84 BA .: STY &BA 8422 20 9B 86 .. JSR &869B 8425 8C DE 0F .^. STY &0FDE 8428 84 CF .O STY &CF 842A A0 90 . LDY #&90 842C 8C DC 0F .\. STY &0FDC 842F 20 95 83 .. JSR &8395 8432 A9 DC )\ LDA #&DC 8434 85 C4 .D STA &C4 8436 A9 E0 )` LDA #&E0 8438 85 C8 .H STA &C8 843A C8 H INY 843B A2 09 ". LDX #&09 843D 28 ( PLP 843E 90 01 .. BCC &8441 8440 CA J DEX 8441 8E DD 0F .]. STX &0FDD 8444 A5 CF %O LDA &CF 8446 A2 C0 "@ LDX #&C0 8448 20 66 92 f. JSR &9266 844B AE DD 0F .]. LDX &0FDD 844E F0 48 pH BEQ &8498 8450 A0 1F . LDY #&1F 8452 B9 DC 0F 9\. LDA &0FDC,Y 8455 99 E0 0F .`. STA &0FE0,Y 8458 88 . DEY 8459 10 F7 .w BPL &8452 845B AA * TAX 845C A9 C6 )F LDA #&C6 845E 20 F4 FF t. JSR &FFF4 8461 A9 29 )) LDA #&29 8463 C4 BA D: CPY &BA 8465 F0 06 p. BEQ &846D 8467 A9 2D )- LDA #&2D 8469 E4 BA d: CPX &BA 846B D0 06 P. BNE &8473 846D AA * TAX 846E A0 85 . LDY #&85 8470 20 F7 FF w. JSR &FFF7 8473 A9 E0 )` LDA #&E0 8475 85 C4 .D STA &C4 8477 AE DD 0F .]. LDX &0FDD 847A 8E 09 0E ... STX &0E09 847D A0 01 . LDY #&01 847F E0 A8 `( CPX #&A8 8481 B0 04 0. BCS &8487 8483 A9 A8 )( LDA #&A8 8485 91 C4 .D STA (&C4),Y 8487 A0 FF . LDY #&FF 8489 C8 H INY 848A B1 C4 1D LDA (&C4),Y 848C 99 00 01 ... STA &0100,Y 848F 49 0D I. EOR #&0D 8491 D0 F6 Pv BNE &8489 8493 99 00 01 ... STA &0100,Y 8496 F0 52 pR BEQ &84EA 8498 8D 08 0E ... STA &0E08 849B 68 h PLA 849C A8 ( TAY 849D 68 h PLA 849E AA * TAX 849F 68 h PLA 84A0 60 ` RTS 84A1 A5 FF %. LDA &FF 84A3 25 97 %. AND &97 84A5 10 F9 .y BPL &84A0 84A7 A9 7E )~ LDA #&7E 84A9 20 F4 FF t. JSR &FFF4 84AC 4C 12 85 L.. JMP &8512 84AF A0 04 . LDY #&04 84B1 B1 9C 1. LDA (&9C),Y 84B3 F0 03 p. BEQ &84B8 84B5 4C F0 92 Lp. JMP &92F0 84B8 09 09 .. ORA #&09 84BA 91 9C .. STA (&9C),Y 84BC A2 80 ". LDX #&80 84BE A0 80 . LDY #&80 84C0 B1 9C 1. LDA (&9C),Y 84C2 48 H PHA 84C3 C8 H INY 84C4 B1 9C 1. LDA (&9C),Y 84C6 A0 0F . LDY #&0F 84C8 91 9E .. STA (&9E),Y 84CA 88 . DEY 84CB 68 h PLA 84CC 91 9E .. STA (&9E),Y 84CE 20 D2 81 R. JSR &81D2 84D1 20 88 91 .. JSR &9188 84D4 A2 01 ". LDX #&01 84D6 A0 00 . LDY #&00 84D8 A9 C9 )I LDA #&C9 84DA 20 F4 FF t. JSR &FFF4 84DD 20 F0 92 p. JSR &92F0 84E0 A2 02 ". LDX #&02 84E2 A9 00 ). LDA #&00 84E4 9D 00 01 ... STA &0100,X 84E7 CA J DEX 84E8 10 FA .z BPL &84E4 84EA 4C 00 01 L.. JMP &0100 84ED A0 04 . LDY #&04 84EF B1 9C 1. LDA (&9C),Y 84F1 F0 C5 pE BEQ &84B8 84F3 A0 80 . LDY #&80 84F5 B1 9C 1. LDA (&9C),Y 84F7 A0 0E . LDY #&0E 84F9 D1 9E Q. CMP (&9E),Y 84FB D0 B8 P8 BNE &84B5 84FD A0 82 . LDY #&82 84FF B1 9C 1. LDA (&9C),Y 8501 A8 ( TAY 8502 A2 00 ". LDX #&00 8504 20 F0 92 p. JSR &92F0 8507 A9 99 ). LDA #&99 8509 4C F4 FF Lt. JMP &FFF4 850C A9 08 ). LDA #&08 850E D0 04 P. BNE &8514 8510 A1 9A !. LDA (&9A,X) 8512 29 07 ). AND #&07 8514 AA * TAX ; get error msg number 8515 BC 18 80 <.. LDY &8018,X ; load pointer to error message 8518 A2 00 ". LDX #&00 851A 8E 00 01 ... STX &0100 ; store a BRK at 0100 851D B9 80 85 9.. LDA &8580,Y ; load character from error message 8520 9D 01 01 ... STA &0101,X ; copy it to 0101+loop counter 8523 F0 C5 pE BEQ &84EA ; if zero, brance to a JMP 0100 to cause an error 8525 C8 H INY ; increment pointers 8526 E8 h INX 8527 D0 F4 Pt BNE &851D ; loop 8529 53 S ??? 852A 50 2E P. BVC &855A 852C 0D 45 2E .E. ORA &2E45 852F 0D A9 2A .)* ORA &2AA9 8532 48 H PHA 8533 AD 64 0D -d. LDA &0D64 8536 48 H PHA 8537 A6 9B &. LDX &9B 8539 D0 05 P. BNE &8540 853B 09 80 .. ORA #&80 853D 8D 64 0D .d. STA &0D64 8540 A9 00 ). LDA #&00 8542 48 H PHA 8543 48 H PHA 8544 A8 ( TAY 8545 BA : TSX 8546 B1 9A 1. LDA (&9A),Y 8548 30 0F 0. BMI &8559 854A DE 01 01 ^.. DEC &0101,X 854D D0 F7 Pw BNE &8546 854F DE 02 01 ^.. DEC &0102,X 8552 D0 F2 Pr BNE &8546 8554 DE 04 01 ^.. DEC &0104,X 8557 D0 ED Pm BNE &8546 8559 68 h PLA 855A 68 h PLA 855B 68 h PLA 855C 8D 64 0D .d. STA &0D64 855F 68 h PLA 8560 F0 AA p* BEQ &850C 8562 60 ` RTS 8563 38 8 SEC 8564 20 14 84 .. JSR &8414 8567 38 8 SEC 8568 A9 FE )~ LDA #&FE 856A 2C DF 0F ,_. BIT &0FDF 856D 70 10 p. BVS &857F 856F 18 . CLC 8570 08 . PHP 8571 A5 CF %O LDA &CF 8573 28 ( PLP 8574 30 03 0. BMI &8579 8576 20 D5 86 U. JSR &86D5 8579 20 D0 86 P. JSR &86D0 857C AD DE 0F -^. LDA &0FDE 857F 60 ` RTS 8580 A0 4C L LDY #&4C 8582 69 6E in ADC #&6E 8584 65 20 e ADC &20 8586 4A J LSR A 8587 61 6D am ADC (&6D,X) 8589 6D 65 64 med ADC &6465 858C 00 . BRK 858D A1 4E !N LDA (&4E,X) 858F 65 74 et ADC &74 8591 20 45 72 Er JSR &7245 8594 72 r ??? 8595 6F o ??? 8596 72 r ??? 8597 00 . BRK 8598 A2 4E "N LDX #&4E 859A 6F o ??? 859B 74 t ??? 859C 20 6C 69 li JSR &696C 859F 73 s ??? 85A0 74 t ??? 85A1 65 6E en ADC &6E 85A3 69 6E in ADC #&6E 85A5 67 g ??? 85A6 00 . BRK 85A7 A3 # ??? 85A8 4E 6F 20 No LSR &206F 85AB 43 C ??? 85AC 6C 6F 63 loc JMP (&636F) 85AF 6B k ??? 85B0 00 . BRK 85B1 11 45 .E ORA (&45),Y 85B3 73 s ??? 85B4 63 c ??? 85B5 61 70 ap ADC (&70,X) 85B7 65 00 e. ADC &00 85B9 CB K ??? 85BA 42 B ??? 85BB 61 64 ad ADC (&64,X) 85BD 20 4F 70 Op JSR &704F 85C0 74 t ??? 85C1 69 6F io ADC #&6F 85C3 6E 00 A5 n.% ROR &A500 85C6 4E 6F 20 No LSR &206F 85C9 72 r ??? 85CA 65 70 ep ADC &70 85CC 6C 79 00 ly. JMP (&0079) 85CF A0 0E . LDY #&0E 85D1 B1 BB 1; LDA (&BB),Y 85D3 29 3F )? AND #&3F 85D5 A2 04 ". LDX #&04 85D7 D0 04 P. BNE &85DD 85D9 29 1F ). AND #&1F 85DB A2 FF ". LDX #&FF 85DD 85 B8 .8 STA &B8 85DF A9 00 ). LDA #&00 85E1 E8 h INX 85E2 46 B8 F8 LSR &B8 85E4 90 03 .. BCC &85E9 85E6 1D EC 85 .l. ORA &85EC,X 85E9 D0 F6 Pv BNE &85E1 85EB 60 ` RTS 85EC 50 20 P BVC &860E 85EE 05 02 .. ORA &02 85F0 88 . DEY 85F1 04 . ??? 85F2 08 . PHP 85F3 80 . ??? 85F4 10 01 .. BPL &85F7 85F6 02 . ??? 85F7 A2 C0 "@ LDX #&C0 85F9 86 9A .. STX &9A 85FB A2 00 ". LDX #&00 85FD 86 9B .. STX &9B 85FF A9 FF ). LDA #&FF ; transmit routine? 8601 A0 60 ` LDY #&60 8603 48 H PHA 8604 98 . TYA 8605 48 H PHA 8606 A2 00 ". LDX #&00 8608 A1 9A !. LDA (&9A,X) 860A 81 9A .. STA (&9A,X) 860C 48 H PHA 860D 0E 62 0D .b. ASL &0D62 8610 90 FB .{ BCC &860D 8612 A5 9A %. LDA &9A 8614 85 A0 . STA &A0 8616 A5 9B %. LDA &9B 8618 85 A1 .! STA &A1 861A 20 30 96 0. JSR &9630 ; osword transmit 861D A1 9A !. LDA (&9A,X) ; 861F 30 FC 0| BMI &861D ; infinate loop? No, wait for NMI transmit to complete 8621 0A . ASL A 8622 10 1F .. BPL &8643 8624 0A . ASL A 8625 F0 18 p. BEQ &863F ; error A 8627 20 A1 84 !. JSR &84A1 862A 68 h PLA 862B AA * TAX 862C 68 h PLA 862D A8 ( TAY 862E 68 h PLA 862F F0 0E p. BEQ &863F ; error A 8631 E9 01 i. SBC #&01 8633 48 H PHA 8634 98 . TYA 8635 48 H PHA 8636 8A . TXA 8637 CA J DEX 8638 D0 FD P} BNE &8637 863A 88 . DEY 863B D0 FA Pz BNE &8637 863D F0 CB pK BEQ &860A 863F AA * TAX 8640 4C 10 85 L.. JMP &8510 ; cause error X 8643 68 h PLA 8644 68 h PLA 8645 68 h PLA 8646 4C 57 86 LW. JMP &8657 8649 86 F2 .r STX &F2 864B 84 F3 .s STY &F3 864D 85 BD .= STA &BD 864F 86 BB .; STX &BB 8651 84 BC .< STY &BC 8653 86 BE .> STX &BE 8655 84 BF .? STY &BF 8657 08 . PHP 8658 46 97 F. LSR &97 865A 28 ( PLP 865B 60 ` RTS 865C 68 h PLA 865D 85 B0 .0 STA &B0 865F 68 h PLA 8660 85 B1 .1 STA &B1 8662 A0 00 . LDY #&00 8664 E6 B0 f0 INC &B0 8666 D0 02 P. BNE &866A 8668 E6 B1 f1 INC &B1 866A B1 B0 10 LDA (&B0),Y 866C 30 06 0. BMI &8674 866E 20 E3 FF c. JSR &FFE3 8671 4C 64 86 Ld. JMP &8664 8674 6C B0 00 l0. JMP (&00B0) 8677 A9 00 ). LDA #&00 8679 85 B2 .2 STA &B2 867B B1 BB 1; LDA (&BB),Y 867D C9 2E I. CMP #&2E 867F F0 16 p. BEQ &8697 8681 90 13 .. BCC &8696 8683 29 0F ). AND #&0F 8685 85 B3 .3 STA &B3 8687 06 B2 .2 ASL &B2 8689 A5 B2 %2 LDA &B2 868B 0A . ASL A 868C 0A . ASL A 868D 65 B2 e2 ADC &B2 868F 65 B3 e3 ADC &B3 8691 85 B2 .2 STA &B2 8693 C8 H INY 8694 D0 E5 Pe BNE &867B 8696 18 . CLC 8697 A5 B2 %2 LDA &B2 8699 60 ` RTS 869A A8 ( TAY 869B 18 . CLC 869C 48 H PHA 869D 8A . TXA 869E 48 H PHA 869F 98 . TYA 86A0 90 02 .. BCC &86A4 86A2 F0 0F p. BEQ &86B3 86A4 38 8 SEC 86A5 E9 1F i. SBC #&1F 86A7 AA * TAX 86A8 A9 01 ). LDA #&01 86AA 0A . ASL A 86AB CA J DEX 86AC D0 FC P| BNE &86AA 86AE 6A j ROR A 86AF A8 ( TAY 86B0 D0 01 P. BNE &86B3 86B2 88 . DEY 86B3 68 h PLA 86B4 AA * TAX 86B5 68 h PLA 86B6 60 ` RTS 86B7 A2 1F ". LDX #&1F 86B9 E8 h INX 86BA 4A J LSR A 86BB D0 FC P| BNE &86B9 86BD 8A . TXA 86BE 60 ` RTS 86BF A2 04 ". LDX #&04 86C1 B5 AF 5/ LDA &AF,X 86C3 55 B3 U3 EOR &B3,X 86C5 D0 03 P. BNE &86CA 86C7 CA J DEX 86C8 D0 F7 Pw BNE &86C1 86CA 60 ` RTS 86CB A2 20 " LDX #&20 86CD A0 27 ' LDY #&27 86CF 60 ` RTS 86D0 0D 07 0E ... ORA &0E07 86D3 D0 05 P. BNE &86DA 86D5 49 FF I. EOR #&FF 86D7 2D 07 0E -.. AND &0E07 86DA 8D 07 0E ... STA &0E07 86DD 60 ` RTS 86DE A0 01 . LDY #&01 86E0 B1 BB 1; LDA (&BB),Y 86E2 99 F2 00 .r. STA &00F2,Y 86E5 88 . DEY 86E6 10 F8 .x BPL &86E0 86E8 A0 00 . LDY #&00 86EA A2 FF ". LDX #&FF 86EC 18 . CLC 86ED 20 C2 FF B. JSR &FFC2 86F0 F0 0B p. BEQ &86FD 86F2 20 C5 FF E. JSR &FFC5 86F5 B0 06 0. BCS &86FD 86F7 E8 h INX 86F8 9D 30 0E .0. STA &0E30,X 86FB 90 F5 .u BCC &86F2 86FD E8 h INX 86FE A9 0D ). LDA #&0D 8700 9D 30 0E .0. STA &0E30,X 8703 A9 30 )0 LDA #&30 8705 85 BE .> STA &BE 8707 A9 0E ). LDA #&0E 8709 85 BF .? STA &BF 870B 60 ` RTS 870C 20 4D 86 M. JSR &864D 870F 20 DE 86 ^. JSR &86DE 8712 A5 BD %= LDA &BD 8714 10 7A .z BPL &8790 8716 C9 FF I. CMP #&FF 8718 F0 03 p. BEQ &871D 871A 4C B3 89 L3. JMP &89B3 871D 20 82 8D .. JSR &8D82 8720 A0 02 . LDY #&02 8722 A9 92 ). LDA #&92 8724 85 97 .. STA &97 8726 8D 02 0F ... STA &0F02 8729 20 BD 83 =. JSR &83BD 872C A0 06 . LDY #&06 872E B1 BB 1; LDA (&BB),Y 8730 D0 08 P. BNE &873A 8732 20 2F 88 /. JSR &882F 8735 20 41 88 A. JSR &8841 8738 90 06 .. BCC &8740 873A 20 41 88 A. JSR &8841 873D 20 2F 88 /. JSR &882F 8740 A0 04 . LDY #&04 8742 B5 B0 50 LDA &B0,X 8744 95 C8 .H STA &C8,X 8746 7D 0D 0F }.. ADC &0F0D,X 8749 95 B4 .4 STA &B4,X 874B E8 h INX 874C 88 . DEY 874D D0 F3 Ps BNE &8742 874F 38 8 SEC 8750 ED 10 0F m.. SBC &0F10 8753 85 B7 .7 STA &B7 8755 20 65 87 e. JSR &8765 8758 A2 02 ". LDX #&02 875A BD 10 0F =.. LDA &0F10,X 875D 9D 05 0F ... STA &0F05,X 8760 CA J DEX 8761 10 F7 .w BPL &875A 8763 30 73 0s BMI &87D8 8765 20 BF 86 ?. JSR &86BF 8768 F0 25 p% BEQ &878F 876A A9 92 ). LDA #&92 876C 85 C1 .A STA &C1 876E A2 03 ". LDX #&03 8770 B5 C8 5H LDA &C8,X 8772 95 C4 .D STA &C4,X 8774 B5 B4 54 LDA &B4,X 8776 95 C8 .H STA &C8,X 8778 CA J DEX 8779 10 F5 .u BPL &8770 877B A9 7F ). LDA #&7F 877D 85 C0 .@ STA &C0 877F 20 30 85 0. JSR &8530 8782 A0 03 . LDY #&03 8784 B9 C8 00 9H. LDA &00C8,Y 8787 59 B4 00 Y4. EOR &00B4,Y 878A D0 E2 Pb BNE &876E 878C 88 . DEY 878D 10 F5 .u BPL &8784 878F 60 ` RTS 8790 F0 03 p. BEQ &8795 8792 4C D1 88 LQ. JMP &88D1 8795 A2 04 ". LDX #&04 8797 A0 0E . LDY #&0E 8799 B1 BB 1; LDA (&BB),Y 879B 99 A6 00 .&. STA &00A6,Y 879E 20 4E 88 N. JSR &884E 87A1 F1 BB q; SBC (&BB),Y 87A3 99 03 0F ... STA &0F03,Y 87A6 48 H PHA 87A7 B1 BB 1; LDA (&BB),Y 87A9 99 A6 00 .&. STA &00A6,Y 87AC 68 h PLA 87AD 91 BB .; STA (&BB),Y 87AF 20 3B 88 ;. JSR &883B 87B2 CA J DEX 87B3 D0 E4 Pd BNE &8799 87B5 A0 09 . LDY #&09 87B7 B1 BB 1; LDA (&BB),Y 87B9 99 03 0F ... STA &0F03,Y 87BC 88 . DEY 87BD D0 F8 Px BNE &87B7 87BF A9 91 ). LDA #&91 87C1 85 97 .. STA &97 87C3 8D 02 0F ... STA &0F02 87C6 85 B8 .8 STA &B8 87C8 A2 0B ". LDX #&0B 87CA 20 84 8D .. JSR &8D84 87CD A0 01 . LDY #&01 87CF 20 BD 83 =. JSR &83BD 87D2 AD 05 0F -.. LDA &0F05 87D5 20 53 88 S. JSR &8853 87D8 AD 03 0F -.. LDA &0F03 87DB 48 H PHA 87DC 20 F3 83 s. JSR &83F3 87DF 68 h PLA 87E0 AC 06 0E ,.. LDY &0E06 87E3 F0 32 p2 BEQ &8817 87E5 A0 00 . LDY #&00 87E7 AA * TAX 87E8 F0 05 p. BEQ &87EF 87EA 20 98 8D .. JSR &8D98 87ED 30 14 0. BMI &8803 87EF B1 BE 1> LDA (&BE),Y 87F1 C9 21 I! CMP #&21 87F3 90 06 .. BCC &87FB 87F5 20 E3 FF c. JSR &FFE3 87F8 C8 H INY 87F9 D0 F4 Pt BNE &87EF 87FB 20 7B 8D {. JSR &8D7B 87FE C8 H INY 87FF C0 0C @. CPY #&0C 8801 90 F8 .x BCC &87FB 8803 A0 05 . LDY #&05 8805 20 70 8D p. JSR &8D70 8808 A0 09 . LDY #&09 880A 20 70 8D p. JSR &8D70 880D A0 0C . LDY #&0C 880F A2 03 ". LDX #&03 8811 20 72 8D r. JSR &8D72 8814 20 E7 FF g. JSR &FFE7 8817 8E 08 0F ... STX &0F08 881A A0 0E . LDY #&0E 881C AD 05 0F -.. LDA &0F05 881F 20 D9 85 Y. JSR &85D9 8822 91 BB .; STA (&BB),Y 8824 C8 H INY 8825 B9 F7 0E 9w. LDA &0EF7,Y 8828 C0 12 @. CPY #&12 882A D0 F6 Pv BNE &8822 882C 4C B3 89 L3. JMP &89B3 882F A0 05 . LDY #&05 8831 B1 BB 1; LDA (&BB),Y 8833 99 AE 00 ... STA &00AE,Y 8836 88 . DEY 8837 C0 02 @. CPY #&02 8839 B0 F6 0v BCS &8831 883B C8 H INY 883C C8 H INY 883D C8 H INY 883E C8 H INY 883F C8 H INY 8840 60 ` RTS 8841 A0 0D . LDY #&0D 8843 8A . TXA 8844 91 BB .; STA (&BB),Y 8846 B9 02 0F 9.. LDA &0F02,Y 8849 88 . DEY 884A C0 02 @. CPY #&02 884C B0 F6 0v BCS &8844 884E 88 . DEY 884F 88 . DEY 8850 88 . DEY 8851 88 . DEY 8852 60 ` RTS 8853 48 H PHA 8854 20 BF 86 ?. JSR &86BF 8857 F0 74 pt BEQ &88CD 8859 A9 00 ). LDA #&00 885B 48 H PHA 885C 48 H PHA 885D AA * TAX 885E AD 07 0F -.. LDA &0F07 8861 48 H PHA 8862 AD 06 0F -.. LDA &0F06 8865 48 H PHA 8866 A0 04 . LDY #&04 8868 18 . CLC 8869 B5 B0 50 LDA &B0,X 886B 95 C4 .D STA &C4,X 886D 68 h PLA 886E 75 B0 u0 ADC &B0,X 8870 95 C8 .H STA &C8,X 8872 95 B0 .0 STA &B0,X 8874 E8 h INX 8875 88 . DEY 8876 D0 F1 Pq BNE &8869 8878 38 8 SEC 8879 B9 B0 00 90. LDA &00B0,Y 887C F9 B4 00 y4. SBC &00B4,Y 887F C8 H INY 8880 CA J DEX 8881 D0 F6 Pv BNE &8879 8883 90 09 .. BCC &888E 8885 A2 03 ". LDX #&03 8887 B5 B4 54 LDA &B4,X 8889 95 C8 .H STA &C8,X 888B CA J DEX 888C 10 F9 .y BPL &8887 888E 68 h PLA 888F 48 H PHA 8890 08 . PHP 8891 85 C1 .A STA &C1 8893 A9 80 ). LDA #&80 8895 85 C0 .@ STA &C0 8897 20 F7 85 w. JSR &85F7 889A A5 B8 %8 LDA &B8 889C 20 89 83 .. JSR &8389 889F 28 ( PLP 88A0 B0 2B 0+ BCS &88CD 88A2 A9 91 ). LDA #&91 88A4 85 C1 .A STA &C1 88A6 E6 C4 fD INC &C4 88A8 20 30 85 0. JSR &8530 88AB D0 AC P, BNE &8859 88AD 48 H PHA 88AE 8A . TXA 88AF 20 9A 86 .. JSR &869A 88B2 98 . TYA 88B3 2D 07 0E -.. AND &0E07 88B6 AA * TAX 88B7 F0 14 p. BEQ &88CD 88B9 48 H PHA 88BA 8C 05 0F ... STY &0F05 88BD A0 11 . LDY #&11 88BF A2 01 ". LDX #&01 88C1 20 C7 83 G. JSR &83C7 88C4 68 h PLA 88C5 AE 05 0F ... LDX &0F05 88C8 D0 03 P. BNE &88CD 88CA 20 D5 86 U. JSR &86D5 88CD 68 h PLA 88CE A4 BC $< LDY &BC 88D0 60 ` RTS 88D1 8D 05 0F ... STA &0F05 88D4 C9 06 I. CMP #&06 88D6 F0 3F p? BEQ &8917 88D8 B0 48 0H BCS &8922 88DA C9 05 I. CMP #&05 88DC F0 52 pR BEQ &8930 88DE C9 04 I. CMP #&04 88E0 F0 44 pD BEQ &8926 88E2 C9 01 I. CMP #&01 88E4 F0 15 p. BEQ &88FB 88E6 0A . ASL A 88E7 0A . ASL A 88E8 A8 ( TAY 88E9 20 4F 88 O. JSR &884F 88EC A2 03 ". LDX #&03 88EE B1 BB 1; LDA (&BB),Y 88F0 9D 06 0F ... STA &0F06,X 88F3 88 . DEY 88F4 CA J DEX 88F5 10 F7 .w BPL &88EE 88F7 A2 05 ". LDX #&05 88F9 D0 15 P. BNE &8910 88FB 20 CF 85 O. JSR &85CF 88FE 8D 0E 0F ... STA &0F0E 8901 A0 09 . LDY #&09 8903 A2 08 ". LDX #&08 8905 B1 BB 1; LDA (&BB),Y 8907 9D 05 0F ... STA &0F05,X 890A 88 . DEY 890B CA J DEX 890C D0 F7 Pw BNE &8905 890E A2 0A ". LDX #&0A 8910 20 84 8D .. JSR &8D84 8913 A0 13 . LDY #&13 8915 D0 05 P. BNE &891C 8917 20 82 8D .. JSR &8D82 891A A0 14 . LDY #&14 891C 2C B3 83 ,3. BIT &83B3 891F 20 C8 83 H. JSR &83C8 8922 B0 42 0B BCS &8966 8924 90 71 .q BCC &8997 8926 20 CF 85 O. JSR &85CF 8929 8D 06 0F ... STA &0F06 892C A2 02 ". LDX #&02 892E D0 E0 P` BNE &8910 8930 A2 01 ". LDX #&01 8932 20 84 8D .. JSR &8D84 8935 A0 12 . LDY #&12 8937 20 C7 83 G. JSR &83C7 893A AD 11 0F -.. LDA &0F11 893D 8E 11 0F ... STX &0F11 8940 8E 14 0F ... STX &0F14 8943 20 D9 85 Y. JSR &85D9 8946 A0 0E . LDY #&0E 8948 91 BB .; STA (&BB),Y 894A 88 . DEY 894B A2 0C ". LDX #&0C 894D BD 05 0F =.. LDA &0F05,X 8950 91 BB .; STA (&BB),Y 8952 88 . DEY 8953 CA J DEX 8954 D0 F7 Pw BNE &894D 8956 E8 h INX 8957 E8 h INX 8958 A0 11 . LDY #&11 895A BD 12 0F =.. LDA &0F12,X 895D 91 BB .; STA (&BB),Y 895F 88 . DEY 8960 CA J DEX 8961 10 F7 .w BPL &895A 8963 AD 05 0F -.. LDA &0F05 8966 10 4D .M BPL &89B5 8968 20 4D 86 M. JSR &864D 896B C9 03 I. CMP #&03 896D B0 44 0D BCS &89B3 896F C0 00 @. CPY #&00 8971 F0 47 pG BEQ &89BA 8973 20 9B 86 .. JSR &869B 8976 8C 05 0F ... STY &0F05 8979 4A J LSR A 897A 8D 06 0F ... STA &0F06 897D B0 1A 0. BCS &8999 897F A0 0C . LDY #&0C 8981 A2 02 ". LDX #&02 8983 20 C7 83 G. JSR &83C7 8986 85 BD .= STA &BD 8988 A6 BB &; LDX &BB 898A A0 02 . LDY #&02 898C 95 03 .. STA &03,X 898E B9 05 0F 9.. LDA &0F05,Y 8991 95 02 .. STA &02,X 8993 CA J DEX 8994 88 . DEY 8995 10 F7 .w BPL &898E 8997 90 1A .. BCC &89B3 8999 98 . TYA 899A 48 H PHA 899B A0 03 . LDY #&03 899D B5 03 5. LDA &03,X 899F 99 07 0F ... STA &0F07,Y 89A2 CA J DEX 89A3 88 . DEY 89A4 10 F7 .w BPL &899D 89A6 A0 0D . LDY #&0D 89A8 A2 05 ". LDX #&05 89AA 20 C7 83 G. JSR &83C7 89AD 86 BD .= STX &BD 89AF 68 h PLA 89B0 20 D0 86 P. JSR &86D0 89B3 A5 BD %= LDA &BD 89B5 A6 BB &; LDX &BB 89B7 A4 BC $< LDY &BC 89B9 60 ` RTS 89BA C9 02 I. CMP #&02 89BC F0 07 p. BEQ &89C5 89BE B0 14 0. BCS &89D4 89C0 A8 ( TAY 89C1 D0 05 P. BNE &89C8 89C3 A9 0A ). LDA #&0A 89C5 4A J LSR A 89C6 D0 ED Pm BNE &89B5 89C8 B9 0A 0E 9.. LDA &0E0A,Y 89CB 91 BB .; STA (&BB),Y 89CD 88 . DEY 89CE 10 F8 .x BPL &89C8 89D0 94 02 .. STY &02,X 89D2 94 03 .. STY &03,X 89D4 A9 00 ). LDA #&00 89D6 10 DD .] BPL &89B5 89D8 20 49 86 I. JSR &8649 89DB 38 8 SEC 89DC 20 9C 86 .. JSR &869C 89DF AA * TAX 89E0 F0 2E p. BEQ &8A10 89E2 29 3F )? AND #&3F 89E4 D0 EE Pn BNE &89D4 89E6 8A . TXA 89E7 49 80 I. EOR #&80 89E9 0A . ASL A 89EA 8D 05 0F ... STA &0F05 89ED 2A * ROL A 89EE 8D 06 0F ... STA &0F06 89F1 20 E8 86 h. JSR &86E8 89F4 A2 02 ". LDX #&02 89F6 20 84 8D .. JSR &8D84 89F9 A0 06 . LDY #&06 89FB 2C B3 83 ,3. BIT &83B3 89FE 20 C8 83 H. JSR &83C8 8A01 B0 B2 02 BCS &89B5 8A03 AD 05 0F -.. LDA &0F05 8A06 AA * TAX 8A07 20 D0 86 P. JSR &86D0 8A0A 8A . TXA 8A0B 20 B7 86 7. JSR &86B7 8A0E D0 A5 P% BNE &89B5 8A10 98 . TYA 8A11 D0 07 P. BNE &8A1A 8A13 A9 77 )w LDA #&77 8A15 20 F4 FF t. JSR &FFF4 8A18 A0 00 . LDY #&00 8A1A 8C 05 0F ... STY &0F05 8A1D A2 01 ". LDX #&01 8A1F A0 07 . LDY #&07 8A21 20 C7 83 G. JSR &83C7 8A24 AD 05 0F -.. LDA &0F05 8A27 20 D0 86 P. JSR &86D0 8A2A 90 87 .. BCC &89B3 8A2C F0 0B p. BEQ &8A39 8A2E E0 04 `. CPX #&04 8A30 D0 04 P. BNE &8A36 8A32 C0 04 @. CPY #&04 8A34 90 0D .. BCC &8A43 8A36 CA J DEX 8A37 D0 05 P. BNE &8A3E 8A39 8C 06 0E ... STY &0E06 8A3C 90 12 .. BCC &8A50 8A3E A9 07 ). LDA #&07 8A40 4C 12 85 L.. JMP &8512 8A43 8C 05 0F ... STY &0F05 8A46 A0 16 . LDY #&16 8A48 20 C7 83 G. JSR &83C7 8A4B A4 BC $< LDY &BC 8A4D 8C 05 0E ... STY &0E05 8A50 90 D8 .X BCC &8A2A 8A52 A0 09 . LDY #&09 8A54 20 59 8A Y. JSR &8A59 8A57 A0 01 . LDY #&01 8A59 18 . CLC 8A5A A2 FC "| LDX #&FC 8A5C B1 BB 1; LDA (&BB),Y 8A5E 24 B2 $2 BIT &B2 8A60 30 06 0. BMI &8A68 8A62 7D 0A 0E }.. ADC &0E0A,X 8A65 4C 6B 8A Lk. JMP &8A6B 8A68 FD 0A 0E }.. SBC &0E0A,X 8A6B 91 BB .; STA (&BB),Y 8A6D C8 H INY 8A6E E8 h INX 8A6F D0 EB Pk BNE &8A5C 8A71 60 ` RTS 8A72 20 4D 86 M. JSR &864D 8A75 AA * TAX 8A76 F0 05 p. BEQ &8A7D 8A78 CA J DEX 8A79 E0 08 `. CPX #&08 8A7B 90 03 .. BCC &8A80 8A7D 4C B3 89 L3. JMP &89B3 8A80 8A . TXA 8A81 A0 00 . LDY #&00 8A83 48 H PHA 8A84 C9 04 I. CMP #&04 8A86 90 03 .. BCC &8A8B 8A88 4C 31 8B L1. JMP &8B31 8A8B B1 BB 1; LDA (&BB),Y 8A8D 20 9A 86 .. JSR &869A 8A90 8C 05 0F ... STY &0F05 8A93 A0 0B . LDY #&0B 8A95 A2 06 ". LDX #&06 8A97 B1 BB 1; LDA (&BB),Y 8A99 9D 06 0F ... STA &0F06,X 8A9C 88 . DEY 8A9D C0 08 @. CPY #&08 8A9F D0 01 P. BNE &8AA2 8AA1 88 . DEY 8AA2 CA J DEX 8AA3 D0 F2 Pr BNE &8A97 8AA5 68 h PLA 8AA6 4A J LSR A 8AA7 48 H PHA 8AA8 90 01 .. BCC &8AAB 8AAA E8 h INX 8AAB 8E 06 0F ... STX &0F06 8AAE A0 0B . LDY #&0B 8AB0 A2 91 ". LDX #&91 8AB2 68 h PLA 8AB3 48 H PHA 8AB4 F0 03 p. BEQ &8AB9 8AB6 A2 92 ". LDX #&92 8AB8 88 . DEY 8AB9 8E 02 0F ... STX &0F02 8ABC 86 B8 .8 STX &B8 8ABE A2 08 ". LDX #&08 8AC0 AD 05 0F -.. LDA &0F05 8AC3 20 B9 83 9. JSR &83B9 8AC6 A5 B3 %3 LDA &B3 8AC8 8D 08 0E ... STA &0E08 8ACB A2 04 ". LDX #&04 8ACD B1 BB 1; LDA (&BB),Y 8ACF 99 AF 00 ./. STA &00AF,Y 8AD2 99 C7 00 .G. STA &00C7,Y 8AD5 20 3C 88 <. JSR &883C 8AD8 71 BB q; ADC (&BB),Y 8ADA 99 AF 00 ./. STA &00AF,Y 8ADD 20 4F 88 O. JSR &884F 8AE0 CA J DEX 8AE1 D0 EA Pj BNE &8ACD 8AE3 E8 h INX 8AE4 BD 03 0F =.. LDA &0F03,X 8AE7 9D 06 0F ... STA &0F06,X 8AEA CA J DEX 8AEB 10 F7 .w BPL &8AE4 8AED 68 h PLA 8AEE D0 08 P. BNE &8AF8 8AF0 AD 02 0F -.. LDA &0F02 8AF3 20 53 88 S. JSR &8853 8AF6 B0 03 0. BCS &8AFB 8AF8 20 65 87 e. JSR &8765 8AFB 20 F3 83 s. JSR &83F3 8AFE A1 BB !; LDA (&BB,X) 8B00 2C 05 0F ,.. BIT &0F05 8B03 30 03 0. BMI &8B08 8B05 20 D5 86 U. JSR &86D5 8B08 20 D0 86 P. JSR &86D0 8B0B 86 B2 .2 STX &B2 8B0D 20 52 8A R. JSR &8A52 8B10 C6 B2 F2 DEC &B2 8B12 38 8 SEC 8B13 20 5A 8A Z. JSR &8A5A 8B16 0E 05 0F ... ASL &0F05 8B19 4C D4 89 LT. JMP &89D4 8B1C A0 15 . LDY #&15 8B1E 20 C7 83 G. JSR &83C7 8B21 AD 05 0E -.. LDA &0E05 8B24 8D 16 0F ... STA &0F16 8B27 86 B0 .0 STX &B0 8B29 86 B1 .1 STX &B1 8B2B A9 12 ). LDA #&12 8B2D 85 B2 .2 STA &B2 8B2F D0 4E PN BNE &8B7F 8B31 A0 04 . LDY #&04 8B33 AD 67 0D -g. LDA &0D67 8B36 F0 07 p. BEQ &8B3F 8B38 D1 BB Q; CMP (&BB),Y 8B3A D0 03 P. BNE &8B3F 8B3C 88 . DEY 8B3D F1 BB q; SBC (&BB),Y 8B3F 85 A9 .) STA &A9 8B41 B1 BB 1; LDA (&BB),Y 8B43 99 BD 00 .=. STA &00BD,Y 8B46 88 . DEY 8B47 D0 F8 Px BNE &8B41 8B49 68 h PLA 8B4A 29 03 ). AND #&03 8B4C F0 CE pN BEQ &8B1C 8B4E 4A J LSR A 8B4F F0 02 p. BEQ &8B53 8B51 B0 6B 0k BCS &8BBE 8B53 A8 ( TAY 8B54 B9 03 0E 9.. LDA &0E03,Y 8B57 8D 03 0F ... STA &0F03 8B5A AD 04 0E -.. LDA &0E04 8B5D 8D 04 0F ... STA &0F04 8B60 AD 02 0E -.. LDA &0E02 8B63 8D 02 0F ... STA &0F02 8B66 A2 12 ". LDX #&12 8B68 8E 01 0F ... STX &0F01 8B6B A9 0D ). LDA #&0D 8B6D 8D 06 0F ... STA &0F06 8B70 85 B2 .2 STA &B2 8B72 4A J LSR A 8B73 8D 05 0F ... STA &0F05 8B76 18 . CLC 8B77 20 DD 83 ]. JSR &83DD 8B7A 86 B1 .1 STX &B1 8B7C E8 h INX 8B7D 86 B0 .0 STX &B0 8B7F A5 A9 %) LDA &A9 8B81 D0 11 P. BNE &8B94 8B83 A6 B0 &0 LDX &B0 8B85 A4 B1 $1 LDY &B1 8B87 BD 05 0F =.. LDA &0F05,X 8B8A 91 BE .> STA (&BE),Y 8B8C E8 h INX 8B8D C8 H INY 8B8E C6 B2 F2 DEC &B2 8B90 D0 F5 Pu BNE &8B87 8B92 F0 27 p' BEQ &8BBB 8B94 20 13 8C .. JSR &8C13 8B97 A9 01 ). LDA #&01 8B99 A6 BB &; LDX &BB 8B9B A4 BC $< LDY &BC 8B9D E8 h INX 8B9E D0 01 P. BNE &8BA1 8BA0 C8 H INY 8BA1 20 06 04 .. JSR &0406 8BA4 A6 B0 &0 LDX &B0 8BA6 BD 05 0F =.. LDA &0F05,X 8BA9 8D E5 FE .e~ STA &FEE5 ; tube 8BAC E8 h INX 8BAD A0 06 . LDY #&06 8BAF 88 . DEY 8BB0 D0 FD P} BNE &8BAF 8BB2 C6 B2 F2 DEC &B2 8BB4 D0 F0 Pp BNE &8BA6 8BB6 A9 83 ). LDA #&83 8BB8 20 06 04 .. JSR &0406 8BBB 4C D4 89 LT. JMP &89D4 8BBE A0 09 . LDY #&09 8BC0 B1 BB 1; LDA (&BB),Y 8BC2 8D 06 0F ... STA &0F06 8BC5 A0 05 . LDY #&05 8BC7 B1 BB 1; LDA (&BB),Y 8BC9 8D 07 0F ... STA &0F07 8BCC A2 0D ". LDX #&0D 8BCE 8E 08 0F ... STX &0F08 8BD1 A0 02 . LDY #&02 8BD3 84 B0 .0 STY &B0 8BD5 8C 05 0F ... STY &0F05 8BD8 C8 H INY 8BD9 20 C7 83 G. JSR &83C7 8BDC 86 B1 .1 STX &B1 8BDE AD 06 0F -.. LDA &0F06 8BE1 81 BB .; STA (&BB,X) 8BE3 AD 05 0F -.. LDA &0F05 8BE6 A0 09 . LDY #&09 8BE8 71 BB q; ADC (&BB),Y 8BEA 91 BB .; STA (&BB),Y 8BEC A5 C8 %H LDA &C8 8BEE E9 07 i. SBC #&07 8BF0 8D 06 0F ... STA &0F06 8BF3 85 B2 .2 STA &B2 8BF5 F0 03 p. BEQ &8BFA 8BF7 20 7F 8B .. JSR &8B7F 8BFA A2 02 ". LDX #&02 8BFC 9D 07 0F ... STA &0F07,X 8BFF CA J DEX 8C00 10 FA .z BPL &8BFC 8C02 20 57 8A W. JSR &8A57 8C05 38 8 SEC 8C06 C6 B2 F2 DEC &B2 8C08 AD 05 0F -.. LDA &0F05 8C0B 8D 06 0F ... STA &0F06 8C0E 20 5A 8A Z. JSR &8A5A 8C11 F0 A8 p( BEQ &8BBB 8C13 A9 C3 )C LDA #&C3 8C15 20 06 04 .. JSR &0406 8C18 90 F9 .y BCC &8C13 8C1A 60 ` RTS 8C1B 20 49 86 I. JSR &8649 8C1E A2 FF ". LDX #&FF 8C20 86 B9 .9 STX &B9 8C22 86 97 .. STX &97 8C24 A0 FF . LDY #&FF 8C26 C8 H INY 8C27 E8 h INX 8C28 BD 4B 8C =K. LDA &8C4B,X 8C2B 30 18 0. BMI &8C45 8C2D 51 BE Q> EOR (&BE),Y 8C2F 29 DF )_ AND #&DF 8C31 F0 F3 ps BEQ &8C26 8C33 CA J DEX 8C34 E8 h INX 8C35 BD 4B 8C =K. LDA &8C4B,X 8C38 10 FA .z BPL &8C34 8C3A B1 BE 1> LDA (&BE),Y 8C3C E8 h INX 8C3D C9 2E I. CMP #&2E 8C3F D0 E3 Pc BNE &8C24 8C41 C8 H INY 8C42 CA J DEX 8C43 B0 E3 0c BCS &8C28 8C45 48 H PHA 8C46 BD 4C 8C =L. LDA &8C4C,X 8C49 48 H PHA 8C4A 60 ` RTS 8C4B 49 2E I. EOR #&2E 8C4D 80 . ??? 8C4E C0 49 @I CPY #&49 8C50 20 41 4D AM JSR &4D41 8C53 80 . ??? 8C54 81 45 .E STA (&45,X) 8C56 58 X CLI 8C57 8C 60 42 .`B STY &4260 8C5A 59 45 0D YE. EOR &0D45,Y 8C5D 83 . ??? 8C5E BF ? ??? 8C5F 80 . ??? 8C60 C0 A2 @" CPY #&A2 8C62 01 A9 .) ORA (&A9,X) 8C64 03 . ??? 8C65 D0 0B P. BNE &8C72 8C67 A2 03 ". LDX #&03 8C69 86 B9 .9 STX &B9 8C6B A0 FF . LDY #&FF 8C6D 84 97 .. STY &97 8C6F C8 H INY 8C70 A9 0B ). LDA #&0B 8C72 85 B5 .5 STA &B5 8C74 86 B7 .7 STX &B7 8C76 A9 06 ). LDA #&06 8C78 8D 05 0F ... STA &0F05 8C7B 20 EA 86 j. JSR &86EA 8C7E A2 01 ". LDX #&01 8C80 20 84 8D .. JSR &8D84 8C83 A0 12 . LDY #&12 8C85 20 C7 83 G. JSR &83C7 8C88 A2 03 ". LDX #&03 8C8A 20 47 8D G. JSR &8D47 8C8D 20 5C 86 \. JSR &865C 8C90 28 ( PLP 8C91 AD 13 0F -.. LDA &0F13 8C94 20 BD 8D =. JSR &8DBD 8C97 20 5C 86 \. JSR &865C 8C9A 29 20 ) AND #&20 8C9C 20 20 20 JSR &2020 8C9F 20 AC 12 ,. JSR &12AC 8CA2 0F . ??? 8CA3 D0 0B P. BNE &8CB0 8CA5 20 5C 86 \. JSR &865C 8CA8 4F O ??? 8CA9 77 w ??? 8CAA 6E 65 72 ner ROR &7265 8CAD 0D D0 0A .P. ORA &0AD0 8CB0 20 5C 86 \. JSR &865C 8CB3 50 75 Pu BVC &8D2A 8CB5 62 b ??? 8CB6 6C 69 63 lic JMP (&6369) 8CB9 0D A0 15 . . ORA &15A0 8CBC 20 C7 83 G. JSR &83C7 8CBF E8 h INX 8CC0 A0 10 . LDY #&10 8CC2 20 49 8D I. JSR &8D49 8CC5 20 5C 86 \. JSR &865C 8CC8 20 20 20 JSR &2020 8CCB 20 4F 70 Op JSR &704F 8CCE 74 t ??? 8CCF 69 6F io ADC #&6F 8CD1 6E 20 AD n - ROR &AD20 8CD4 05 0E .. ORA &0E 8CD6 AA * TAX 8CD7 20 F0 BF p? JSR &BFF0 8CDA 20 5C 86 \. JSR &865C 8CDD 20 28 BC (< JSR &BC28 8CE0 54 T ??? 8CE1 8D B9 54 .9T STA &54B9 8CE4 8D 30 06 .0. STA &0630 8CE7 20 E3 FF c. JSR &FFE3 ; display a character! 8CEA C8 H INY 8CEB D0 F5 Pu BNE &8CE2 8CED 20 5C 86 \. JSR &865C 8CF0 29 0D ). AND #&0D 8CF2 44 D ??? 8CF3 69 72 ir ADC #&72 8CF5 2E 20 A2 . " ROL &A220 8CF8 11 20 . ORA (&20),Y 8CFA 47 G ??? 8CFB 8D 20 5C . \ STA &5C20 8CFE 86 20 . STX &20 8D00 20 20 20 JSR &2020 8D03 20 4C 69 Li JSR &694C 8D06 62 b ??? 8D07 2E 20 A2 . " ROL &A220 8D0A 1B . ??? 8D0B 20 47 8D G. JSR &8D47 8D0E 20 E7 FF g. JSR &FFE7 8D11 8C 06 0F ... STY &0F06 8D14 84 B4 .4 STY &B4 8D16 A6 B5 &5 LDX &B5 8D18 8E 07 0F ... STX &0F07 8D1B A6 B7 &7 LDX &B7 8D1D 8E 05 0F ... STX &0F05 8D20 A2 03 ". LDX #&03 8D22 20 84 8D .. JSR &8D84 8D25 A0 03 . LDY #&03 8D27 20 C7 83 G. JSR &83C7 8D2A E8 h INX 8D2B AD 05 0F -.. LDA &0F05 8D2E D0 03 P. BNE &8D33 8D30 4C E7 FF Lg. JMP &FFE7 8D33 48 H PHA 8D34 C8 H INY 8D35 B9 05 0F 9.. LDA &0F05,Y 8D38 10 FA .z BPL &8D34 8D3A 99 04 0F ... STA &0F04,Y 8D3D 20 9F 8D .. JSR &8D9F 8D40 68 h PLA 8D41 18 . CLC 8D42 65 B4 e4 ADC &B4 8D44 A8 ( TAY 8D45 D0 CA PJ BNE &8D11 8D47 A0 0A . LDY #&0A 8D49 BD 05 0F =.. LDA &0F05,X 8D4C 20 E3 FF c. JSR &FFE3 8D4F E8 h INX 8D50 88 . DEY 8D51 D0 F6 Pv BNE &8D49 8D53 60 ` RTS 8D54 2B + ??? 8D55 3E 66 18 >f. ROL &1866,X 8D58 4C 2E 21 L.! JMP &212E 8D5B 42 B ??? 8D5C 4F O ??? 8D5D 4F O ??? 8D5E 54 T ??? 8D5F 0D 45 2E .E. ORA &2E45 8D62 21 42 !B AND (&42,X) 8D64 4F O ??? 8D65 4F O ??? 8D66 54 T ??? 8D67 0D 67 58 .gX ORA &5867 8D6A 5A Z ??? 8D6B 60 ` RTS 8D6C 45 78 Ex EOR &78 8D6E 65 63 ec ADC &63 8D70 A2 04 ". LDX #&04 8D72 B1 BB 1; LDA (&BB),Y 8D74 20 F0 BF p? JSR &BFF0 8D77 88 . DEY 8D78 CA J DEX 8D79 D0 F7 Pw BNE &8D72 8D7B A9 20 ) LDA #&20 8D7D D0 5A PZ BNE &8DD9 8D7F 4F O ??? 8D80 66 66 ff ROR &66 8D82 A2 00 ". LDX #&00 8D84 A0 00 . LDY #&00 8D86 B1 BE 1> LDA (&BE),Y 8D88 9D 05 0F ... STA &0F05,X 8D8B E8 h INX 8D8C C8 H INY 8D8D 49 0D I. EOR #&0D 8D8F D0 F5 Pu BNE &8D86 8D91 60 ` RTS 8D92 4C 6F 61 Loa JMP &616F 8D95 64 d ??? 8D96 A2 00 ". LDX #&00 8D98 BD 05 0F =.. LDA &0F05,X 8D9B 30 F4 0t BMI &8D91 8D9D D0 15 P. BNE &8DB4 8D9F A4 B9 $9 LDY &B9 8DA1 30 0F 0. BMI &8DB2 8DA3 C8 H INY 8DA4 98 . TYA 8DA5 29 03 ). AND #&03 8DA7 85 B9 .9 STA &B9 8DA9 F0 07 p. BEQ &8DB2 8DAB 20 5C 86 \. JSR &865C 8DAE 20 20 D0 P JSR &D020 8DB1 05 A9 .) ORA &A9 8DB3 0D 20 E3 . c ORA &E320 8DB6 FF . ??? 8DB7 E8 h INX 8DB8 D0 DE P^ BNE &8D98 8DBA 52 R ??? 8DBB 75 6E un ADC &6E,X 8DBD A8 ( TAY 8DBE A9 64 )d LDA #&64 8DC0 20 CA 8D J. JSR &8DCA 8DC3 A9 0A ). LDA #&0A 8DC5 20 CA 8D J. JSR &8DCA 8DC8 A9 01 ). LDA #&01 8DCA 85 B8 .8 STA &B8 8DCC 98 . TYA 8DCD A2 2F "/ LDX #&2F 8DCF 38 8 SEC 8DD0 E8 h INX 8DD1 E5 B8 e8 SBC &B8 8DD3 B0 FB 0{ BCS &8DD0 8DD5 65 B8 e8 ADC &B8 8DD7 A8 ( TAY 8DD8 8A . TXA 8DD9 4C E3 FF Lc. JMP &FFE3 8DDC 20 E8 86 h. JSR &86E8 8DDF 20 82 8D .. JSR &8D82 8DE2 A0 00 . LDY #&00 8DE4 18 . CLC 8DE5 20 C2 FF B. JSR &FFC2 8DE8 20 C5 FF E. JSR &FFC5 8DEB 90 FB .{ BCC &8DE8 8DED 20 7E 83 ~. JSR &837E 8DF0 18 . CLC 8DF1 98 . TYA 8DF2 65 F2 er ADC &F2 8DF4 8D 0A 0E ... STA &0E0A 8DF7 A5 F3 %s LDA &F3 8DF9 69 00 i. ADC #&00 8DFB 8D 0B 0E ... STA &0E0B 8DFE A2 0E ". LDX #&0E 8E00 86 BC .< STX &BC 8E02 A9 10 ). LDA #&10 8E04 85 BB .; STA &BB 8E06 8D 16 0E ... STA &0E16 8E09 A2 4A "J LDX #&4A 8E0B A0 05 . LDY #&05 8E0D 20 22 87 ". JSR &8722 8E10 AD 67 0D -g. LDA &0D67 8E13 F0 14 p. BEQ &8E29 8E15 6D 0B 0F m.. ADC &0F0B 8E18 6D 0C 0F m.. ADC &0F0C 8E1B B0 0C 0. BCS &8E29 8E1D 20 13 8C .. JSR &8C13 8E20 A2 09 ". LDX #&09 8E22 A0 0F . LDY #&0F 8E24 A9 04 ). LDA #&04 8E26 4C 06 04 L.. JMP &0406 8E29 2A * ROL A 8E2A 6C 09 0F l.. JMP (&0F09) 8E2D 8C 04 0E ... STY &0E04 8E30 90 03 .. BCC &8E35 8E32 8C 03 0E ... STY &0E03 8E35 4C B3 89 L3. JMP &89B3 8E38 38 8 SEC 8E39 A2 03 ". LDX #&03 8E3B 90 06 .. BCC &8E43 8E3D BD 05 0F =.. LDA &0F05,X 8E40 9D 02 0E ... STA &0E02,X 8E43 CA J DEX 8E44 10 F7 .w BPL &8E3D 8E46 90 ED .m BCC &8E35 8E48 AC 05 0E ,.. LDY &0E05 8E4B BE 68 8D >h. LDX &8D68,Y 8E4E A0 8D . LDY #&8D 8E50 4C F7 FF Lw. JMP &FFF7 8E53 A5 F0 %p LDA &F0 8E55 0A . ASL A 8E56 0A . ASL A 8E57 48 H PHA 8E58 0A . ASL A 8E59 BA : TSX 8E5A 7D 01 01 }.. ADC &0101,X 8E5D A8 ( TAY 8E5E 68 h PLA 8E5F C9 48 IH CMP #&48 8E61 90 03 .. BCC &8E66 8E63 A0 00 . LDY #&00 8E65 98 . TYA 8E66 60 ` RTS 8E67 A0 6F o LDY #&6F 8E69 B1 9C 1. LDA (&9C),Y 8E6B 90 0D .. BCC &8E7A 8E6D 20 53 8E S. JSR &8E53 8E70 B0 06 0. BCS &8E78 8E72 B1 9E 1. LDA (&9E),Y 8E74 C9 3F I? CMP #&3F 8E76 D0 02 P. BNE &8E7A 8E78 A9 00 ). LDA #&00 8E7A 85 F0 .p STA &F0 8E7C 60 ` RTS 8E7D 20 53 8E S. JSR &8E53 8E80 B0 F6 0v BCS &8E78 8E82 A9 3F )? LDA #&3F 8E84 91 9E .. STA (&9E),Y 8E86 60 ` RTS ---------------------------------------------------------------------------- OSWORD handler 8E87 A5 EF %o LDA &EF ; OSWORD handler, &EF = OSWORD no. 8E89 E9 0F i. SBC #&0F ; -&10 8E8B 30 2A 0* BMI &8EB7 ; look for oswords > 0F 8E8D C9 05 I. CMP #&05 8E8F B0 26 0& BCS &8EB7 ; look for oswords < 15 8E91 20 9F 8E .. JSR &8E9F ; do osword 8E94 A0 02 . LDY #&02 8E96 B1 9C 1. LDA (&9C),Y 8E98 99 AA 00 .*. STA &00AA,Y ; restore AA-AC 8E9B 88 . DEY 8E9C 10 F8 .x BPL &8E96 8E9E 60 ` RTS 8E9F AA * TAX ; look up osword handler address 8EA0 BD BD 8E ==. LDA &8EBD,X 8EA3 48 H PHA 8EA4 BD B8 8E =8. LDA &8EB8,X 8EA7 48 H PHA 8EA8 A0 02 . LDY #&02 8EAA B9 AA 00 9*. LDA &00AA,Y ; save AA-AC 8EAD 91 9C .. STA (&9C),Y ; (9C) = &1900 8EAF 88 . DEY 8EB0 10 F8 .x BPL &8EAA 8EB2 C8 H INY 8EB3 B1 F0 1p LDA (&F0),Y ; (&F0) = osword control block 8EB5 84 A9 .) STY &A9 8EB7 60 ` RTS 8EB8 C1 7B A{ CMP (&7B,X) 8EBA DB [ ??? 8EBB 00 . BRK 8EBC EF o ??? 8EBD 8E 8F 8E ... STX &8E8F 8EC0 8F . ??? 8EC1 8F . ??? 8EC2 0E 62 0D .b. ASL &0D62 ; OSWORD &10 handler - TRANSMIT 8EC5 98 . TYA 8EC6 90 34 .4 BCC &8EFC 8EC8 A5 9D %. LDA &9D ; &19 (6F) 8ECA 85 AC ., STA &AC 8ECC 85 A1 .! STA &A1 8ECE A9 6F )o LDA #&6F ; &6F 8ED0 85 AB .+ STA &AB 8ED2 85 A0 . STA &A0 8ED4 A2 0F ". LDX #&0F 8ED6 20 1C 8F .. JSR &8F1C ; copy osword control block 8ED9 4C 30 96 L0. JMP &9630 8EDC A5 9D %. LDA &9D ; OSWORD &12 handler - ? 8EDE 85 AC ., STA &AC 8EE0 A0 7F . LDY #&7F 8EE2 B1 9C 1. LDA (&9C),Y 8EE4 C8 H INY 8EE5 84 AB .+ STY &AB 8EE7 AA * TAX 8EE8 CA J DEX 8EE9 A0 00 . LDY #&00 8EEB 20 1C 8F .. JSR &8F1C ; copy osword control block 8EEE 4C F0 92 Lp. JMP &92F0 8EF1 A0 7F . LDY #&7F 8EF3 B1 9C 1. LDA (&9C),Y 8EF5 A0 01 . LDY #&01 8EF7 91 F0 .p STA (&F0),Y 8EF9 C8 H INY 8EFA A9 80 ). LDA #&80 8EFC 91 F0 .p STA (&F0),Y 8EFE 60 ` RTS 8EFF FF . ??? 8F00 01 .I ??? 8F01 C9 ; OSWORD &13 handler - station info 8F02 06 B0 .0 ASL &B0 8F04 41 C9 AI EOR (&C9,X) 8F06 04 . ??? 8F07 B0 22 0" BCS &8F2B 8F09 4A J LSR A 8F0A A2 0D ". LDX #&0D 8F0C A8 ( TAY 8F0D F0 02 p. BEQ &8F11 8F0F A6 9F &. LDX &9F 8F11 86 AC ., STX &AC 8F13 B9 FF 8E 9.. LDA &8EFF,Y 8F16 85 AB .+ STA &AB 8F18 A2 01 ". LDX #&01 8F1A A0 01 . LDY #&01 8F1C 90 04 .. BCC &8F22 ; Copy osword control block 8F1E B1 F0 1p LDA (&F0),Y ; (&F0) = OSWORD block 8F20 91 AB .+ STA (&AB),Y ; 196F 8F22 B1 AB 1+ LDA (&AB),Y 8F24 91 F0 .p STA (&F0),Y 8F26 C8 H INY 8F27 CA J DEX 8F28 10 F2 .r BPL &8F1C 8F2A 60 ` RTS 8F2B 4A J LSR A 8F2C C8 H INY 8F2D B1 F0 1p LDA (&F0),Y 8F2F B0 05 0. BCS &8F36 8F31 AD 63 0D -c. LDA &0D63 8F34 91 F0 .p STA (&F0),Y 8F36 8D 63 0D .c. STA &0D63 8F39 8D 65 0D .e. STA &0D65 8F3C 60 ` RTS 8F3D A0 14 . LDY #&14 8F3F B1 9C 1. LDA (&9C),Y 8F41 A0 01 . LDY #&01 8F43 91 F0 .p STA (&F0),Y 8F45 60 ` RTS 8F46 C9 08 I. CMP #&08 8F48 F0 F3 ps BEQ &8F3D 8F4A C9 09 I. CMP #&09 8F4C F0 A3 p# BEQ &8EF1 8F4E 10 19 .. BPL &8F69 8F50 A0 03 . LDY #&03 8F52 4A J LSR A 8F53 90 1B .. BCC &8F70 8F55 84 A8 .( STY &A8 8F57 A4 A8 $( LDY &A8 8F59 B1 F0 1p LDA (&F0),Y 8F5B 20 9A 86 .. JSR &869A 8F5E 98 . TYA 8F5F A4 A8 $( LDY &A8 8F61 99 01 0E ... STA &0E01,Y 8F64 C6 A8 F( DEC &A8 8F66 D0 EF Po BNE &8F57 8F68 60 ` RTS 8F69 C8 H INY 8F6A AD 09 0E -.. LDA &0E09 8F6D 91 F0 .p STA (&F0),Y 8F6F 60 ` RTS 8F70 B9 01 0E 9.. LDA &0E01,Y 8F73 20 B7 86 7. JSR &86B7 8F76 91 F0 .p STA (&F0),Y 8F78 88 . DEY 8F79 D0 F5 Pu BNE &8F70 8F7B 60 ` RTS 8F7C A6 9F &. LDX &9F ; OSWORD &11 handler - RECEIVE 8F7E 86 AC ., STX &AC 8F80 84 AB .+ STY &AB 8F82 6E 64 0D nd. ROR &0D64 8F85 B1 F0 1p LDA (&F0),Y 8F87 85 AA .* STA &AA 8F89 D0 1B P. BNE &8FA6 8F8B A9 03 ). LDA #&03 8F8D 20 55 8E U. JSR &8E55 8F90 B0 3D 0= BCS &8FCF 8F92 4A J LSR A 8F93 4A J LSR A 8F94 AA * TAX 8F95 B1 AB 1+ LDA (&AB),Y 8F97 F0 36 p6 BEQ &8FCF 8F99 C9 3F I? CMP #&3F 8F9B F0 04 p. BEQ &8FA1 8F9D E8 h INX 8F9E 8A . TXA 8F9F D0 EC Pl BNE &8F8D 8FA1 8A . TXA 8FA2 A2 00 ". LDX #&00 8FA4 81 F0 .p STA (&F0,X) 8FA6 20 55 8E U. JSR &8E55 8FA9 B0 24 0$ BCS &8FCF 8FAB 88 . DEY 8FAC 84 AB .+ STY &AB 8FAE A9 C0 )@ LDA #&C0 8FB0 A0 01 . LDY #&01 8FB2 A2 0B ". LDX #&0B 8FB4 C4 AA D* CPY &AA 8FB6 71 AB q+ ADC (&AB),Y 8FB8 F0 03 p. BEQ &8FBD 8FBA 30 0E 0. BMI &8FCA 8FBC 18 . CLC 8FBD 20 1C 8F .. JSR &8F1C ; copy osword control block 8FC0 B0 0F 0. BCS &8FD1 8FC2 A9 3F )? LDA #&3F 8FC4 A0 01 . LDY #&01 8FC6 91 AB .+ STA (&AB),Y 8FC8 D0 07 P. BNE &8FD1 8FCA 69 01 i. ADC #&01 8FCC D0 EE Pn BNE &8FBC 8FCE 88 . DEY 8FCF 91 F0 .p STA (&F0),Y 8FD1 2E 64 0D .d. ROL &0D64 8FD4 60 ` RTS 8FD5 A0 1C . LDY #&1C 8FD7 A5 F0 %p LDA &F0 8FD9 69 01 i. ADC #&01 8FDB 20 E6 8F f. JSR &8FE6 8FDE A0 01 . LDY #&01 8FE0 B1 F0 1p LDA (&F0),Y 8FE2 A0 20 LDY #&20 8FE4 65 F0 ep ADC &F0 8FE6 91 9E .. STA (&9E),Y 8FE8 C8 H INY 8FE9 A5 F1 %q LDA &F1 8FEB 69 00 i. ADC #&00 8FED 91 9E .. STA (&9E),Y 8FEF 60 ` RTS 8FF0 C9 01 I. CMP #&01 ; OSWORD &14 handler 8FF2 B0 4A 0J BCS &903E 8FF4 A0 23 # LDY #&23 8FF6 B9 95 83 9.. LDA &8395,Y 8FF9 D0 03 P. BNE &8FFE 8FFB B9 E6 0D 9f. LDA &0DE6,Y 8FFE 91 9E .. STA (&9E),Y 9000 88 . DEY 9001 C0 17 @. CPY #&17 9003 D0 F1 Pq BNE &8FF6 9005 C8 H INY 9006 84 9A .. STY &9A 9008 20 D5 8F U. JSR &8FD5 900B A0 02 . LDY #&02 900D A9 90 ). LDA #&90 900F 85 97 .. STA &97 9011 91 F0 .p STA (&F0),Y 9013 C8 H INY 9014 C8 H INY 9015 B9 FE 0D 9~. LDA &0DFE,Y 9018 91 F0 .p STA (&F0),Y 901A C8 H INY 901B C0 07 @. CPY #&07 901D D0 F6 Pv BNE &9015 901F A5 9F %. LDA &9F 9021 85 9B .. STA &9B 9023 58 X CLI 9024 20 FF 85 .. JSR &85FF 9027 A0 20 LDY #&20 9029 A9 FF ). LDA #&FF 902B 91 9E .. STA (&9E),Y 902D C8 H INY 902E 91 9E .. STA (&9E),Y 9030 A0 19 . LDY #&19 9032 A9 90 ). LDA #&90 9034 91 9E .. STA (&9E),Y 9036 88 . DEY 9037 A9 7F ). LDA #&7F 9039 91 9E .. STA (&9E),Y 903B 4C 30 85 L0. JMP &8530 903E 08 . PHP 903F A0 01 . LDY #&01 9041 B1 F0 1p LDA (&F0),Y 9043 AA * TAX 9044 C8 H INY 9045 B1 F0 1p LDA (&F0),Y 9047 C8 H INY 9048 84 AB .+ STY &AB 904A A0 72 r LDY #&72 904C 91 9C .. STA (&9C),Y 904E 88 . DEY 904F 8A . TXA 9050 91 9C .. STA (&9C),Y 9052 28 ( PLP 9053 D0 1C P. BNE &9071 9055 A4 AB $+ LDY &AB 9057 E6 AB f+ INC &AB 9059 B1 F0 1p LDA (&F0),Y 905B F0 13 p. BEQ &9070 905D A0 7D } LDY #&7D 905F 91 9C .. STA (&9C),Y 9061 48 H PHA 9062 20 7F 91 .. JSR &917F 9065 20 7C 90 |. JSR &907C 9068 CA J DEX 9069 D0 FD P} BNE &9068 906B 68 h PLA 906C 49 0D I. EOR #&0D 906E D0 E5 Pe BNE &9055 9070 60 ` RTS 9071 20 7F 91 .. JSR &917F 9074 A0 7B { LDY #&7B 9076 B1 9C 1. LDA (&9C),Y 9078 69 03 i. ADC #&03 907A 91 9C .. STA (&9C),Y 907C 58 X CLI 907D 4C FF 85 L.. JMP &85FF 9080 08 . PHP 9081 48 H PHA 9082 8A . TXA 9083 48 H PHA 9084 98 . TYA 9085 48 H PHA 9086 BA : TSX 9087 BD 03 01 =.. LDA &0103,X 908A C9 09 I. CMP #&09 908C B0 04 0. BCS &9092 908E AA * TAX 908F 20 99 90 .. JSR &9099 9092 68 h PLA 9093 A8 ( TAY 9094 68 h PLA 9095 AA * TAX 9096 68 h PLA 9097 28 ( PLP 9098 60 ` RTS 9099 BD AD 90 =-. LDA &90AD,X 909C 48 H PHA 909D BD A4 90 =$. LDA &90A4,X 90A0 48 H PHA 90A1 A5 EF %o LDA &EF 90A3 60 ` RTS 90A4 F5 E9 ui SBC &E9,X 90A6 E9 E9 ii SBC #&E9 90A8 B5 DA 5Z LDA &DA,X 90AA F5 E7 ug SBC &E7,X 90AC 53 S ??? 90AD 80 . ??? 90AE 91 91 .. STA (&91),Y 90B0 91 90 .. STA (&90),Y 90B2 91 80 .. STA (&80),Y 90B4 90 91 .. BCC &9047 90B6 BA : TSX 90B7 7E 06 01 ~.. ROR &0106,X 90BA 1E 06 01 ... ASL &0106,X 90BD 98 . TYA 90BE A0 DA Z LDY #&DA 90C0 91 9E .. STA (&9E),Y 90C2 A9 00 ). LDA #&00 90C4 A0 D9 Y LDY #&D9 90C6 91 9E .. STA (&9E),Y 90C8 A9 80 ). LDA #&80 90CA A0 0C . LDY #&0C 90CC 91 9E .. STA (&9E),Y 90CE A5 9A %. LDA &9A 90D0 48 H PHA 90D1 A5 9B %. LDA &9B 90D3 48 H PHA 90D4 84 9A .. STY &9A 90D6 A6 9F &. LDX &9F 90D8 86 9B .. STX &9B 90DA 20 FF 85 .. JSR &85FF 90DD A9 3F )? LDA #&3F 90DF 81 9A .. STA (&9A,X) 90E1 68 h PLA 90E2 85 9B .. STA &9B 90E4 68 h PLA 90E5 85 9A .. STA &9A 90E7 60 ` RTS 90E8 A4 F1 $q LDY &F1 90EA C9 81 I. CMP #&81 90EC F0 13 p. BEQ &9101 90EE A0 01 . LDY #&01 90F0 A2 09 ". LDX #&09 90F2 20 3C 91 <. JSR &913C 90F5 F0 0A p. BEQ &9101 90F7 88 . DEY 90F8 88 . DEY 90F9 A2 0E ". LDX #&0E 90FB 20 3C 91 <. JSR &913C 90FE F0 01 p. BEQ &9101 9100 C8 H INY 9101 A2 02 ". LDX #&02 9103 98 . TYA 9104 F0 35 p5 BEQ &913B 9106 08 . PHP 9107 10 01 .. BPL &910A 9109 E8 h INX 910A A0 DC \ LDY #&DC 910C B9 15 00 9.. LDA &0015,Y 910F 91 9E .. STA (&9E),Y 9111 88 . DEY 9112 C0 DA @Z CPY #&DA 9114 10 F6 .v BPL &910C 9116 8A . TXA 9117 20 C4 90 D. JSR &90C4 911A 28 ( PLP 911B 10 1E .. BPL &913B 911D A9 7F ). LDA #&7F 911F A0 0C . LDY #&0C 9121 91 9E .. STA (&9E),Y 9123 B1 9E 1. LDA (&9E),Y 9125 10 FC .| BPL &9123 9127 BA : TSX 9128 A0 DD ] LDY #&DD 912A B1 9E 1. LDA (&9E),Y 912C 09 44 .D ORA #&44 912E D0 04 P. BNE &9134 9130 88 . DEY 9131 CA J DEX 9132 B1 9E 1. LDA (&9E),Y 9134 9D 06 01 ... STA &0106,X 9137 C0 DA @Z CPY #&DA 9139 D0 F5 Pu BNE &9130 913B 60 ` RTS 913C DD 45 91 ]E. CMP &9145,X 913F F0 03 p. BEQ &9144 9141 CA J DEX 9142 10 F8 .x BPL &913C 9144 60 ` RTS 9145 04 . ??? 9146 09 0A .. ORA #&0A 9148 15 9A .. ORA &9A,X 914A 9B . ??? 914B E1 E2 ab SBC (&E2,X) 914D E3 c ??? 914E E4 0B d. CPX &0B 9150 0C . ??? 9151 0F . ??? 9152 79 7A A0 yz ADC &A07A,Y 9155 0E C9 07 .I. ASL &07C9 9158 F0 04 p. BEQ &915E 915A C9 08 I. CMP #&08 915C D0 E6 Pf BNE &9144 915E A2 DB "[ LDX #&DB 9160 86 9E .. STX &9E 9162 B1 F0 1p LDA (&F0),Y 9164 91 9E .. STA (&9E),Y 9166 88 . DEY 9167 10 F9 .y BPL &9162 9169 C8 H INY 916A C6 9E F. DEC &9E 916C A5 EF %o LDA &EF 916E 91 9E .. STA (&9E),Y 9170 84 9E .. STY &9E 9172 A0 14 . LDY #&14 9174 A9 E9 )i LDA #&E9 9176 91 9E .. STA (&9E),Y 9178 A9 01 ). LDA #&01 917A 20 C4 90 D. JSR &90C4 917D 86 9E .. STX &9E 917F A2 0D ". LDX #&0D 9181 A0 7C | LDY #&7C 9183 2C B3 83 ,3. BIT &83B3 9186 70 05 p. BVS &918D 9188 A0 17 . LDY #&17 918A A2 1A ". LDX #&1A 918C B8 8 CLV 918D BD B4 91 =4. LDA &91B4,X 9190 C9 FE I~ CMP #&FE 9192 F0 1C p. BEQ &91B0 9194 C9 FD I} CMP #&FD 9196 F0 14 p. BEQ &91AC 9198 C9 FC I| CMP #&FC 919A D0 08 P. BNE &91A4 919C A5 9D %. LDA &9D 919E 70 02 p. BVS &91A2 91A0 A5 9F %. LDA &9F 91A2 85 9B .. STA &9B 91A4 70 04 p. BVS &91AA 91A6 91 9E .. STA (&9E),Y 91A8 50 02 P. BVC &91AC 91AA 91 9C .. STA (&9C),Y 91AC 88 . DEY 91AD CA J DEX 91AE 10 DD .] BPL &918D 91B0 C8 H INY 91B1 84 9A .. STY &9A 91B3 60 ` RTS 91B4 85 00 .. STA &00 91B6 FD FD 7D }}} SBC &7DFD,X 91B9 FC | ??? 91BA FF . ??? 91BB FF . ??? 91BC 7E FC FF ~|. ROR &FFFC,X 91BF FF . ??? 91C0 00 . BRK 91C1 00 . BRK 91C2 FE 80 93 ~.. INC &9380,X 91C5 FD FD D9 }}Y SBC &D9FD,X 91C8 FC | ??? 91C9 FF . ??? 91CA FF . ??? 91CB DE FC FF ^|. DEC &FFFC,X 91CE FF . ??? 91CF FE D1 FD ~Q} INC &FDD1,X 91D2 FD 1F FD }.} SBC &FD1F,X 91D5 FF . ??? 91D6 FF . ??? 91D7 FD FD FF }}. SBC &FFFD,X 91DA FF . ??? 91DB CA J DEX 91DC E4 F0 dp CPX &F0 91DE D0 07 P. BNE &91E7 91E0 A9 1F ). LDA #&1F 91E2 8D 61 0D .a. STA &0D61 91E5 A9 41 )A LDA #&41 91E7 85 99 .. STA &99 91E9 60 ` RTS 91EA C0 04 @. CPY #&04 91EC D0 FB P{ BNE &91E9 91EE 8A . TXA 91EF CA J DEX 91F0 D0 26 P& BNE &9218 91F2 BA : TSX 91F3 1D 06 01 ... ORA &0106,X 91F6 9D 06 01 ... STA &0106,X 91F9 A9 91 ). LDA #&91 91FB A2 03 ". LDX #&03 91FD 20 F4 FF t. JSR &FFF4 9200 B0 E7 0g BCS &91E9 9202 98 . TYA 9203 20 0F 92 .. JSR &920F 9206 C0 6E @n CPY #&6E 9208 90 EF .o BCC &91F9 920A 20 37 92 7. JSR &9237 920D 90 EA .j BCC &91F9 920F AC 61 0D ,a. LDY &0D61 9212 91 9C .. STA (&9C),Y 9214 EE 61 0D na. INC &0D61 9217 60 ` RTS 9218 48 H PHA 9219 8A . TXA 921A 49 01 I. EOR #&01 921C 20 0F 92 .. JSR &920F 921F 45 99 E. EOR &99 9221 6A j ROR A 9222 90 06 .. BCC &922A 9224 2A * ROL A 9225 85 99 .. STA &99 9227 20 37 92 7. JSR &9237 922A A5 99 %. LDA &99 922C 29 F0 )p AND #&F0 922E 6A j ROR A 922F AA * TAX 9230 68 h PLA 9231 6A j ROR A 9232 8A . TXA 9233 2A * ROL A 9234 85 99 .. STA &99 9236 60 ` RTS 9237 A0 08 . LDY #&08 9239 AD 61 0D -a. LDA &0D61 923C 91 9E .. STA (&9E),Y 923E A5 9D %. LDA &9D 9240 C8 H INY 9241 91 9E .. STA (&9E),Y 9243 A0 05 . LDY #&05 9245 91 9E .. STA (&9E),Y 9247 A0 0B . LDY #&0B 9249 A2 26 "& LDX #&26 924B 20 8C 91 .. JSR &918C 924E 88 . DEY 924F A5 99 %. LDA &99 9251 48 H PHA 9252 2A * ROL A 9253 68 h PLA 9254 49 80 I. EOR #&80 9256 85 99 .. STA &99 9258 2A * ROL A 9259 91 9E .. STA (&9E),Y 925B A0 1F . LDY #&1F 925D 8C 61 0D .a. STY &0D61 9260 A9 00 ). LDA #&00 9262 AA * TAX 9263 A4 9F $. LDY &9F 9265 58 X CLI 9266 86 9A .. STX &9A 9268 84 9B .. STY &9B 926A 48 H PHA 926B 2D 08 0E -.. AND &0E08 926E F0 02 p. BEQ &9272 9270 A9 01 ). LDA #&01 9272 A0 00 . LDY #&00 9274 11 9A .. ORA (&9A),Y 9276 48 H PHA 9277 91 9A .. STA (&9A),Y 9279 20 FF 85 .. JSR &85FF 927C A9 FF ). LDA #&FF 927E A0 08 . LDY #&08 9280 91 9A .. STA (&9A),Y 9282 C8 H INY 9283 91 9A .. STA (&9A),Y 9285 68 h PLA 9286 AA * TAX 9287 A0 D1 Q LDY #&D1 9289 68 h PLA 928A 48 H PHA 928B F0 02 p. BEQ &928F 928D A0 90 . LDY #&90 928F 98 . TYA 9290 A0 01 . LDY #&01 9292 91 9A .. STA (&9A),Y 9294 8A . TXA 9295 88 . DEY 9296 48 H PHA 9297 A9 7F ). LDA #&7F 9299 91 9A .. STA (&9A),Y 929B 20 30 85 0. JSR &8530 929E 68 h PLA 929F 48 H PHA 92A0 51 9A Q. EOR (&9A),Y 92A2 6A j ROR A 92A3 B0 F2 0r BCS &9297 92A5 68 h PLA 92A6 68 h PLA 92A7 4D 08 0E M.. EOR &0E08 92AA 60 ` RTS 92AB A5 AD %- LDA &AD 92AD 48 H PHA 92AE A9 E9 )i LDA #&E9 92B0 85 9E .. STA &9E 92B2 A0 00 . LDY #&00 92B4 84 AD .- STY &AD 92B6 AD 50 03 -P. LDA &0350 92B9 91 9E .. STA (&9E),Y 92BB E6 9E f. INC &9E 92BD AD 51 03 -Q. LDA &0351 92C0 48 H PHA 92C1 98 . TYA 92C2 91 9E .. STA (&9E),Y 92C4 A6 9E &. LDX &9E 92C6 A4 9F $. LDY &9F 92C8 A9 0B ). LDA #&0B 92CA 20 F1 FF q. JSR &FFF1 92CD 68 h PLA 92CE A0 00 . LDY #&00 92D0 91 9E .. STA (&9E),Y 92D2 C8 H INY 92D3 B1 9E 1. LDA (&9E),Y 92D5 48 H PHA 92D6 A6 9E &. LDX &9E 92D8 E6 9E f. INC &9E 92DA E6 AD f- INC &AD 92DC 88 . DEY 92DD A5 AD %- LDA &AD 92DF E0 F9 `y CPX #&F9 92E1 D0 DF P_ BNE &92C2 92E3 68 h PLA 92E4 84 AD .- STY &AD 92E6 E6 9E f. INC &9E 92E8 20 F7 92 w. JSR &92F7 92EB E6 9E f. INC &9E 92ED 68 h PLA 92EE 85 AD .- STA &AD 92F0 AD 65 0D -e. LDA &0D65 92F3 8D 63 0D .c. STA &0D63 92F6 60 ` RTS 92F7 AD 55 03 -U. LDA &0355 92FA 91 9E .. STA (&9E),Y 92FC AA * TAX 92FD 20 0A 93 .. JSR &930A 9300 E6 9E f. INC &9E 9302 98 . TYA 9303 81 9E .. STA (&9E,X) 9305 20 08 93 .. JSR &9308 9308 A2 00 ". LDX #&00 930A A4 AD $- LDY &AD 930C E6 AD f- INC &AD 930E E6 9E f. INC &9E 9310 B9 1E 93 9.. LDA &931E,Y 9313 A0 FF . LDY #&FF 9315 20 F4 FF t. JSR &FFF4 9318 8A . TXA 9319 A2 00 ". LDX #&00 931B 81 9E .. STA (&9E,X) 931D 60 ` RTS 931E 85 C2 .B STA &C2 9320 C3 C ??? 9321 A9 FF ). LDA #&FF 9323 20 9E 06 .. JSR &069E 9326 AD E3 FE -c~ LDA &FEE3 ; tube 9329 A9 00 ). LDA #&00 932B 20 95 06 .. JSR &0695 932E A8 ( TAY 932F B1 FD 1} LDA (&FD),Y 9331 20 95 06 .. JSR &0695 9334 C8 H INY 9335 B1 FD 1} LDA (&FD),Y 9337 20 95 06 .. JSR &0695 933A AA * TAX 933B D0 F7 Pw BNE &9334 933D A2 FF ". LDX #&FF 933F 9A . TXS 9340 58 X CLI 9341 2C E0 FE ,`~ BIT &FEE0 ; tube 9344 10 06 .. BPL &934C 9346 AD E1 FE -a~ LDA &FEE1 ; tube 9349 20 EE FF n. JSR &FFEE 934C 2C E2 FE ,b~ BIT &FEE2 ; tube 934F 10 F0 .p BPL &9341 9351 2C E0 FE ,`~ BIT &FEE0 ; tube 9354 30 F0 0p BMI &9346 9356 AE E3 FE .c~ LDX &FEE3 ; tube 9359 86 51 .Q STX &51 935B 6C 00 05 l.. JMP (&0500) 935E 00 . BRK 935F 80 . ??? 9360 00 . BRK 9361 00 . BRK 9362 4C 84 04 L.. JMP &0484 ; NEXT 0300 BYTES COPIED TO 0400, 0500, 0600 9365 4C A7 06 L'. JMP &06A7 9368 C9 80 I. CMP #&80 936A 90 2B .+ BCC &9397 936C C9 C0 I@ CMP #&C0 936E B0 1A 0. BCS &938A 9370 09 40 .@ ORA #&40 9372 C5 15 E. CMP &15 9374 D0 20 P BNE &9396 9376 08 . PHP 9377 78 x SEI 9378 A9 05 ). LDA #&05 937A 20 9E 06 .. JSR &069E 937D A5 15 %. LDA &15 937F 20 9E 06 .. JSR &069E 9382 28 ( PLP 9383 A9 80 ). LDA #&80 9385 85 15 .. STA &15 9387 85 14 .. STA &14 9389 60 ` RTS 938A 06 14 .. ASL &14 938C B0 06 0. BCS &9394 938E C5 15 E. CMP &15 9390 F0 04 p. BEQ &9396 9392 18 . CLC 9393 60 ` RTS 9394 85 15 .. STA &15 9396 60 ` RTS 9397 08 . PHP 9398 78 x SEI 9399 84 13 .. STY &13 939B 86 12 .. STX &12 939D 20 9E 06 .. JSR &069E 93A0 AA * TAX 93A1 A0 03 . LDY #&03 93A3 A5 15 %. LDA &15 93A5 20 9E 06 .. JSR &069E 93A8 B1 12 1. LDA (&12),Y 93AA 20 9E 06 .. JSR &069E 93AD 88 . DEY 93AE 10 F8 .x BPL &93A8 93B0 A0 18 . LDY #&18 93B2 8C E0 FE .`~ STY &FEE0 ; tube 93B5 BD 18 05 =.. LDA &0518,X 93B8 8D E0 FE .`~ STA &FEE0 ; tube 93BB 4A J LSR A 93BC 4A J LSR A 93BD 90 06 .. BCC &93C5 93BF 2C E5 FE ,e~ BIT &FEE5 93C2 2C E5 FE ,e~ BIT &FEE5 93C5 20 9E 06 .. JSR &069E 93C8 2C E6 FE ,f~ BIT &FEE6 93CB 50 FB P{ BVC &93C8 93CD B0 0D 0. BCS &93DC 93CF E0 04 `. CPX #&04 93D1 D0 11 P. BNE &93E4 93D3 20 14 04 .. JSR &0414 93D6 20 95 06 .. JSR &0695 93D9 4C 32 00 L2. JMP &0032 93DC 4A J LSR A 93DD 90 05 .. BCC &93E4 93DF A0 88 . LDY #&88 93E1 8C E0 FE .`~ STY &FEE0 ; tube 93E4 28 ( PLP 93E5 60 ` RTS 93E6 58 X CLI 93E7 B0 11 0. BCS &93FA 93E9 D0 03 P. BNE &93EE 93EB 4C 9C 05 L.. JMP &059C 93EE A2 00 ". LDX #&00 93F0 A0 FF . LDY #&FF 93F2 A9 FD )} LDA #&FD 93F4 20 F4 FF t. JSR &FFF4 93F7 8A . TXA 93F8 F0 D9 pY BEQ &93D3 93FA A9 FF ). LDA #&FF 93FC 20 06 04 .. JSR &0406 93FF 90 F9 .y BCC &93FA 9401 20 D2 04 R. JSR &04D2 9404 A9 07 ). LDA #&07 9406 20 CB 04 K. JSR &04CB 9409 A0 00 . LDY #&00 940B 84 00 .. STY &00 940D B1 00 1. LDA (&00),Y 940F 8D E5 FE .e~ STA &FEE5 ; tube 9412 EA j NOP 9413 EA j NOP 9414 EA j NOP 9415 C8 H INY 9416 D0 F5 Pu BNE &940D 9418 E6 54 fT INC &54 941A D0 06 P. BNE &9422 941C E6 55 fU INC &55 941E D0 02 P. BNE &9422 9420 E6 56 fV INC &56 9422 E6 01 f. INC &01 9424 24 01 $. BIT &01 9426 50 DC P\ BVC &9404 9428 20 D2 04 R. JSR &04D2 942B A9 04 ). LDA #&04 942D A0 00 . LDY #&00 942F A2 53 "S LDX #&53 9431 4C 06 04 L.. JMP &0406 9434 A9 80 ). LDA #&80 9436 85 54 .T STA &54 9438 85 01 .. STA &01 943A A9 20 ) LDA #&20 943C 2D 06 80 -.. AND &8006 943F A8 ( TAY 9440 84 53 .S STY &53 9442 F0 19 p. BEQ &945D 9444 AE 07 80 ... LDX &8007 9447 E8 h INX 9448 BD 00 80 =.. LDA &8000,X 944B D0 FA Pz BNE &9447 944D BD 01 80 =.. LDA &8001,X 9450 85 53 .S STA &53 9452 BD 02 80 =.. LDA &8002,X 9455 85 54 .T STA &54 9457 BC 03 80 <.. LDY &8003,X 945A BD 04 80 =.. LDA &8004,X 945D 85 56 .V STA &56 945F 84 55 .U STY &55 9461 60 ` RTS 9462 37 7 ??? 9463 05 96 .. ORA &96 9465 05 F2 .r ORA &F2 9467 05 07 .. ORA &07 9469 06 27 .' ASL &27 946B 06 68 .h ASL &68 946D 06 5E .^ ASL &5E 946F 05 2D .- ORA &2D 9471 05 20 . ORA &20 9473 05 42 .B ORA &42 9475 05 A9 .) ORA &A9 9477 05 D1 .Q ORA &D1 9479 05 86 .. ORA &86 947B 88 . DEY 947C 96 98 .. STX &98,Y 947E 18 . CLC 947F 18 . CLC 9480 82 . ??? 9481 18 . CLC 9482 20 C5 06 E. JSR &06C5 9485 A8 ( TAY 9486 20 C5 06 E. JSR &06C5 9489 20 D4 FF T. JSR &FFD4 948C 4C 9C 05 L.. JMP &059C 948F 20 C5 06 E. JSR &06C5 9492 A8 ( TAY 9493 20 D7 FF W. JSR &FFD7 9496 4C 3A 05 L:. JMP &053A 9499 20 E0 FF `. JSR &FFE0 949C 6A j ROR A 949D 20 95 06 .. JSR &0695 94A0 2A * ROL A 94A1 4C 9E 05 L.. JMP &059E 94A4 20 C5 06 E. JSR &06C5 94A7 F0 0B p. BEQ &94B4 94A9 48 H PHA 94AA 20 82 05 .. JSR &0582 94AD 68 h PLA 94AE 20 CE FF N. JSR &FFCE 94B1 4C 9E 05 L.. JMP &059E 94B4 20 C5 06 E. JSR &06C5 94B7 A8 ( TAY 94B8 A9 00 ). LDA #&00 94BA 20 CE FF N. JSR &FFCE 94BD 4C 9C 05 L.. JMP &059C 94C0 20 C5 06 E. JSR &06C5 94C3 A8 ( TAY 94C4 A2 04 ". LDX #&04 94C6 20 C5 06 E. JSR &06C5 94C9 95 FF .. STA &FF,X 94CB CA J DEX 94CC D0 F8 Px BNE &94C6 94CE 20 C5 06 E. JSR &06C5 94D1 20 DA FF Z. JSR &FFDA 94D4 20 95 06 .. JSR &0695 94D7 A2 03 ". LDX #&03 94D9 B5 00 5. LDA &00,X 94DB 20 95 06 .. JSR &0695 94DE CA J DEX 94DF 10 F8 .x BPL &94D9 94E1 4C 36 00 L6. JMP &0036 94E4 A2 00 ". LDX #&00 94E6 A0 00 . LDY #&00 94E8 20 C5 06 E. JSR &06C5 94EB 99 00 07 ... STA &0700,Y 94EE C8 H INY 94EF F0 04 p. BEQ &94F5 94F1 C9 0D I. CMP #&0D 94F3 D0 F3 Ps BNE &94E8 94F5 A0 07 . LDY #&07 94F7 60 ` RTS 94F8 20 82 05 .. JSR &0582 94FB 20 F7 FF w. JSR &FFF7 94FE A9 7F ). LDA #&7F 9500 2C E2 FE ,b~ BIT &FEE2 ; tube 9503 50 FB P{ BVC &9500 9505 8D E3 FE .c~ STA &FEE3 ; tube 9508 4C 36 00 L6. JMP &0036 950B A2 10 ". LDX #&10 950D 20 C5 06 E. JSR &06C5 9510 95 01 .. STA &01,X 9512 CA J DEX 9513 D0 F8 Px BNE &950D 9515 20 82 05 .. JSR &0582 9518 86 00 .. STX &00 951A 84 01 .. STY &01 951C A0 00 . LDY #&00 951E 20 C5 06 E. JSR &06C5 9521 20 DD FF ]. JSR &FFDD 9524 20 95 06 .. JSR &0695 9527 A2 10 ". LDX #&10 9529 B5 01 5. LDA &01,X 952B 20 95 06 .. JSR &0695 952E CA J DEX 952F D0 F8 Px BNE &9529 9531 F0 D5 pU BEQ &9508 9533 A2 0D ". LDX #&0D 9535 20 C5 06 E. JSR &06C5 9538 95 FF .. STA &FF,X 953A CA J DEX 953B D0 F8 Px BNE &9535 953D 20 C5 06 E. JSR &06C5 9540 A0 00 . LDY #&00 9542 20 D1 FF Q. JSR &FFD1 9545 48 H PHA 9546 A2 0C ". LDX #&0C 9548 B5 00 5. LDA &00,X 954A 20 95 06 .. JSR &0695 954D CA J DEX 954E 10 F8 .x BPL &9548 9550 68 h PLA 9551 4C 3A 05 L:. JMP &053A 9554 20 C5 06 E. JSR &06C5 9557 AA * TAX 9558 20 C5 06 E. JSR &06C5 955B 20 F4 FF t. JSR &FFF4 955E 2C E2 FE ,b~ BIT &FEE2 9561 50 FB P{ BVC &955E 9563 8E E3 FE .c~ STX &FEE3 9566 4C 36 00 L6. JMP &0036 9569 20 C5 06 E. JSR &06C5 956C AA * TAX 956D 20 C5 06 E. JSR &06C5 9570 A8 ( TAY 9571 20 C5 06 E. JSR &06C5 9574 20 F4 FF t. JSR &FFF4 9577 49 9D I. EOR #&9D 9579 F0 EB pk BEQ &9566 957B 6A j ROR A 957C 20 95 06 .. JSR &0695 957F 2C E2 FE ,b~ BIT &FEE2 9582 50 FB P{ BVC &957F 9584 8C E3 FE .c~ STY &FEE3 9587 70 D5 pU BVS &955E 9589 20 C5 06 E. JSR &06C5 958C A8 ( TAY 958D 2C E2 FE ,b~ BIT &FEE2 9590 10 FB .{ BPL &958D 9592 AE E3 FE .c~ LDX &FEE3 9595 CA J DEX 9596 30 0F 0. BMI &95A7 9598 2C E2 FE ,b~ BIT &FEE2 959B 10 FB .{ BPL &9598 959D AD E3 FE -c~ LDA &FEE3 95A0 9D 28 01 .(. STA &0128,X 95A3 CA J DEX 95A4 10 F2 .r BPL &9598 95A6 98 . TYA 95A7 A2 28 "( LDX #&28 95A9 A0 01 . LDY #&01 95AB 20 F1 FF q. JSR &FFF1 95AE 2C E2 FE ,b~ BIT &FEE2 95B1 10 FB .{ BPL &95AE 95B3 AE E3 FE .c~ LDX &FEE3 95B6 CA J DEX 95B7 30 0E 0. BMI &95C7 95B9 BC 28 01 <(. LDY &0128,X 95BC 2C E2 FE ,b~ BIT &FEE2 95BF 50 FB P{ BVC &95BC 95C1 8C E3 FE .c~ STY &FEE3 ; tube 95C4 CA J DEX 95C5 10 F2 .r BPL &95B9 95C7 4C 36 00 L6. JMP &0036 95CA A2 04 ". LDX #&04 95CC 20 C5 06 E. JSR &06C5 95CF 95 00 .. STA &00,X 95D1 CA J DEX 95D2 10 F8 .x BPL &95CC 95D4 E8 h INX 95D5 A0 00 . LDY #&00 95D7 8A . TXA 95D8 20 F1 FF q. JSR &FFF1 95DB 90 05 .. BCC &95E2 95DD A9 FF ). LDA #&FF 95DF 4C 9E 05 L.. JMP &059E 95E2 A2 00 ". LDX #&00 95E4 A9 7F ). LDA #&7F 95E6 20 95 06 .. JSR &0695 95E9 BD 00 07 =.. LDA &0700,X 95EC 20 95 06 .. JSR &0695 95EF E8 h INX 95F0 C9 0D I. CMP #&0D 95F2 D0 F5 Pu BNE &95E9 95F4 4C 36 00 L6. JMP &0036 95F7 2C E2 FE ,b~ BIT &FEE2 ; tube 95FA 50 FB P{ BVC &95F7 95FC 8D E3 FE .c~ STA &FEE3 95FF 60 ` RTS 9600 2C E6 FE ,f~ BIT &FEE6 9603 50 FB P{ BVC &9600 9605 8D E7 FE .g~ STA &FEE7 ; tube 9608 60 ` RTS 9609 A5 FF %. LDA &FF 960B 38 8 SEC 960C 6A j ROR A 960D 30 0F 0. BMI &961E 960F 48 H PHA 9610 A9 00 ). LDA #&00 9612 20 BC 06 <. JSR &06BC 9615 98 . TYA 9616 20 BC 06 <. JSR &06BC 9619 8A . TXA 961A 20 BC 06 <. JSR &06BC 961D 68 h PLA 961E 2C E0 FE ,`~ BIT &FEE0 9621 50 FB P{ BVC &961E 9623 8D E1 FE .a~ STA &FEE1 ; tube 9626 60 ` RTS 9627 2C E2 FE ,b~ BIT &FEE2 962A 10 FB .{ BPL &9627 962C AD E3 FE -c~ LDA &FEE3 ; tube 962F 60 ` RTS ============================================================================ ECONET 9630 4C 6E 9B Ln. JMP &9B6E ; osword transmit processing 9633 4C 7A 96 Lz. JMP &967A ; econet initialise 9636 4C 57 9F LW. JMP &9F57 ; Wait for econet operation to finish 9639 4C 98 96 L.. JMP &9698 ; econet initialise (partial) 963C A9 04 ). LDA #&04 963E 2C 4D FE ,M~ BIT &FE4D 9641 D0 03 P. BNE &9646 9643 A9 05 ). LDA #&05 9645 60 ` RTS 9646 8A . TXA 9647 48 H PHA 9648 98 . TYA 9649 48 H PHA 964A AD 4B FE -K~ LDA &FE4B 964D 29 E3 )c AND #&E3 964F 0D 51 0D .Q. ORA &0D51 9652 8D 4B FE .K~ STA &FE4B 9655 AD 4A FE -J~ LDA &FE4A 9658 A9 04 ). LDA #&04 965A 8D 4D FE .M~ STA &FE4D 965D 8D 4E FE .N~ STA &FE4E 9660 AC 57 0D ,W. LDY &0D57 9663 C0 86 @. CPY #&86 9665 B0 0B 0. BCS &9672 9667 AD 63 0D -c. LDA &0D63 966A 8D 65 0D .e. STA &0D65 966D 09 1C .. ORA #&1C 966F 8D 63 0D .c. STA &0D63 9672 A9 9B ). LDA #&9B 9674 48 H PHA 9675 B9 9D 9A 9.. LDA &9A9D,Y 9678 48 H PHA 9679 60 ` RTS ---------------------------------------------------------------------------- Econet init HW and page D 967A 2C 18 FE ,.~ BIT &FE18 ; intoff 967D 20 3D 9F =. JSR &9F3D 9680 A9 EA )j LDA #&EA ; tube present? 9682 A2 00 ". LDX #&00 9684 8E 66 0D .f. STX &0D66 9687 A0 FF . LDY #&FF 9689 20 F4 FF t. JSR &FFF4 968C 8E 67 0D .g. STX &0D67 968F A9 8F ). LDA #&8F ; paged rom service req 9691 A2 0C ". LDX #&0C 9693 A0 FF . LDY #&FF 9695 20 F4 FF t. JSR &FFF4 9698 A0 20 LDY #&20 ; copy econet nmi routine to 0d00 969A B9 7C 9F 9|. LDA &9F7C,Y 969D 99 FF 0C ... STA &0CFF,Y 96A0 88 . DEY 96A1 D0 F7 Pw BNE &969A 96A3 A5 F4 %t LDA &F4 96A5 8D 07 0D ... STA &0D07 ; adjust rom number 96A8 A9 80 ). LDA #&80 96AA 8D 62 0D .b. STA &0D62 96AD 8D 66 0D .f. STA &0D66 96B0 AD 18 FE -.~ LDA &FE18 ; intoff & read stn number 96B3 8D 22 0D .". STA &0D22 96B6 8C 23 0D .#. STY &0D23 ; zero 96B9 84 98 .. STY &98 96BB 2C 20 FE , ~ BIT &FE20 ; inton 96BE 60 ` RTS ============================================================================ Receive routines - default scout receive: 96BF A9 01 ). LDA #&01 ; Main econet receive NMI entry 96C1 2C A1 FE ,!~ BIT &FEA1 ; status2. AP bit. 96C4 F0 38 p8 BEQ &96FE ; nope 96C6 AD A2 FE -"~ LDA &FEA2 ; get address bit 96C9 CD 18 FE M.~ CMP &FE18 ; our station number 96CC F0 09 p. BEQ &96D7 ; yep for us! 96CE C9 FF I. CMP #&FF ; broadcast? 96D0 D0 18 P. BNE &96EA ; nope 96D2 A9 40 )@ LDA #&40 96D4 8D 4A 0D .J. STA &0D4A 96D7 A9 DC )\ LDA #&DC 96D9 4C 11 0D L.. JMP &0D11 ; 96DC 2C A1 FE ,!~ BIT &FEA1 ; NMI entry after addr read 96DF 10 1D .. BPL &96FE ; RDA - no data rec? 96E1 AD A2 FE -"~ LDA &FEA2 ; read control field 96E4 F0 0C p. BEQ &96F2 ; 96E6 49 FF I. EOR #&FF 96E8 F0 0B p. BEQ &96F5 96EA A9 A2 )" LDA #&A2 ; not for us 96EC 8D A0 FE . ~ STA &FEA0 ; ctrl1 = TxRs, Discontinue, RIE. 96EF 4C EB 99 Lk. JMP &99EB 96F2 8D 4A 0D .J. STA &0D4A 96F5 85 A2 ." STA &A2 96F7 A9 0E ). LDA #&0E 96F9 A0 97 . LDY #&97 96FB 4C 0E 0D L.. JMP &0D0E 96FE AD A1 FE -!~ LDA &FEA1 ; wasn't AP. 9701 29 81 ). AND #&81 ; RDA and AP ? 9703 F0 06 p. BEQ &970B ; nope 9705 20 3D 9F =. JSR &9F3D 9708 4C EB 99 Lk. JMP &99EB 970B 4C E8 99 Lh. JMP &99E8 970E A4 A2 $" LDY &A2 ; NMI entry after addr+control read 9710 AD A1 FE -!~ LDA &FEA1 ; Status2 9713 10 E9 .i BPL &96FE ; RDA - no data rec? 9715 AD A2 FE -"~ LDA &FEA2 ; read data 9718 99 3D 0D .=. STA &0D3D,Y ; 971B C8 H INY 971C AD A1 FE -!~ LDA &FEA1 ; S2 971F 30 02 0. BMI &9723 ; more data? 9721 D0 15 P. BNE &9738 9723 AD A2 FE -"~ LDA &FEA2 ; read data 9726 99 3D 0D .=. STA &0D3D,Y 9729 C8 H INY 972A C0 0C @. CPY #&0C 972C F0 0A p. BEQ &9738 972E 84 A2 ." STY &A2 9730 AD A1 FE -!~ LDA &FEA1 ; more data? 9733 D0 DE P^ BNE &9713 9735 4C 14 0D L.. JMP &0D14 9738 A9 00 ). LDA #&00 ; done reading? 973A 8D A0 FE . ~ STA &FEA0 ; ctrl 1 973D A9 84 ). LDA #&84 ; ctrl 2 RTS, Flag Fill idle 973F 8D A1 FE .!~ STA &FEA1 9742 A9 02 ). LDA #&02 9744 2C A1 FE ,!~ BIT &FEA1 ; status 2 - frame valid? 9747 F0 B5 p5 BEQ &96FE 9749 10 B3 .3 BPL &96FE 974B AD A2 FE -"~ LDA &FEA2 ; data received 974E 99 3D 0D .=. STA &0D3D,Y 9751 A9 44 )D LDA #&44 9753 8D A0 FE . ~ STA &FEA0 ; ctrl 1. rx reset, tie. 9756 38 8 SEC 9757 66 98 f. ROR &98 9759 AD 40 0D -@. LDA &0D40 ; Port number 975C D0 03 P. BNE &9761 975E 4C 46 9A LF. JMP &9A46 9761 2C 4A 0D ,J. BIT &0D4A 9764 50 05 P. BVC &976B 9766 A9 07 ). LDA #&07 9768 8D A1 FE .!~ STA &FEA1 ; ctrl 2, flag fill, 2 byte mode, pse. ?! 976B 2C 64 0D ,d. BIT &0D64 976E 10 3E .> BPL &97AE ---------------------------------------------------------------------------- Search open port blocks 9770 A9 C0 )@ LDA #&C0 ; Search open ports 9772 A0 00 . LDY #&00 9774 85 A6 .& STA &A6 9776 84 A7 .' STY &A7 9778 A0 00 . LDY #&00 977A B1 A6 1& LDA (&A6),Y 977C F0 2D p- BEQ &97AB 977E C9 7F I. CMP #&7F 9780 D0 1C P. BNE &979E 9782 C8 H INY 9783 B1 A6 1& LDA (&A6),Y 9785 F0 05 p. BEQ &978C 9787 CD 40 0D M@. CMP &0D40 978A D0 12 P. BNE &979E 978C C8 H INY 978D B1 A6 1& LDA (&A6),Y 978F F0 28 p( BEQ &97B9 9791 CD 3D 0D M=. CMP &0D3D 9794 D0 08 P. BNE &979E 9796 C8 H INY 9797 B1 A6 1& LDA (&A6),Y 9799 CD 3E 0D M>. CMP &0D3E 979C F0 1B p. BEQ &97B9 ; found matching port 979E A5 A7 %' LDA &A7 97A0 F0 0C p. BEQ &97AE 97A2 A5 A6 %& LDA &A6 ; Next open port block 97A4 18 . CLC 97A5 69 0C i. ADC #&0C 97A7 85 A6 .& STA &A6 97A9 90 CD .M BCC &9778 97AB 4C 35 98 L5. JMP &9835 97AE 2C 64 0D ,d. BIT &0D64 97B1 50 F8 Px BVC &97AB 97B3 A9 00 ). LDA #&00 97B5 A4 9F $. LDY &9F ; Addr of econet open port workspace, e.g. &1A00 97B7 D0 BB P; BNE &9774 97B9 A9 03 ). LDA #&03 ; Found open port matching incoming packet 97BB 8D 5C 0D .\. STA &0D5C 97BE 20 CA 9E J. JSR &9ECA ; looks at open port buffer addr + len 97C1 90 72 .r BCC &9835 97C3 2C 4A 0D ,J. BIT &0D4A 97C6 50 03 P. BVC &97CB 97C8 4C F2 99 Lr. JMP &99F2 97CB A9 44 )D LDA #&44 ; Ctrl1 - Rx reset + TIE (trans int enable) 97CD 8D A0 FE . ~ STA &FEA0 97D0 A9 A7 )' LDA #&A7 ; Ctrl2 - Rx reset + RTS + 2 byte trans + ... 97D2 8D A1 FE .!~ STA &FEA1 97D5 A9 DC )\ LDA #&DC ; nmi for after ack trans - read data packet NMI 97D7 A0 97 . LDY #&97 97D9 4C 07 99 L.. JMP &9907 ; ACK transmit 97DC A9 82 ). LDA #&82 ; NMI: Transmit of ACK complete 97DE 8D A0 FE . ~ STA &FEA0 ; Reset, rie enable 97E1 A9 E6 )f LDA #&E6 ; Wait for data packet 97E3 4C 11 0D L.. JMP &0D11 ---------------------------------------------------------------------------- Receive data packet 97E6 A9 01 ). LDA #&01 ; NMI: Read data, AP? 97E8 2C A1 FE ,!~ BIT &FEA1 97EB F0 48 pH BEQ &9835 97ED AD A2 FE -"~ LDA &FEA2 ; read station 97F0 CD 18 FE M.~ CMP &FE18 97F3 D0 40 P@ BNE &9835 97F5 A9 FA )z LDA #&FA 97F7 4C 11 0D L.. JMP &0D11 97FA 2C A1 FE ,!~ BIT &FEA1 97FD 10 36 .6 BPL &9835 97FF AD A2 FE -"~ LDA &FEA2 ; read control byte 9802 D0 31 P1 BNE &9835 9804 A9 10 ). LDA #&10 9806 A0 98 . LDY #&98 9808 2C A0 FE , ~ BIT &FEA0 980B 30 03 0. BMI &9810 ; IRQ 980D 4C 0E 0D L.. JMP &0D0E 9810 2C A1 FE ,!~ BIT &FEA1 9813 10 20 . BPL &9835 9815 AD A2 FE -"~ LDA &FEA2 ; read 9818 AD A2 FE -"~ LDA &FEA2 ; read byte, src addr 981B A9 02 ). LDA #&02 ; read byte, src addr 981D 2C 4A 0D ,J. BIT &0D4A 9820 D0 0C P. BNE &982E 9822 A9 43 )C LDA #&43 ; non-tube 9824 A0 98 . LDY #&98 9826 2C A0 FE , ~ BIT &FEA0 9829 30 18 0. BMI &9843 982B 4C 0E 0D L.. JMP &0D0E 982E A9 A0 ) LDA #&A0 ; tube 9830 A0 98 . LDY #&98 9832 4C 0E 0D L.. JMP &0D0E 9835 AD 4A 0D -J. LDA &0D4A ; Did not find open port / failure cleanup rtn 9838 10 03 .. BPL &983D 983A 4C AC 9E L,. JMP &9EAC 983D 20 3D 9F =. JSR &9F3D ; Reset econet 9840 4C DB 99 L[. JMP &99DB ; Reset to default state 9843 A4 A2 $" LDY &A2 ; nmi: read data 9845 AD A1 FE -!~ LDA &FEA1 9848 10 2D .- BPL &9877 984A AD A2 FE -"~ LDA &FEA2 ; read byte 984D 91 A4 .$ STA (&A4),Y ; store in open port buffer 984F C8 H INY 9850 D0 06 P. BNE &9858 9852 E6 A5 f% INC &A5 9854 C6 A3 F# DEC &A3 9856 F0 DD p] BEQ &9835 9858 AD A1 FE -!~ LDA &FEA1 985B 30 02 0. BMI &985F 985D D0 18 P. BNE &9877 985F AD A2 FE -"~ LDA &FEA2 ; read byte 9862 91 A4 .$ STA (&A4),Y ; store 9864 C8 H INY 9865 84 A2 ." STY &A2 9867 D0 06 P. BNE &986F 9869 E6 A5 f% INC &A5 986B C6 A3 F# DEC &A3 986D F0 08 p. BEQ &9877 986F AD A1 FE -!~ LDA &FEA1 9872 D0 D4 PT BNE &9848 9874 4C 14 0D L.. JMP &0D14 9877 A9 84 ). LDA #&84 ; done 9879 8D A1 FE .!~ STA &FEA1 987C A9 00 ). LDA #&00 987E 8D A0 FE . ~ STA &FEA0 9881 84 A2 ." STY &A2 9883 A9 02 ). LDA #&02 ; FV? 9885 2C A1 FE ,!~ BIT &FEA1 9888 F0 AB p+ BEQ &9835 ; no - error 988A 10 11 .. BPL &989D 988C A5 A3 %# LDA &A3 988E F0 A5 p% BEQ &9835 ; wrong num of bytes - error 9890 AD A2 FE -"~ LDA &FEA2 ; read last byte 9893 A4 A2 $" LDY &A2 9895 91 A4 .$ STA (&A4),Y 9897 E6 A2 f" INC &A2 9899 D0 02 P. BNE &989D 989B E6 A5 f% INC &A5 989D 4C EE 98 Ln. JMP &98EE 98A0 AD A1 FE -!~ LDA &FEA1 ; nmi: receive - for tube 98A3 10 1E .. BPL &98C3 98A5 AD A2 FE -"~ LDA &FEA2 ; read data 98A8 20 37 9A 7. JSR &9A37 98AB F0 E1 pa BEQ &988E 98AD 8D E5 FE .e~ STA &FEE5 ; Tube 98B0 AD A2 FE -"~ LDA &FEA2 98B3 8D E5 FE .e~ STA &FEE5 ; tube 98B6 20 37 9A 7. JSR &9A37 98B9 F0 08 p. BEQ &98C3 98BB AD A1 FE -!~ LDA &FEA1 98BE D0 E3 Pc BNE &98A3 98C0 4C 14 0D L.. JMP &0D14 98C3 A9 00 ). LDA #&00 98C5 8D A0 FE . ~ STA &FEA0 98C8 A9 84 ). LDA #&84 98CA 8D A1 FE .!~ STA &FEA1 98CD A9 02 ). LDA #&02 98CF 2C A1 FE ,!~ BIT &FEA1 98D2 F0 BA p: BEQ &988E 98D4 10 18 .. BPL &98EE 98D6 A5 A2 %" LDA &A2 98D8 05 A3 .# ORA &A3 98DA 05 A4 .$ ORA &A4 98DC 05 A5 .% ORA &A5 98DE F0 AE p. BEQ &988E 98E0 AD A2 FE -"~ LDA &FEA2 98E3 8D 5D 0D .]. STA &0D5D 98E6 A9 20 ) LDA #&20 ; tube involved 98E8 0D 4A 0D .J. ORA &0D4A 98EB 8D 4A 0D .J. STA &0D4A 98EE AD 4A 0D -J. LDA &0D4A ; Received data packet 98F1 10 06 .. BPL &98F9 ; no error? 98F3 20 4E 99 N. JSR &994E 98F6 4C A8 9E L(. JMP &9EA8 ; Put 0 into first byte of control block (did not rec?) 98F9 A9 44 )D LDA #&44 98FB 8D A0 FE . ~ STA &FEA0 ; rx reset, tie enable 98FE A9 A7 )' LDA #&A7 9900 8D A1 FE .!~ STA &FEA1 ; rx reset, RTS 9903 A9 95 ). LDA #&95 ; addr of osword update nmi 9905 A0 99 . LDY #&99 ---------------------------------------------------------------------------- ACK transmit 9907 8D 4B 0D .K. STA &0D4B ; Start of ACK transmit routine 990A 8C 4C 0D .L. STY &0D4C 990D AD 3D 0D -=. LDA &0D3D ; Station no. received 9910 2C A0 FE , ~ BIT &FEA0 ; S1 9913 50 36 P6 BVC &994B ; TDRA (trans data reg avail) 9915 8D A2 FE ."~ STA &FEA2 ; Write station no. 9918 AD 3E 0D ->. LDA &0D3E ; Control byte (0) 991B 8D A2 FE ."~ STA &FEA2 ; Write it 991E A9 25 )% LDA #&25 9920 A0 99 . LDY #&99 9922 4C 0E 0D L.. JMP &0D0E 9925 AD 18 FE -.~ LDA &FE18 ; Our station no. 9928 2C A0 FE , ~ BIT &FEA0 992B 50 1E P. BVC &994B 992D 8D A2 FE ."~ STA &FEA2 ; Write it 9930 A9 00 ). LDA #&00 9932 8D A2 FE ."~ STA &FEA2 ; Control byte (0) 9935 AD 4A 0D -J. LDA &0D4A 9938 30 0E 0. BMI &9948 993A A9 3F )? LDA #&3F ; End of packet 993C 8D A1 FE .!~ STA &FEA1 993F AD 4B 0D -K. LDA &0D4B 9942 AC 4C 0D ,L. LDY &0D4C 9945 4C 0E 0D L.. JMP &0D0E 9948 4C B3 9D L3. JMP &9DB3 994B 4C 35 98 L5. JMP &9835 ---------------------------------------------------------------------------- Handle received data 994E A9 02 ). LDA #&02 ; handle tube 9950 2C 4A 0D ,J. BIT &0D4A ; tube? 9953 F0 3F p? BEQ &9994 ; no 9955 18 . CLC 9956 08 . PHP 9957 A0 08 . LDY #&08 9959 B1 A6 1& LDA (&A6),Y 995B 28 ( PLP 995C 79 9A 00 y.. ADC &009A,Y 995F 91 A6 .& STA (&A6),Y 9961 C8 H INY 9962 08 . PHP 9963 C0 0C @. CPY #&0C 9965 90 F2 .r BCC &9959 9967 28 ( PLP 9968 A9 20 ) LDA #&20 996A 2C 4A 0D ,J. BIT &0D4A 996D F0 23 p# BEQ &9992 996F 8A . TXA 9970 48 H PHA 9971 A9 08 ). LDA #&08 9973 18 . CLC 9974 65 A6 e& ADC &A6 9976 AA * TAX 9977 A4 A7 $' LDY &A7 9979 A9 01 ). LDA #&01 997B 20 06 04 .. JSR &0406 997E AD 5D 0D -]. LDA &0D5D 9981 8D E5 FE .e~ STA &FEE5 ; tube 9984 38 8 SEC 9985 A0 08 . LDY #&08 9987 A9 00 ). LDA #&00 9989 71 A6 q& ADC (&A6),Y 998B 91 A6 .& STA (&A6),Y 998D C8 H INY 998E B0 F7 0w BCS &9987 9990 68 h PLA 9991 AA * TAX 9992 A9 FF ). LDA #&FF 9994 60 ` RTS 9995 AD 40 0D -@. LDA &0D40 ; NMI: update osword control block 9998 D0 0A P. BNE &99A4 ; port num 999A AC 3F 0D ,?. LDY &0D3F 999D C0 82 @. CPY #&82 999F F0 03 p. BEQ &99A4 99A1 4C E7 9A Lg. JMP &9AE7 99A4 20 4E 99 N. JSR &994E ; tube stuff 99A7 D0 12 P. BNE &99BB 99A9 A5 A2 %" LDA &A2 99AB 18 . CLC 99AC 65 A4 e$ ADC &A4 99AE 90 02 .. BCC &99B2 99B0 E6 A5 f% INC &A5 99B2 A0 08 . LDY #&08 99B4 91 A6 .& STA (&A6),Y 99B6 C8 H INY 99B7 A5 A5 %% LDA &A5 99B9 91 A6 .& STA (&A6),Y 99BB AD 40 0D -@. LDA &0D40 99BE F0 1B p. BEQ &99DB ; Reset to default state 99C0 AD 3E 0D ->. LDA &0D3E 99C3 A0 03 . LDY #&03 99C5 91 A6 .& STA (&A6),Y 99C7 88 . DEY 99C8 AD 3D 0D -=. LDA &0D3D 99CB 91 A6 .& STA (&A6),Y 99CD 88 . DEY 99CE AD 40 0D -@. LDA &0D40 99D1 91 A6 .& STA (&A6),Y 99D3 88 . DEY 99D4 AD 3F 0D -?. LDA &0D3F 99D7 09 80 .. ORA #&80 ; put 80 into osword control byte 99D9 91 A6 .& STA (&A6),Y ---------------------------------------------------------------------------- Clean up and reset to default state 99DB A9 02 ). LDA #&02 ; Some sort of end / cleanup routine 99DD 2D 67 0D -g. AND &0D67 99E0 2C 4A 0D ,J. BIT &0D4A 99E3 F0 03 p. BEQ &99E8 99E5 20 2B 9A +. JSR &9A2B 99E8 20 4C 9F L. JSR &9F4C ; come here in nmi if not AP/RDA - set receive mode 99EB A9 BF )? LDA #&BF ; 96bf = default receive nmi 99ED A0 96 . LDY #&96 ; store YA at ODOC/D, i.e. adr to jump to on next irq 99EF 4C 0E 0D L.. JMP &0D0E ; return from nmi 99F2 8A . TXA ; error handling routine? 99F3 48 H PHA 99F4 A2 04 ". LDX #&04 99F6 A9 02 ). LDA #&02 99F8 2C 4A 0D ,J. BIT &0D4A 99FB D0 1C P. BNE &9A19 99FD A4 A2 $" LDY &A2 99FF BD 3D 0D ==. LDA &0D3D,X 9A02 91 A4 .$ STA (&A4),Y 9A04 C8 H INY 9A05 D0 06 P. BNE &9A0D 9A07 E6 A5 f% INC &A5 9A09 C6 A3 F# DEC &A3 9A0B F0 61 pa BEQ &9A6E 9A0D E8 h INX 9A0E 84 A2 ." STY &A2 9A10 E0 0C `. CPX #&0C 9A12 D0 EB Pk BNE &99FF 9A14 68 h PLA 9A15 AA * TAX 9A16 4C A4 99 L$. JMP &99A4 9A19 BD 3D 0D ==. LDA &0D3D,X 9A1C 8D E5 FE .e~ STA &FEE5 ; tube 9A1F 20 37 9A 7. JSR &9A37 9A22 F0 4C pL BEQ &9A70 9A24 E8 h INX 9A25 E0 0C `. CPX #&0C 9A27 D0 F0 Pp BNE &9A19 9A29 F0 E9 pi BEQ &9A14 9A2B 24 98 $. BIT &98 9A2D 30 05 0. BMI &9A34 9A2F A9 82 ). LDA #&82 9A31 20 06 04 .. JSR &0406 9A34 46 98 F. LSR &98 9A36 60 ` RTS 9A37 E6 A2 f" INC &A2 9A39 D0 0A P. BNE &9A45 9A3B E6 A3 f# INC &A3 9A3D D0 06 P. BNE &9A45 9A3F E6 A4 f$ INC &A4 9A41 D0 02 P. BNE &9A45 9A43 E6 A5 f% INC &A5 9A45 60 ` RTS ---------------------------------------------------------------------------- control byte 81-89 handlers 9A46 AC 3F 0D ,?. LDY &0D3F ; Rec port num of 0 (broadcast?) 9A49 C0 81 @. CPY #&81 9A4B 90 29 .) BCC &9A76 9A4D C0 89 @. CPY #&89 9A4F B0 25 0% BCS &9A76 9A51 C0 87 @. CPY #&87 9A53 B0 0E 0. BCS &9A63 9A55 98 . TYA 9A56 38 8 SEC 9A57 E9 81 i. SBC #&81 9A59 A8 ( TAY 9A5A AD 63 0D -c. LDA &0D63 9A5D 6A j ROR A 9A5E 88 . DEY 9A5F 10 FC .| BPL &9A5D 9A61 B0 85 0. BCS &99E8 9A63 AC 3F 0D ,?. LDY &0D3F 9A66 A9 9A ). LDA #&9A 9A68 48 H PHA 9A69 B9 F8 99 9x. LDA &99F8,Y (9A78) 9A6C 48 H PHA 9A6D 60 ` RTS 9A6E E6 A2 f" INC &A2 9A70 E0 0B `. CPX #&0B 9A72 F0 A0 p BEQ &9A14 9A74 68 h PLA 9A75 AA * TAX 9A76 4C 35 98 L5. JMP &9835 9A79 BB ; ??? 9A7A 9E . ??? 9A7B 80 . ??? 9A7C 80 . ??? 9A7D 80 . ??? 9A7E D5 D5 UU CMP &D5,X 9A80 A9 9A81 A9 00 LDA #&00 ; Control byte &83-85 handler 9A83 85 A4 .$ STA &A4 9A85 A9 82 ). LDA #&82 9A87 85 A2 ." STA &A2 9A89 A9 01 ). LDA #&01 9A8B 85 A3 .# STA &A3 9A8D A5 9D %. LDA &9D 9A8F 85 A5 .% STA &A5 9A91 A0 03 . LDY #&03 9A93 B9 41 0D 9A. LDA &0D41,Y 9A96 99 58 0D .X. STA &0D58,Y 9A99 88 . DEY 9A9A 10 F7 .w BPL &9A93 9A9C 4C CB 97 LK. JMP &97CB 9A9F A9 3D )= LDA #&3D ; Control byte &82 handler 9AA1 85 A6 .& STA &A6 9AA3 A9 0D ). LDA #&0D 9AA5 85 A7 .' STA &A7 9AA7 4C B9 97 L9. JMP &97B9 9AAA A9 01 ). LDA #&01 ; Control byte &88 handler 9AAC 85 A3 .# STA &A3 9AAE A9 FC )| LDA #&FC 9AB0 85 A2 ." STA &A2 9AB2 A9 25 )% LDA #&25 9AB4 85 A4 .$ STA &A4 9AB6 A9 7F ). LDA #&7F 9AB8 85 A5 .% STA &A5 9ABA D0 12 P. BNE &9ACE 9ABC A9 3D )= LDA #&3D ; Control byte &81 handler 9ABE 85 A6 .& STA &A6 9AC0 A9 0D ). LDA #&0D 9AC2 85 A7 .' STA &A7 9AC4 A9 02 ). LDA #&02 9AC6 8D 5C 0D .\. STA &0D5C 9AC9 20 CA 9E J. JSR &9ECA 9ACC 90 4F .O BCC &9B1D 9ACE AD 4A 0D -J. LDA &0D4A 9AD1 09 80 .. ORA #&80 9AD3 8D 4A 0D .J. STA &0D4A 9AD6 A9 44 )D LDA #&44 ; Control byte &86-87 handler 9AD8 8D A0 FE . ~ STA &FEA0 ; Reset rx 9ADB A9 A7 )' LDA #&A7 ; Reset rx 9ADD 8D A1 FE .!~ STA &FEA1 9AE0 A9 FD )} LDA #&FD ; nmi for after ack trans 9AE2 A0 9A . LDY #&9A 9AE4 4C 07 99 L.. JMP &9907 ; ACK transmit 9AE7 A5 A2 %" LDA &A2 9AE9 18 . CLC 9AEA 69 80 i. ADC #&80 9AEC A0 7F . LDY #&7F 9AEE 91 9C .. STA (&9C),Y 9AF0 A0 80 . LDY #&80 9AF2 AD 3D 0D -=. LDA &0D3D 9AF5 91 9C .. STA (&9C),Y 9AF7 C8 H INY 9AF8 AD 3E 0D ->. LDA &0D3E 9AFB 91 9C .. STA (&9C),Y 9AFD AD 3F 0D -?. LDA &0D3F ; NMI: 9B00 8D 57 0D .W. STA &0D57 9B03 A9 84 ). LDA #&84 9B05 8D 4E FE .N~ STA &FE4E 9B08 AD 4B FE -K~ LDA &FE4B 9B0B 29 1C ). AND #&1C 9B0D 8D 51 0D .Q. STA &0D51 9B10 AD 4B FE -K~ LDA &FE4B 9B13 29 E3 )c AND #&E3 9B15 09 08 .. ORA #&08 9B17 8D 4B FE .K~ STA &FE4B 9B1A 2C 4A FE ,J~ BIT &FE4A 9B1D 4C E8 99 Lh. JMP &99E8 9B20 24 2D $- BIT &2D 9B22 3B ; ??? 9B23 47 G ??? 9B24 5E A9 9B ^). LSR &9BA9,X 9B27 48 H PHA 9B28 A9 66 )f LDA #&66 9B2A 48 H PHA 9B2B 6C 58 0D lX. JMP (&0D58) 9B2E A0 08 . LDY #&08 9B30 AE 58 0D .X. LDX &0D58 9B33 AD 59 0D -Y. LDA &0D59 9B36 20 BF FF ?. JSR &FFBF 9B39 4C 67 9B Lg. JMP &9B67 9B3C AE 58 0D .X. LDX &0D58 9B3F AC 59 0D ,Y. LDY &0D59 9B42 20 00 80 .. JSR &8000 9B45 4C 67 9B Lg. JMP &9B67 9B48 A9 04 ). LDA #&04 9B4A 2C 64 0D ,d. BIT &0D64 9B4D D0 18 P. BNE &9B67 9B4F 0D 64 0D .d. ORA &0D64 9B52 8D 64 0D .d. STA &0D64 9B55 A9 04 ). LDA #&04 9B57 58 X CLI 9B58 2C 64 0D ,d. BIT &0D64 9B5B D0 FB P{ BNE &9B58 9B5D F0 08 p. BEQ &9B67 9B5F AD 64 0D -d. LDA &0D64 9B62 29 FB ){ AND #&FB 9B64 8D 64 0D .d. STA &0D64 9B67 68 h PLA 9B68 A8 ( TAY 9B69 68 h PLA 9B6A AA * TAX 9B6B A9 00 ). LDA #&00 9B6D 60 ` RTS ============================================================================ Transmit routines - osword transmit routine: 9B6E 8A . TXA ; osword transmit processing 9B6F 48 H PHA 9B70 A0 02 . LDY #&02 ; Create scout packet 9B72 B1 A0 1 LDA (&A0),Y ; osword control block - dest addr 9B74 8D 20 0D . . STA &0D20 9B77 C8 H INY 9B78 B1 A0 1 LDA (&A0),Y 9B7A 8D 21 0D .!. STA &0D21 9B7D A0 00 . LDY #&00 9B7F B1 A0 1 LDA (&A0),Y ; control byte (&80) 9B81 30 03 0. BMI &9B86 9B83 4C 11 9C L.. JMP &9C11 9B86 8D 24 0D .$. STA &0D24 9B89 AA * TAX 9B8A C8 H INY 9B8B B1 A0 1 LDA (&A0),Y 9B8D 8D 25 0D .%. STA &0D25 ; dest port num 9B90 D0 33 P3 BNE &9BC5 9B92 E0 83 `. CPX #&83 9B94 B0 1B 0. BCS &9BB1 9B96 38 8 SEC 9B97 08 . PHP 9B98 A0 08 . LDY #&08 9B9A B1 A0 1 LDA (&A0),Y 9B9C 88 . DEY 9B9D 88 . DEY 9B9E 88 . DEY 9B9F 88 . DEY 9BA0 28 ( PLP 9BA1 F1 A0 q SBC (&A0),Y 9BA3 99 26 0D .&. STA &0D26,Y 9BA6 C8 H INY 9BA7 C8 H INY 9BA8 C8 H INY 9BA9 C8 H INY 9BAA C8 H INY 9BAB 08 . PHP 9BAC C0 0C @. CPY #&0C 9BAE 90 EA .j BCC &9B9A 9BB0 28 ( PLP 9BB1 E0 81 `. CPX #&81 9BB3 90 5C .\ BCC &9C11 9BB5 E0 89 `. CPX #&89 9BB7 B0 58 0X BCS &9C11 9BB9 A0 0C . LDY #&0C 9BBB B1 A0 1 LDA (&A0),Y 9BBD 99 1A 0D ... STA &0D1A,Y 9BC0 C8 H INY 9BC1 C0 10 @. CPY #&10 9BC3 90 F6 .v BCC &9BBB 9BC5 A9 20 ) LDA #&20 9BC7 2C A1 FE ,!~ BIT &FEA1 ; check for ~dcd being high (no clock) on status2 9BCA D0 55 PU BNE &9C21 ; if set jump out - error &43 9BCC A9 FD )} LDA #&FD 9BCE 48 H PHA ; store FD on stack 9BCF A9 06 ). LDA #&06 ; Bytes to write (6) 9BD1 8D 50 0D .P. STA &0D50 9BD4 A9 00 ). LDA #&00 9BD6 8D 4F 0D .O. STA &0D4F 9BD9 48 H PHA ; store 00 on stack 9BDA 48 H PHA ; and again 9BDB A0 E7 g LDY #&E7 9BDD A9 04 ). LDA #&04 ; <-- loop back to here 9BDF 08 . PHP ; save flags 9BE0 78 x SEI 9BE1 2C 18 FE ,.~ BIT &FE18 ; int off 9BE4 2C 18 FE ,.~ BIT &FE18 ; int off 9BE7 2C A1 FE ,!~ BIT &FEA1 ; status2 04=RxIdle 9BEA F0 0F p. BEQ &9BFB ; skip cts test if not idle 04 & FEA0 = 0 9BEC AD A0 FE - ~ LDA &FEA0 ; read status0 9BEF A9 67 )g LDA #&67 9BF1 8D A1 FE .!~ STA &FEA1 ; clear tx status, clear rx status, Flag idle, 2 byte mode, PSE. 9BF4 A9 10 ). LDA #&10 ; status1 check for ~cts (not clear to send) 9BF6 2C A0 FE , ~ BIT &FEA0 ; test 10 & FEA0 9BF9 D0 34 P4 BNE &9C2F ; jump out if ~cts set. Can send packet 9BFB 2C 20 FE , ~ BIT &FE20 ; here if idle. inton 9BFE 28 ( PLP ; pull flags 9BFF BA : TSX 9C00 FE 01 01 ~.. INC &0101,X ; increment that 00 pushed to stack, loop until wrap around 9C03 D0 D8 PX BNE &9BDD 9C05 FE 02 01 ~.. INC &0102,X ; increment other 00 on stack, loop until wrap around. 9C08 D0 D3 PS BNE &9BDD 9C0A FE 03 01 ~.. INC &0103,X ; increment the FD pushed to stack 9C0D D0 CE PN BNE &9BDD ; loop unti lwrap around 9C0F F0 04 p. BEQ &9C15 9C11 A9 44 )D LDA #&44 ; Error &44 = bad control block 9C13 D0 0E P. BNE &9C23 9C15 A9 07 ). LDA #&07 ; jump to here after very long loop 9C17 8D A1 FE .!~ STA &FEA1 9C1A 68 h PLA 9C1B 68 h PLA 9C1C 68 h PLA 9C1D A9 40 )@ LDA #&40 ; Error &40 = network jammed 9C1F D0 02 P. BNE &9C23 9C21 A9 43 )C LDA #&43 ; ~dcd was high, Error &43 = no clock 9C23 A0 00 . LDY #&00 9C25 91 A0 . STA (&A0),Y 9C27 A9 80 ). LDA #&80 9C29 8D 62 0D .b. STA &0D62 9C2C 68 h PLA 9C2D AA * TAX 9C2E 60 ` RTS ---------------------------------------------------------------------------- Send scout packet 9C2F 8C A1 FE .!~ STY &FEA1 ; jump to here if ~cts high - can send data 9C32 A2 44 "D LDX #&44 9C34 8E A0 FE . ~ STX &FEA0 ; ctrl1, rx reset, TIE. 9C37 A2 CC "L LDX #&CC 9C39 A0 9C . LDY #&9C 9C3B 8E 0C 0D ... STX &0D0C ; go to 9ccc on next nmi 9C3E 8C 0D 0D ... STY &0D0D 9C41 38 8 SEC 9C42 66 98 f. ROR &98 9C44 2C 20 FE , ~ BIT &FE20 ; inton - packet is transmitted under interrupt 9C47 AD 25 0D -%. LDA &0D25 ; port num 9C4A D0 42 PB BNE &9C8E 9C4C AC 24 0D ,$. LDY &0D24 ; control byte (&80) 9C4F B9 41 9E 9A. LDA &9E41,Y ; for &80 its 0A 9C52 8D 4A 0D .J. STA &0D4A 9C55 B9 39 9E 99. LDA &9E39,Y ; for &80 its 6 (bytes to write) 9C58 8D 50 0D .P. STA &0D50 9C5B A9 9C ). LDA #&9C 9C5D 48 H PHA 9C5E B9 E2 9B 9b. LDA &9BE2,Y (9C62) 9C61 48 H PHA 9C62 60 ` RTS 9C63 6E 72 B4 nr4 ROR &B472 9C66 B4 B4 44 LDY &B4,X 9C68 C4 C4 DD CPY &C4 9C6A 6A j ROR A 9C6B A9 03 ). LDA #&03 ; control byte &88 handler 9C6D D0 48 PH BNE &9CB7 9C6F A9 03 ). LDA #&03 ; control byte &81 handler 9C71 D0 02 P. BNE &9C75 9C73 A9 02 ). LDA #&02 ; control byte &82 handler 9C75 8D 5C 0D .\. STA &0D5C 9C78 18 . CLC 9C79 08 . PHP 9C7A A0 0C . LDY #&0C 9C7C B9 1E 0D 9.. LDA &0D1E,Y 9C7F 28 ( PLP 9C80 71 A0 q ADC (&A0),Y 9C82 99 1E 0D ... STA &0D1E,Y 9C85 C8 H INY 9C86 08 . PHP 9C87 C0 10 @. CPY #&10 9C89 90 F1 .q BCC &9C7C 9C8B 28 ( PLP 9C8C D0 2C P, BNE &9CBA ---------------------------------------------------------------------------- Prepare to send data 9C8E AD 20 0D - . LDA &0D20 ; While ccout being sent under nmi 9C91 2D 21 0D -!. AND &0D21 ; Dest control byte (0) 9C94 C9 FF I. CMP #&FF 9C96 D0 18 P. BNE &9CB0 9C98 A9 0E ). LDA #&0E 9C9A 8D 50 0D .P. STA &0D50 9C9D A9 40 )@ LDA #&40 9C9F 8D 4A 0D .J. STA &0D4A 9CA2 A0 04 . LDY #&04 9CA4 B1 A0 1 LDA (&A0),Y 9CA6 99 22 0D .". STA &0D22,Y 9CA9 C8 H INY 9CAA C0 0C @. CPY #&0C 9CAC 90 F6 .v BCC &9CA4 9CAE B0 15 0. BCS &9CC5 9CB0 A9 00 ). LDA #&00 ; Get ready to send data 9CB2 8D 4A 0D .J. STA &0D4A 9CB5 A9 02 ). LDA #&02 ; control byte &83-85 handler 9CB7 8D 5C 0D .\. STA &0D5C 9CBA A5 A0 % LDA &A0 ; Open port block - transmit (&196F) 9CBC 85 A6 .& STA &A6 9CBE A5 A1 %! LDA &A1 9CC0 85 A7 .' STA &A7 9CC2 20 CA 9E J. JSR &9ECA ; Calc len of data to send block 9CC5 28 ( PLP ; control byte &86-87 handler 9CC6 68 h PLA 9CC7 68 h PLA 9CC8 68 h PLA 9CC9 68 h PLA 9CCA AA * TAX 9CCB 60 ` RTS ---------------------------------------------------------------------------- Scout packet transmit NMI 9CCC AC 4F 0D ,O. LDY &0D4F ; another nmi routine - looks like part of a tx data loop 9CCF 2C A0 FE , ~ BIT &FEA0 9CD2 50 22 P" BVC &9CF6 ; TDRA 9CD4 B9 20 0D 9 . LDA &0D20,Y 9CD7 8D A2 FE ."~ STA &FEA2 ; tx data reg 9CDA C8 H INY 9CDB B9 20 0D 9 . LDA &0D20,Y 9CDE C8 H INY 9CDF 8C 4F 0D .O. STY &0D4F 9CE2 8D A2 FE ."~ STA &FEA2 ; tx data reg 9CE5 CC 50 0D LP. CPY &0D50 9CE8 B0 1E 0. BCS &9D08 9CEA 2C A0 FE , ~ BIT &FEA0 9CED 30 E3 0c BMI &9CD2 9CEF 4C 14 0D L.. JMP &0D14 9CF2 A9 42 )B LDA #&42 ; Error &42 = receiving station not listening 9CF4 D0 07 P. BNE &9CFD 9CF6 A9 67 )g LDA #&67 9CF8 8D A1 FE .!~ STA &FEA1 9CFB A9 41 )A LDA #&41 ; Error &41 = packet damaged or rec buff too small 9CFD AC 18 FE ,.~ LDY &FE18 9D00 48 H PHA 9D01 68 h PLA 9D02 C8 H INY 9D03 D0 FB P{ BNE &9D00 9D05 4C AE 9E L.. JMP &9EAE ; Insert error A into osword block 9D08 A9 3F )? LDA #&3F ; packet has been written 9D0A 8D A1 FE .!~ STA &FEA1 ; clr rxst, txlast, tdra flag fill, 2 byte mode, pse. 9D0D A9 14 ). LDA #&14 ; set adr for next nmi to 9d14 9D0F A0 9D . LDY #&9D 9D11 4C 0E 0D L.. JMP &0D0E 9D14 A9 82 ). LDA #&82 ; nmi: prepare for rec of ACK 9D16 8D A0 FE . ~ STA &FEA0 ; tx reset, rie 9D19 2C 4A 0D ,J. BIT &0D4A 9D1C 50 03 P. BVC &9D21 9D1E 4C A8 9E L(. JMP &9EA8 ; Put 0 into first byte of control block (did not trans?) 9D21 A9 01 ). LDA #&01 9D23 2C 4A 0D ,J. BIT &0D4A 9D26 F0 03 p. BEQ &9D2B 9D28 4C 50 9E LP. JMP &9E50 ; Failure - rec ACK and reset 9D2B A9 30 )0 LDA #&30 ; set adr to 9d30 for next nmi 9D2D 4C 11 0D L.. JMP &0D11 ---------------------------------------------------------------------------- Receive ACK after successful scout transmit 9D30 A9 01 ). LDA #&01 ; nmi: receive ACK 9D32 2C A1 FE ,!~ BIT &FEA1 ; test AP 9D35 F0 BB p; BEQ &9CF2 ; no? goto error &42 - not listening 9D37 AD A2 FE -"~ LDA &FEA2 ; get station no 9D3A CD 18 FE M.~ CMP &FE18 ; compare station no. 9D3D D0 19 P. BNE &9D58 ; not us? jump 9D3F A9 44 )D LDA #&44 9D41 4C 11 0D L.. JMP &0D11 9D44 2C A1 FE ,!~ BIT &FEA1 ; NMI: RDA? 9D47 10 0F .. BPL &9D58 9D49 AD A2 FE -"~ LDA &FEA2 ; read network num 9D4C D0 0A P. BNE &9D58 9D4E A9 5B )[ LDA #&5B 9D50 2C A0 FE , ~ BIT &FEA0 9D53 30 06 0. BMI &9D5B 9D55 4C 11 0D L.. JMP &0D11 9D58 4C AC 9E L,. JMP &9EAC ; error 9D5B 2C A1 FE ,!~ BIT &FEA1 ; NMI 9D5E 10 F8 .x BPL &9D58 9D60 AD A2 FE -"~ LDA &FEA2 ; read src addr 9D63 CD 20 0D M . CMP &0D20 ; match one we sent packet to? 9D66 D0 F0 Pp BNE &9D58 9D68 AD A2 FE -"~ LDA &FEA2 ; read src network 9D6B CD 21 0D M!. CMP &0D21 ; cmp 9D6E D0 E8 Ph BNE &9D58 9D70 A9 02 ). LDA #&02 ; FV? 9D72 2C A1 FE ,!~ BIT &FEA1 9D75 F0 E1 pa BEQ &9D58 ; error 9D77 A9 A7 )' LDA #&A7 ; Frame was valid, prepare for transmit 9D79 8D A1 FE .!~ STA &FEA1 9D7C A9 44 )D LDA #&44 ; TIE enable, Rx reset, Flag Fill mode 9D7E 8D A0 FE . ~ STA &FEA0 9D81 A9 50 )P LDA #&50 ; Default nmi for failure? 9D83 A0 9E . LDY #&9E 9D85 8D 4B 0D .K. STA &0D4B 9D88 8C 4C 0D .L. STY &0D4C ---------------------------------------------------------------------------- Transmit data packet (follows on from above) 9D8B AD 20 0D - . LDA &0D20 ; Dest addr 9D8E 2C A0 FE , ~ BIT &FEA0 9D91 50 3A P: BVC &9DCD ; TRDA avail? 9D93 8D A2 FE ."~ STA &FEA2 ; write dest addr 9D96 AD 21 0D -!. LDA &0D21 9D99 8D A2 FE ."~ STA &FEA2 ; and dest networt 9D9C A9 A3 )# LDA #&A3 9D9E A0 9D . LDY #&9D 9DA0 4C 0E 0D L.. JMP &0D0E 9DA3 AD 18 FE -.~ LDA &FE18 ; NMI 9DA6 2C A0 FE , ~ BIT &FEA0 9DA9 50 22 P" BVC &9DCD 9DAB 8D A2 FE ."~ STA &FEA2 ; write src station no. 9DAE A9 00 ). LDA #&00 9DB0 8D A2 FE ."~ STA &FEA2 ; and network 9DB3 A9 02 ). LDA #&02 9DB5 2C 4A 0D ,J. BIT &0D4A ; Tube? 9DB8 D0 07 P. BNE &9DC1 9DBA A9 C8 )H LDA #&C8 9DBC A0 9D . LDY #&9D 9DBE 4C 0E 0D L.. JMP &0D0E 9DC1 A9 0F ). LDA #&0F 9DC3 A0 9E . LDY #&9E 9DC5 4C 0E 0D L.. JMP &0D0E 9DC8 A4 A2 $" LDY &A2 ; nmi: write data block (non-tube) 9DCA 2C A0 FE , ~ BIT &FEA0 9DCD 50 79 Py BVC &9E48 9DCF B1 A4 1$ LDA (&A4),Y ; get next data byte 9DD1 8D A2 FE ."~ STA &FEA2 ; write it 9DD4 C8 H INY 9DD5 D0 06 P. BNE &9DDD 9DD7 C6 A3 F# DEC &A3 9DD9 F0 1A p. BEQ &9DF5 9DDB E6 A5 f% INC &A5 9DDD B1 A4 1$ LDA (&A4),Y ; and another 9DDF 8D A2 FE ."~ STA &FEA2 9DE2 C8 H INY 9DE3 84 A2 ." STY &A2 9DE5 D0 06 P. BNE &9DED 9DE7 C6 A3 F# DEC &A3 9DE9 F0 0A p. BEQ &9DF5 9DEB E6 A5 f% INC &A5 9DED 2C A0 FE , ~ BIT &FEA0 ; IRQ? 9DF0 30 DB 0[ BMI &9DCD ; can continue to write 9DF2 4C 14 0D L.. JMP &0D14 9DF5 A9 3F )? LDA #&3F ; All data written 9DF7 8D A1 FE .!~ STA &FEA1 ; clear rx 9DFA AD 4A 0D -J. LDA &0D4A 9DFD 10 07 .. BPL &9E06 9DFF A9 DB )[ LDA #&DB 9E01 A0 99 . LDY #&99 9E03 4C 0E 0D L.. JMP &0D0E ; failed 99db = reset to default state 9E06 AD 4B 0D -K. LDA &0D4B 9E09 AC 4C 0D ,L. LDY &0D4C ; &9e50 - rec ack routine 9E0C 4C 0E 0D L.. JMP &0D0E 9E0F 2C A0 FE , ~ BIT &FEA0 ; nmi: write data block (tube) 9E12 50 34 P4 BVC &9E48 9E14 AD E5 FE -e~ LDA &FEE5 ; tube 9E17 8D A2 FE ."~ STA &FEA2 9E1A E6 A2 f" INC &A2 9E1C D0 0C P. BNE &9E2A 9E1E E6 A3 f# INC &A3 9E20 D0 08 P. BNE &9E2A 9E22 E6 A4 f$ INC &A4 9E24 D0 04 P. BNE &9E2A 9E26 E6 A5 f% INC &A5 9E28 F0 CB pK BEQ &9DF5 9E2A AD E5 FE -e~ LDA &FEE5 ; tube 9E2D 8D A2 FE ."~ STA &FEA2 9E30 E6 A2 f" INC &A2 9E32 D0 0C P. BNE &9E40 9E34 E6 A3 f# INC &A3 9E36 D0 08 P. BNE &9E40 9E38 E6 A4 f$ INC &A4 9E3A D0 04 P. BNE &9E40 9E3C E6 A5 f% INC &A5 9E3E F0 B5 p5 BEQ &9DF5 9E40 2C A0 FE , ~ BIT &FEA0 9E43 30 CD 0M BMI &9E12 9E45 4C 14 0D L.. JMP &0D14 9E48 AD 4A 0D -J. LDA &0D4A 9E4B 10 5F ._ BPL &9EAC 9E4D 4C DB 99 L[. JMP &99DB ; Reset to default state ---------------------------------------------------------------------------- Receive ACK for data block 9E50 A9 82 ). LDA #&82 ; Received ACK 9E52 8D A0 FE . ~ STA &FEA0 9E55 A9 5C )\ LDA #&5C 9E57 A0 9E . LDY #&9E 9E59 4C 0E 0D L.. JMP &0D0E 9E5C A9 01 ). LDA #&01 ; nmi 9E5E 2C A1 FE ,!~ BIT &FEA1 9E61 F0 49 pI BEQ &9EAC 9E63 AD A2 FE -"~ LDA &FEA2 ; rec AP 9E66 CD 18 FE M.~ CMP &FE18 ; check station no. 9E69 D0 41 PA BNE &9EAC 9E6B A9 70 )p LDA #&70 9E6D 4C 11 0D L.. JMP &0D11 9E70 2C A1 FE ,!~ BIT &FEA1 ; RDA 9E73 10 37 .7 BPL &9EAC 9E75 AD A2 FE -"~ LDA &FEA2 ; look for 0 control byte 9E78 D0 32 P2 BNE &9EAC ; 9E7A A9 84 ). LDA #&84 9E7C 2C A0 FE , ~ BIT &FEA0 ; IRQ? 9E7F 30 03 0. BMI &9E84 9E81 4C 11 0D L.. JMP &0D11 9E84 2C A1 FE ,!~ BIT &FEA1 ; MNI: IRQ set, check RDA 9E87 10 23 .# BPL &9EAC ; No RDA? 9E89 AD A2 FE -"~ LDA &FEA2 9E8C CD 20 0D M . CMP &0D20 ; does source match dest of our packet? 9E8F D0 1B P. BNE &9EAC 9E91 AD A2 FE -"~ LDA &FEA2 ; does source match dest of our packet? 9E94 CD 21 0D M!. CMP &0D21 9E97 D0 13 P. BNE &9EAC 9E99 AD 4A 0D -J. LDA &0D4A ; 9E9C 10 03 .. BPL &9EA1 9E9E 4C 1B 98 L.. JMP &981B ; goto rec data packet routine 9EA1 A9 02 ). LDA #&02 ; Frame valid? 9EA3 2C A1 FE ,!~ BIT &FEA1 9EA6 F0 04 p. BEQ &9EAC 9EA8 A9 00 ). LDA #&00 ; Return 0 in control block 9EAA F0 02 p. BEQ &9EAE ---------------------------------------------------------------------------- Update osword control block control block and reset to default state 9EAC A9 41 )A LDA #&41 ; Error &41 = packet damaged or rec buff too small 9EAE A0 00 . LDY #&00 9EB0 91 A0 . STA (&A0),Y 9EB2 A9 80 ). LDA #&80 9EB4 8D 62 0D .b. STA &0D62 9EB7 4C DB 99 L[. JMP &99DB ; Reset to default state ---------------------------------------------------------------------------- Look up table, index by control byte (&80-&88), for &D4A control byte and packet length (e.g. 6) 9EBA 0E 0E 0A ... ASL &0A0E 9EBD 0A . ASL A 9EBE 0A . ASL A 9EBF 06 06 .. ASL &06 9EC1 0A . ASL A 9EC2 81 00 .. STA (&00,X) 9EC4 00 . BRK 9EC5 00 . BRK 9EC6 00 . BRK 9EC7 01 01 .. ORA (&01,X) 9EC9 81 . . ---------------------------------------------------------------------------- Set up A2/A3 = length of data block A4/A5 = address of data block 9ECA LDY #&06 ; Top 2 bytes of 4 byte open port mem address 9ECC LDA (&A6),Y 9ECE INY 9ECF 31 A6 1& AND (&A6),Y 9ED1 C9 FF I. CMP #&FF 9ED3 F0 44 pD BEQ &9F19 ; Not tube? 9ED5 AD 67 0D -g. LDA &0D67 9ED8 F0 3F p? BEQ &9F19 ; it is 0 9EDA AD 4A 0D -J. LDA &0D4A ; tube routine 9EDD 09 02 .. ORA #&02 9EDF 8D 4A 0D .J. STA &0D4A 9EE2 38 8 SEC 9EE3 08 . PHP 9EE4 A0 04 . LDY #&04 ; Open port block buf address 9EE6 B1 A6 1& LDA (&A6),Y 9EE8 C8 H INY 9EE9 C8 H INY 9EEA C8 H INY 9EEB C8 H INY 9EEC 28 ( PLP 9EED F1 A6 q& SBC (&A6),Y ; End of buf address 9EEF 99 9A 00 ... STA &009A,Y 9EF2 88 . DEY 9EF3 88 . DEY 9EF4 88 . DEY 9EF5 08 . PHP 9EF6 C0 08 @. CPY #&08 9EF8 90 EC .l BCC &9EE6 9EFA 28 ( PLP 9EFB 8A . TXA 9EFC 48 H PHA 9EFD A9 04 ). LDA #&04 9EFF 18 . CLC 9F00 65 A6 e& ADC &A6 9F02 AA * TAX 9F03 A4 A7 $' LDY &A7 9F05 A9 C2 )B LDA #&C2 9F07 20 06 04 .. JSR &0406 9F0A 90 0A .. BCC &9F16 9F0C AD 5C 0D -\. LDA &0D5C 9F0F 20 06 04 .. JSR &0406 9F12 20 2B 9A +. JSR &9A2B 9F15 38 8 SEC 9F16 68 h PLA 9F17 AA * TAX 9F18 60 ` RTS 9F19 A0 04 . LDY #&04 ; non-tube routine 9F1B B1 A6 1& LDA (&A6),Y 9F1D A0 08 . LDY #&08 9F1F 38 8 SEC 9F20 F1 A6 q& SBC (&A6),Y 9F22 85 A2 ." STA &A2 9F24 A0 05 . LDY #&05 9F26 B1 A6 1& LDA (&A6),Y 9F28 E9 00 i. SBC #&00 9F2A 85 A5 .% STA &A5 9F2C A0 08 . LDY #&08 9F2E B1 A6 1& LDA (&A6),Y 9F30 85 A4 .$ STA &A4 9F32 A0 09 . LDY #&09 9F34 B1 A6 1& LDA (&A6),Y 9F36 38 8 SEC 9F37 E5 A5 e% SBC &A5 9F39 85 A3 .# STA &A3 9F3B 38 8 SEC 9F3C 60 ` RTS ---------------------------------------------------------------------------- Econet HW reset 9F3D A9 C1 )A LDA #&C1 ; had an nmi, not AP 9F3F 8D A0 FE . ~ STA &FEA0 ; TxReset RxReset, AC 9F42 A9 1E ). LDA #&1E 9F44 8D A3 FE .#~ STA &FEA3 ;set word lengths 8 bit. use double flags 9F47 A9 00 ). LDA #&00 9F49 8D A1 FE .!~ STA &FEA1 ; clear all cr3 flags 9F4C A9 82 ). LDA #&82 ; jsr here in nmi 9F4E 8D A0 FE . ~ STA &FEA0 ; Tx reset, RIE 9F51 A9 67 )g LDA #&67 9F53 8D A1 FE .!~ STA &FEA1 ; clear tx sts, clr rxsts, flag mode, 2 byte mode, pse. 9F56 60 ` RTS ---------------------------------------------------------------------------- Wait for econet to reset to default state 9F57 2C 66 0D ,f. BIT &0D66 9F5A 10 1E .. BPL &9F7A 9F5C AD 0C 0D -.. LDA &0D0C 9F5F C9 BF I? CMP #&BF 9F61 D0 F9 Py BNE &9F5C 9F63 AD 0D 0D -.. LDA &0D0D 9F66 C9 96 I. CMP #&96 9F68 D0 F2 Pr BNE &9F5C 9F6A 2C 18 FE ,.~ BIT &FE18 9F6D 2C 18 FE ,.~ BIT &FE18 9F70 A9 00 ). LDA #&00 9F72 8D 62 0D .b. STA &0D62 9F75 8D 66 0D .f. STA &0D66 9F78 A0 05 . LDY #&05 9F7A 4C 4C 9F LL. JMP &9F4C ---------------------------------------------------------------------------- Econet NMI routine copied to D00 9F7D 2C 18 FE ,.~ BIT &FE18 ; this is the econet nmi routine found at 0d00 9F80 48 H PHA 9F81 98 . TYA 9F82 48 H PHA 9F83 A9 00 ). LDA #&00 ; replaced with rom socket number of dnfs rom 9F85 8D 30 FE .0~ STA &FE30 9F88 4C BF 96 L?. JMP &96BF 9F8B 8C 0D 0D ... STY &0D0D 9F8E 8D 0C 0D ... STA &0D0C 9F91 A5 F4 %t LDA &F4 9F93 8D 30 FE .0~ STA &FE30 9F96 68 h PLA 9F97 A8 ( TAY 9F98 68 h PLA 9F99 2C 20 FE , ~ BIT &FE20 9F9C 40 @ RTI ---------------------------------------------------------------------------- 9F9D 4C 94 B4 L.4 JMP &B494 ; jsr start or end of service request 9FA0 6C 1E 02 l.. JMP (&021E) 9FA3 20 B8 9F 8. JSR &9FB8 9FA6 00 . BRK 9FA7 44 D ??? 9FA8 69 73 is ADC #&73 9FAA 6B k ??? 9FAB 20 90 21 .! JSR &2190 9FAE 20 B8 9F 8. JSR &9FB8 9FB1 00 . BRK 9FB2 42 B ??? 9FB3 61 64 ad ADC (&64,X) 9FB5 20 90 17 .. JSR &1790 9FB8 AD DD 10 -]. LDA &10DD 9FBB D0 03 P. BNE &9FC0 9FBD 20 C8 B0 H0 JSR &B0C8 9FC0 A9 FF ). LDA #&FF 9FC2 8D 82 10 ... STA &1082 9FC5 8D DD 10 .]. STA &10DD 9FC8 A2 02 ". LDX #&02 9FCA A9 00 ). LDA #&00 9FCC 8D 00 01 ... STA &0100 9FCF 85 B3 .3 STA &B3 9FD1 68 h PLA 9FD2 85 AE .. STA &AE 9FD4 68 h PLA 9FD5 85 AF ./ STA &AF 9FD7 A5 B3 %3 LDA &B3 9FD9 A0 00 . LDY #&00 9FDB 20 20 A3 # JSR &A320 9FDE B1 AE 1. LDA (&AE),Y 9FE0 8D 01 01 ... STA &0101 9FE3 CA J DEX 9FE4 20 20 A3 # JSR &A320 9FE7 E8 h INX 9FE8 B1 AE 1. LDA (&AE),Y 9FEA 9D 00 01 ... STA &0100,X 9FED 30 27 0' BMI &A016 9FEF D0 F3 Ps BNE &9FE4 9FF1 20 FF A6 .& JSR &A6FF 9FF4 4C 00 01 L.. JMP &0100 9FF7 85 B3 .3 STA &B3 9FF9 68 h PLA 9FFA 85 AE .. STA &AE 9FFC 68 h PLA 9FFD 85 AF ./ STA &AF 9FFF A5 B3 %3 LDA &B3 A001 48 H PHA A002 98 . TYA A003 48 H PHA A004 A0 00 . LDY #&00 A006 20 20 A3 # JSR &A320 A009 B1 AE 1. LDA (&AE),Y A00B 30 06 0. BMI &A013 A00D 20 1F A0 . JSR &A01F A010 4C 06 A0 L. JMP &A006 A013 68 h PLA A014 A8 ( TAY A015 68 h PLA A016 18 . CLC A017 6C AE 00 l.. JMP (&00AE) A01A 20 40 A0 @ JSR &A040 A01D A9 2E ). LDA #&2E A01F 20 27 A3 '# JSR &A327 A022 48 H PHA A023 A9 EC )l LDA #&EC A025 20 A6 B9 &9 JSR &B9A6 A028 8A . TXA A029 48 H PHA A02A 09 10 .. ORA #&10 A02C 20 94 B9 .9 JSR &B994 A02F 68 h PLA A030 AA * TAX A031 68 h PLA A032 20 E3 FF c. JSR &FFE3 A035 4C 95 B9 L.9 JMP &B995 A038 48 H PHA A039 20 38 A1 8! JSR &A138 A03C 20 40 A0 @ JSR &A040 A03F 68 h PLA A040 20 45 A0 E JSR &A045 A043 D0 DA PZ BNE &A01F A045 29 0F ). AND #&0F A047 C9 0A I. CMP #&0A A049 90 02 .. BCC &A04D A04B 69 06 i. ADC #&06 A04D 69 30 i0 ADC #&30 A04F 60 ` RTS A050 20 60 A0 ` JSR &A060 A053 CA J DEX A054 CA J DEX A055 20 58 A0 X JSR &A058 A058 B1 B0 10 LDA (&B0),Y A05A 9D 72 10 .r. STA &1072,X A05D E8 h INX A05E C8 H INY A05F 60 ` RTS A060 20 63 A0 c JSR &A063 A063 B1 B0 10 LDA (&B0),Y A065 95 BA .: STA &BA,X A067 E8 h INX A068 C8 H INY A069 60 ` RTS A06A 20 C3 A9 C) JSR &A9C3 A06D 4C 80 A0 L. JMP &A080 A070 20 C3 A9 C) JSR &A9C3 A073 A5 BA %: LDA &BA A075 85 F2 .r STA &F2 A077 A5 BB %; LDA &BB A079 85 F3 .s STA &F3 A07B A0 00 . LDY #&00 A07D 20 F1 A5 q% JSR &A5F1 A080 A2 20 " LDX #&20 A082 20 C9 A0 I JSR &A0C9 A085 B0 1E 0. BCS &A0A5 A087 8D 00 10 ... STA &1000 A08A C9 2E I. CMP #&2E A08C D0 04 P. BNE &A092 A08E 86 CC .L STX &CC A090 F0 EE pn BEQ &A080 A092 C9 3A I: CMP #&3A A094 D0 18 P. BNE &A0AE A096 20 D3 A9 S) JSR &A9D3 A099 20 99 A6 .& JSR &A699 A09C 20 C9 A0 I JSR &A0C9 A09F B0 04 0. BCS &A0A5 A0A1 C9 2E I. CMP #&2E A0A3 F0 DB p[ BEQ &A080 A0A5 20 AE 9F .. JSR &9FAE A0A8 CC 6E 61 Lna CPY &616E A0AB 6D 65 00 me. ADC &0065 A0AE AA * TAX A0AF 20 C9 A0 I JSR &A0C9 A0B2 B0 29 0) BCS &A0DD A0B4 C9 2E I. CMP #&2E A0B6 F0 D6 pV BEQ &A08E A0B8 A2 01 ". LDX #&01 A0BA 9D 00 10 ... STA &1000,X A0BD E8 h INX A0BE 20 C9 A0 I JSR &A0C9 A0C1 B0 1C 0. BCS &A0DF A0C3 E0 07 `. CPX #&07 A0C5 D0 F3 Ps BNE &A0BA A0C7 F0 DC p\ BEQ &A0A5 A0C9 20 C5 FF E. JSR &FFC5 A0CC 08 . PHP A0CD 29 7F ). AND #&7F A0CF C9 0D I. CMP #&0D A0D1 F0 08 p. BEQ &A0DB A0D3 C9 20 I CMP #&20 A0D5 90 CE .N BCC &A0A5 A0D7 C9 7F I. CMP #&7F A0D9 F0 CA pJ BEQ &A0A5 A0DB 28 ( PLP A0DC 60 ` RTS A0DD A2 01 ". LDX #&01 A0DF A9 20 ) LDA #&20 A0E1 9D 00 10 ... STA &1000,X A0E4 E8 h INX A0E5 E0 40 `@ CPX #&40 A0E7 D0 F8 Px BNE &A0E1 A0E9 A2 06 ". LDX #&06 A0EB BD 00 10 =.. LDA &1000,X A0EE 95 C5 .E STA &C5,X A0F0 CA J DEX A0F1 10 F8 .x BPL &A0EB A0F3 60 ` RTS A0F4 20 27 A3 '# JSR &A327 A0F7 B9 0F 0E 9.. LDA &0E0F,Y A0FA 08 . PHP A0FB 29 7F ). AND #&7F A0FD D0 05 P. BNE &A104 A0FF 20 A6 BF &? JSR &BFA6 A102 F0 06 p. BEQ &A10A A104 20 1F A0 . JSR &A01F A107 20 1D A0 . JSR &A01D A10A A2 06 ". LDX #&06 A10C B9 08 0E 9.. LDA &0E08,Y A10F 29 7F ). AND #&7F A111 20 1F A0 . JSR &A01F A114 C8 H INY A115 CA J DEX A116 10 F4 .t BPL &A10C A118 20 A6 BF &? JSR &BFA6 A11B A9 20 ) LDA #&20 A11D 28 ( PLP A11E 10 02 .. BPL &A122 A120 A9 4C )L LDA #&4C A122 20 1F A0 . JSR &A01F A125 A0 01 . LDY #&01 A127 20 A9 BF )? JSR &BFA9 A12A 88 . DEY A12B D0 FA Pz BNE &A127 A12D 60 ` RTS A12E 4A J LSR A A12F 4A J LSR A A130 4A J LSR A A131 4A J LSR A A132 4A J LSR A A133 4A J LSR A A134 29 03 ). AND #&03 A136 60 ` RTS A137 4A J LSR A A138 4A J LSR A A139 4A J LSR A A13A 4A J LSR A A13B 4A J LSR A A13C 60 ` RTS A13D 0A . ASL A A13E 0A . ASL A A13F 0A . ASL A A140 0A . ASL A A141 0A . ASL A A142 60 ` RTS A143 A5 BC %< LDA &BC A145 85 A6 .& STA &A6 A147 A5 BD %= LDA &BD A149 85 A7 .' STA &A7 A14B A9 FF ). LDA #&FF A14D 85 CE .N STA &CE A14F A6 C1 &A LDX &C1 A151 E8 h INX A152 86 A4 .$ STX &A4 A154 A5 C2 %B LDA &C2 A156 20 30 A1 0! JSR &A130 A159 85 A5 .% STA &A5 A15B E6 A5 f% INC &A5 A15D A5 C0 %@ LDA &C0 A15F 85 A3 .# STA &A3 A161 D0 06 P. BNE &A169 A163 C6 A4 F$ DEC &A4 A165 D0 02 P. BNE &A169 A167 C6 A5 F% DEC &A5 A169 A5 C2 %B LDA &C2 A16B 29 03 ). AND #&03 A16D AA * TAX A16E A5 C3 %C LDA &C3 A170 38 8 SEC A171 E6 CE fN INC &CE A173 E9 0A i. SBC #&0A A175 B0 FA 0z BCS &A171 A177 CA J DEX A178 10 F6 .v BPL &A170 A17A 69 0A i. ADC #&0A A17C 85 CF .O STA &CF A17E 60 ` RTS A17F 20 6A A0 j JSR &A06A A182 30 03 0. BMI &A187 A184 20 70 A0 p JSR &A070 A187 20 C3 A1 C! JSR &A1C3 A18A B0 F2 0r BCS &A17E A18C 20 C8 9F H. JSR &9FC8 A18F D6 4E VN DEC &4E,X A191 6F o ??? A192 74 t ??? A193 20 66 6F fo JSR &6F66 A196 75 6E un ADC &6E,X A198 64 d ??? A199 00 . BRK A19A 20 04 B8 .8 JSR &B804 A19D 20 61 BA a: JSR &BA61 A1A0 20 7F A1 .! JSR &A17F A1A3 20 79 A2 y" JSR &A279 A1A6 20 BF A1 ?! JSR &A1BF A1A9 B0 F8 0x BCS &A1A3 A1AB 60 ` RTS A1AC A2 06 ". LDX #&06 A1AE B5 C5 5E LDA &C5,X A1B0 9D 58 10 .X. STA &1058,X A1B3 CA J DEX A1B4 10 F8 .x BPL &A1AE A1B6 A9 20 ) LDA #&20 A1B8 8D 5F 10 ._. STA &105F A1BB A9 58 )X LDA #&58 A1BD D0 06 P. BNE &A1C5 A1BF A2 00 ". LDX #&00 A1C1 F0 10 p. BEQ &A1D3 A1C3 A9 00 ). LDA #&00 A1C5 48 H PHA A1C6 20 5F AA _* JSR &AA5F A1C9 68 h PLA A1CA AA * TAX A1CB A9 0E ). LDA #&0E A1CD 85 B7 .7 STA &B7 A1CF A9 00 ). LDA #&00 A1D1 85 B6 .6 STA &B6 A1D3 A0 00 . LDY #&00 A1D5 A5 B6 %6 LDA &B6 A1D7 CD 05 0F M.. CMP &0F05 A1DA B0 49 0I BCS &A225 A1DC 69 08 i. ADC #&08 A1DE 85 B6 .6 STA &B6 A1E0 20 FA A1 z! JSR &A1FA A1E3 90 EE .n BCC &A1D3 A1E5 A5 CC %L LDA &CC A1E7 A0 07 . LDY #&07 A1E9 20 27 A2 '" JSR &A227 A1EC D0 E5 Pe BNE &A1D3 A1EE A4 B6 $6 LDY &B6 A1F0 38 8 SEC A1F1 88 . DEY A1F2 88 . DEY A1F3 88 . DEY A1F4 88 . DEY A1F5 88 . DEY A1F6 88 . DEY A1F7 88 . DEY A1F8 88 . DEY A1F9 60 ` RTS A1FA 20 27 A3 '# JSR &A327 A1FD BD 00 10 =.. LDA &1000,X A200 CD CE 10 MN. CMP &10CE A203 D0 13 P. BNE &A218 A205 E8 h INX A206 20 FA A1 z! JSR &A1FA A209 B0 1B 0. BCS &A226 A20B C8 H INY A20C C0 07 @. CPY #&07 A20E 90 F6 .v BCC &A206 A210 BD 00 10 =.. LDA &1000,X A213 C9 20 I CMP #&20 A215 D0 0E P. BNE &A225 A217 60 ` RTS A218 C0 07 @. CPY #&07 A21A B0 F4 0t BCS &A210 A21C 20 27 A2 '" JSR &A227 A21F D0 04 P. BNE &A225 A221 E8 h INX A222 C8 H INY A223 D0 D8 PX BNE &A1FD A225 18 . CLC A226 60 ` RTS A227 CD CE 10 MN. CMP &10CE A22A F0 10 p. BEQ &A23C A22C CD CD 10 MM. CMP &10CD A22F F0 0B p. BEQ &A23C A231 20 66 A2 f" JSR &A266 A234 51 B6 Q6 EOR (&B6),Y A236 B0 02 0. BCS &A23A A238 29 5F )_ AND #&5F A23A 29 7F ). AND #&7F A23C 60 ` RTS A23D 08 . PHP A23E 20 66 A2 f" JSR &A266 A241 B0 02 0. BCS &A245 A243 29 5F )_ AND #&5F A245 29 7F ). AND #&7F A247 28 ( PLP A248 60 ` RTS A249 20 B8 B8 88 JSR &B8B8 A24C B9 10 0E 9.. LDA &0E10,Y A24F 99 08 0E ... STA &0E08,Y A252 B9 10 0F 9.. LDA &0F10,Y A255 99 08 0F ... STA &0F08,Y A258 C8 H INY A259 CC 05 0F L.. CPY &0F05 A25C 90 EE .n BCC &A24C A25E 98 . TYA A25F E9 08 i. SBC #&08 A261 8D 05 0F ... STA &0F05 A264 18 . CLC A265 60 ` RTS A266 48 H PHA A267 29 5F )_ AND #&5F A269 C9 41 IA CMP #&41 A26B 90 04 .. BCC &A271 A26D C9 5B I[ CMP #&5B A26F 90 01 .. BCC &A272 A271 38 8 SEC A272 68 h PLA A273 60 ` RTS A274 2C C6 10 ,F. BIT &10C6 A277 30 EC 0l BMI &A265 A279 20 27 A3 '# JSR &A327 A27C 20 F4 A0 t JSR &A0F4 A27F 98 . TYA A280 48 H PHA A281 A9 60 )` LDA #&60 A283 85 B0 .0 STA &B0 A285 A9 10 ). LDA #&10 A287 85 B1 .1 STA &B1 A289 20 C8 A2 H" JSR &A2C8 A28C A0 02 . LDY #&02 A28E 20 A9 BF )? JSR &BFA9 A291 20 B0 A2 0" JSR &A2B0 A294 20 B0 A2 0" JSR &A2B0 A297 20 B0 A2 0" JSR &A2B0 A29A 68 h PLA A29B A8 ( TAY A29C B9 0E 0F 9.. LDA &0F0E,Y A29F 29 03 ). AND #&03 A2A1 20 40 A0 @ JSR &A040 A2A4 B9 0F 0F 9.. LDA &0F0F,Y A2A7 20 38 A0 8 JSR &A038 A2AA 20 B6 BC 6< JSR &BCB6 A2AD 4C 31 AB L1+ JMP &AB31 A2B0 A2 03 ". LDX #&03 A2B2 B9 62 10 9b. LDA &1062,Y A2B5 20 38 A0 8 JSR &A038 A2B8 88 . DEY A2B9 CA J DEX A2BA D0 F6 Pv BNE &A2B2 A2BC 20 7D A6 }& JSR &A67D A2BF 4C A9 BF L)? JMP &BFA9 A2C2 20 27 A3 '# JSR &A327 A2C5 4C 6B AA Lk* JMP &AA6B A2C8 20 27 A3 '# JSR &A327 A2CB 98 . TYA A2CC 48 H PHA A2CD AA * TAX A2CE A0 12 . LDY #&12 A2D0 A9 00 ). LDA #&00 A2D2 88 . DEY A2D3 91 B0 .0 STA (&B0),Y A2D5 C0 02 @. CPY #&02 A2D7 D0 F9 Py BNE &A2D2 A2D9 20 15 A3 .# JSR &A315 A2DC C8 H INY A2DD C8 H INY A2DE C0 0E @. CPY #&0E A2E0 D0 F7 Pw BNE &A2D9 A2E2 68 h PLA A2E3 AA * TAX A2E4 BD 0F 0E =.. LDA &0E0F,X A2E7 10 04 .. BPL &A2ED A2E9 A9 08 ). LDA #&08 A2EB 91 B0 .0 STA (&B0),Y A2ED BD 0E 0F =.. LDA &0F0E,X A2F0 A0 04 . LDY #&04 A2F2 20 01 A3 .# JSR &A301 A2F5 A0 0C . LDY #&0C A2F7 4A J LSR A A2F8 4A J LSR A A2F9 48 H PHA A2FA 29 03 ). AND #&03 A2FC 91 B0 .0 STA (&B0),Y A2FE 68 h PLA A2FF A0 08 . LDY #&08 A301 4A J LSR A A302 4A J LSR A A303 48 H PHA A304 29 03 ). AND #&03 A306 91 B0 .0 STA (&B0),Y A308 C9 03 I. CMP #&03 A30A D0 07 P. BNE &A313 A30C A9 FF ). LDA #&FF A30E 91 B0 .0 STA (&B0),Y A310 C8 H INY A311 91 B0 .0 STA (&B0),Y A313 68 h PLA A314 60 ` RTS A315 20 18 A3 .# JSR &A318 A318 BD 08 0F =.. LDA &0F08,X A31B 91 B0 .0 STA (&B0),Y A31D E8 h INX A31E C8 H INY A31F 60 ` RTS A320 E6 AE f. INC &AE A322 D0 02 P. BNE &A326 A324 E6 AF f/ INC &AF A326 60 ` RTS A327 48 H PHA A328 8A . TXA A329 48 H PHA A32A 98 . TYA A32B 48 H PHA A32C A9 A3 )# LDA #&A3 A32E 48 H PHA A32F A9 49 )I LDA #&49 A331 48 H PHA A332 A0 05 . LDY #&05 A334 BA : TSX A335 BD 07 01 =.. LDA &0107,X A338 48 H PHA A339 88 . DEY A33A D0 F8 Px BNE &A334 A33C A0 0A . LDY #&0A A33E BD 09 01 =.. LDA &0109,X A341 9D 0B 01 ... STA &010B,X A344 CA J DEX A345 88 . DEY A346 D0 F6 Pv BNE &A33E A348 68 h PLA A349 68 h PLA A34A 68 h PLA A34B A8 ( TAY A34C 68 h PLA A34D AA * TAX A34E 68 h PLA A34F 60 ` RTS A350 48 H PHA A351 8A . TXA A352 48 H PHA A353 98 . TYA A354 48 H PHA A355 20 32 A3 2# JSR &A332 A358 BA : TSX A359 9D 03 01 ... STA &0103,X A35C 4C 4A A3 LJ# JMP &A34A A35F 20 EA A5 j% JSR &A5EA A362 20 5C AA \* JSR &AA5C A365 A0 FF . LDY #&FF A367 84 A8 .( STY &A8 A369 C8 H INY A36A 84 AA .* STY &AA A36C B9 00 0E 9.. LDA &0E00,Y A36F C0 08 @. CPY #&08 A371 90 03 .. BCC &A376 A373 B9 F8 0E 9x. LDA &0EF8,Y A376 20 1F A0 . JSR &A01F A379 C8 H INY A37A C0 0C @. CPY #&0C A37C D0 EE Pn BNE &A36C A37E 20 F7 9F w. JSR &9FF7 A381 20 28 AD (- JSR &AD28 A384 04 . ??? A385 0F . ??? A386 20 38 A0 8 JSR &A038 A389 20 F7 9F w. JSR &9FF7 A38C 29 0D ). AND #&0D A38E 44 D ??? A38F 72 r ??? A390 69 76 iv ADC #&76 A392 65 20 e ADC &20 A394 A5 CD %M LDA &CD A396 20 40 A0 @ JSR &A040 A399 A0 0D . LDY #&0D A39B 20 27 A1 '! JSR &A127 A39E 20 F7 9F w. JSR &9FF7 A3A1 4F O ??? A3A2 70 74 pt BVS &A418 A3A4 69 6F io ADC #&6F A3A6 6E 20 AD n - ROR &AD20 A3A9 06 0F .. ASL &0F A3AB 20 38 A1 8! JSR &A138 A3AE 48 H PHA A3AF 20 40 A0 @ JSR &A040 A3B2 20 F7 9F w. JSR &9FF7 A3B5 20 28 A0 ( JSR &A028 A3B8 03 . ??? A3B9 68 h PLA A3BA 0A . ASL A A3BB 0A . ASL A A3BC AA * TAX A3BD BD A9 A4 =)$ LDA &A4A9,X A3C0 20 1F A0 . JSR &A01F A3C3 E8 h INX A3C4 88 . DEY A3C5 10 F6 .v BPL &A3BD A3C7 20 F7 9F w. JSR &9FF7 A3CA 29 0D ). AND #&0D A3CC 44 D ??? A3CD 69 72 ir ADC #&72 A3CF 2E 20 3A . : ROL &3A20 A3D2 AD CA 10 -J. LDA &10CA A3D5 20 1A A0 . JSR &A01A A3D8 AD C9 10 -I. LDA &10C9 A3DB 20 1F A0 . JSR &A01F A3DE A0 0B . LDY #&0B A3E0 20 27 A1 '! JSR &A127 A3E3 20 F7 9F w. JSR &9FF7 A3E6 4C 69 62 Lib JMP &6269 A3E9 2E 20 3A . : ROL &3A20 A3EC AD CC 10 -L. LDA &10CC A3EF 20 1A A0 . JSR &A01A A3F2 AD CB 10 -K. LDA &10CB A3F5 20 1F A0 . JSR &A01F A3F8 20 B6 BC 6< JSR &BCB6 A3FB A0 00 . LDY #&00 A3FD CC 05 0F L.. CPY &0F05 A400 B0 17 0. BCS &A419 A402 B9 0F 0E 9.. LDA &0E0F,Y A405 4D C9 10 MI. EOR &10C9 A408 29 5F )_ AND #&5F A40A D0 08 P. BNE &A414 A40C B9 0F 0E 9.. LDA &0E0F,Y A40F 29 80 ). AND #&80 A411 99 0F 0E ... STA &0E0F,Y A414 20 7C A6 |& JSR &A67C A417 90 E4 .d BCC &A3FD A419 A0 00 . LDY #&00 A41B 20 2B A4 +$ JSR &A42B A41E 90 16 .. BCC &A436 A420 A9 FF ). LDA #&FF A422 8D 82 10 ... STA &1082 A425 4C B6 BC L6< JMP &BCB6 A428 20 7C A6 |& JSR &A67C A42B CC 05 0F L.. CPY &0F05 A42E B0 05 0. BCS &A435 A430 B9 08 0E 9.. LDA &0E08,Y A433 30 F3 0s BMI &A428 A435 60 ` RTS A436 84 AB .+ STY &AB A438 A2 00 ". LDX #&00 A43A B9 08 0E 9.. LDA &0E08,Y A43D 20 3D A2 =" JSR &A23D A440 9D 60 10 .`. STA &1060,X A443 C8 H INY A444 E8 h INX A445 E0 08 `. CPX #&08 A447 D0 F1 Pq BNE &A43A A449 20 2B A4 +$ JSR &A42B A44C B0 23 0# BCS &A471 A44E 38 8 SEC A44F A2 06 ". LDX #&06 A451 B9 0E 0E 9.. LDA &0E0E,Y A454 20 3D A2 =" JSR &A23D A457 FD 60 10 }`. SBC &1060,X A45A 88 . DEY A45B CA J DEX A45C 10 F3 .s BPL &A451 A45E 20 7D A6 }& JSR &A67D A461 B9 0F 0E 9.. LDA &0E0F,Y A464 20 3D A2 =" JSR &A23D A467 ED 67 10 mg. SBC &1067 A46A 90 CA .J BCC &A436 A46C 20 7C A6 |& JSR &A67C A46F B0 D8 0X BCS &A449 A471 A4 AB $+ LDY &AB A473 B9 08 0E 9.. LDA &0E08,Y A476 09 80 .. ORA #&80 A478 99 08 0E ... STA &0E08,Y A47B AD 67 10 -g. LDA &1067 A47E C5 AA E* CMP &AA A480 F0 10 p. BEQ &A492 A482 A6 AA &* LDX &AA A484 85 AA .* STA &AA A486 D0 0A P. BNE &A492 A488 20 B6 BC 6< JSR &BCB6 A48B 20 B6 BC 6< JSR &BCB6 A48E A0 FF . LDY #&FF A490 D0 09 P. BNE &A49B A492 A4 A8 $( LDY &A8 A494 D0 F5 Pu BNE &A48B A496 A0 05 . LDY #&05 A498 20 27 A1 '! JSR &A127 A49B C8 H INY A49C 84 A8 .( STY &A8 A49E A4 AB $+ LDY &AB A4A0 20 A6 BF &? JSR &BFA6 A4A3 20 F4 A0 t JSR &A0F4 A4A6 4C 19 A4 L.$ JMP &A419 A4A9 6F o ??? A4AA 66 66 ff ROR &66 A4AC 00 . BRK A4AD 4C 4F 41 LOA JMP &414F A4B0 44 D ??? A4B1 52 R ??? A4B2 55 4E UN EOR &4E,X A4B4 00 . BRK A4B5 45 58 EX EOR &58 A4B7 45 43 EC EOR &43 A4B9 B9 0E 0F 9.. LDA &0F0E,Y A4BC 20 30 A1 0! JSR &A130 A4BF 85 C2 .B STA &C2 A4C1 18 . CLC A4C2 A9 FF ). LDA #&FF A4C4 79 0C 0F y.. ADC &0F0C,Y A4C7 B9 0F 0F 9.. LDA &0F0F,Y A4CA 79 0D 0F y.. ADC &0F0D,Y A4CD 85 C3 .C STA &C3 A4CF B9 0E 0F 9.. LDA &0F0E,Y A4D2 29 03 ). AND #&03 A4D4 65 C2 eB ADC &C2 A4D6 85 C2 .B STA &C2 A4D8 38 8 SEC A4D9 B9 07 0F 9.. LDA &0F07,Y A4DC E5 C3 eC SBC &C3 A4DE 48 H PHA A4DF B9 06 0F 9.. LDA &0F06,Y A4E2 29 03 ). AND #&03 A4E4 E5 C2 eB SBC &C2 A4E6 AA * TAX A4E7 A9 00 ). LDA #&00 A4E9 C5 C0 E@ CMP &C0 A4EB 68 h PLA A4EC E5 C1 eA SBC &C1 A4EE 8A . TXA A4EF E5 C4 eD SBC &C4 A4F1 60 ` RTS A4F2 41 43 AC EOR (&43,X) A4F4 43 C ??? A4F5 45 53 ES EOR &53 A4F7 53 S ??? A4F8 A8 ( TAY A4F9 2D 32 42 -2B AND &4232 A4FC 41 43 AC EOR (&43,X) A4FE 4B K ??? A4FF 55 50 UP EOR &50,X A501 BC E8 04 BVC &A538 A57A DE 01 4C ^.L DEC &4C01,X A57D 49 53 IS EOR #&53 A57F 54 T ??? A580 BE 9C 01 >.. LDX &019C,Y A583 54 T ??? A584 59 50 45 YPE EOR &4550,Y A587 BE 95 01 >.. LDX &0195,Y A58A 44 D ??? A58B 49 53 IS EOR #&53 A58D 4B K ??? A58E B3 3 ??? A58F C0 00 @. CPY #&00 A591 A4 F0 $p LDY &F0 A593 44 D ??? A594 46 53 FS LSR &53 A596 BA : TSX A597 21 00 !. AND (&00,X) A599 55 54 UT EOR &54,X A59B 49 4C IL EOR #&4C A59D 53 S ??? A59E BA : TSX A59F 4D 00 BA M.: EOR &BA00 A5A2 54 T ??? A5A3 20 EA A5 j% JSR &A5EA A5A6 A2 FD "} LDX #&FD A5A8 98 . TYA A5A9 48 H PHA A5AA E8 h INX A5AB E8 h INX A5AC 68 h PLA A5AD 48 H PHA A5AE A8 ( TAY A5AF 20 F1 A5 q% JSR &A5F1 A5B2 E8 h INX A5B3 BD F2 A4 =r$ LDA &A4F2,X A5B6 30 28 0( BMI &A5E0 A5B8 CA J DEX A5B9 88 . DEY A5BA 86 BC .< STX &BC A5BC E8 h INX A5BD C8 H INY A5BE BD F2 A4 =r$ LDA &A4F2,X A5C1 30 16 0. BMI &A5D9 A5C3 51 F2 Qr EOR (&F2),Y A5C5 29 5F )_ AND #&5F A5C7 F0 F3 ps BEQ &A5BC A5C9 CA J DEX A5CA E8 h INX A5CB BD F2 A4 =r$ LDA &A4F2,X A5CE 10 FA .z BPL &A5CA A5D0 B1 F2 1r LDA (&F2),Y A5D2 C9 2E I. CMP #&2E A5D4 D0 D4 PT BNE &A5AA A5D6 C8 H INY A5D7 B0 07 0. BCS &A5E0 A5D9 B1 F2 1r LDA (&F2),Y A5DB 20 66 A2 f" JSR &A266 A5DE 90 CA .J BCC &A5AA A5E0 68 h PLA A5E1 BD F2 A4 =r$ LDA &A4F2,X A5E4 48 H PHA A5E5 BD F3 A4 =s$ LDA &A4F3,X A5E8 48 H PHA A5E9 60 ` RTS A5EA 86 F2 .r STX &F2 A5EC 84 F3 .s STY &F3 A5EE A0 00 . LDY #&00 A5F0 60 ` RTS A5F1 18 . CLC A5F2 4C C2 FF LB. JMP &FFC2 A5F5 20 04 B8 .8 JSR &B804 A5F8 20 61 BA a: JSR &BA61 A5FB 20 7F A1 .! JSR &A17F A5FE B9 0F 0E 9.. LDA &0E0F,Y A601 30 1B 0. BMI &A61E A603 20 F4 A0 t JSR &A0F4 A606 20 F7 9F w. JSR &9FF7 A609 20 3A 20 : JSR &203A A60C EA j NOP A60D 20 CD BC M< JSR &BCCD A610 D0 09 P. BNE &A61B A612 20 94 AE .. JSR &AE94 A615 20 85 A6 .& JSR &A685 A618 20 3B AA ;* JSR &AA3B A61B 20 B6 BC 6< JSR &BCB6 A61E 20 BF A1 ?! JSR &A1BF A621 B0 DB 0[ BCS &A5FE A623 60 ` RTS A624 20 FB B7 {7 JSR &B7FB A627 20 61 BA a: JSR &BA61 A62A 20 7F A1 .! JSR &A17F A62D 20 74 A2 t" JSR &A274 A630 20 49 A2 I" JSR &A249 A633 4C 3B AA L;* JMP &AA3B A636 20 EF BB o; JSR &BBEF A639 20 04 B8 .8 JSR &B804 A63C 20 61 BA a: JSR &BA61 A63F 20 7F A1 .! JSR &A17F A642 B9 0F 0E 9.. LDA &0E0F,Y A645 30 06 0. BMI &A64D A647 20 F4 A0 t JSR &A0F4 A64A 20 B6 BC 6< JSR &BCB6 A64D 20 BF A1 ?! JSR &A1BF A650 B0 F0 0p BCS &A642 A652 20 BE BC >< JSR &BCBE A655 F0 03 p. BEQ &A65A A657 4C B6 BC L6< JMP &BCB6 A65A 20 94 AE .. JSR &AE94 A65D 20 C3 A1 C! JSR &A1C3 A660 B9 0F 0E 9.. LDA &0E0F,Y A663 30 03 0. BMI &A668 A665 20 85 A6 .& JSR &A685 A668 20 BF A1 ?! JSR &A1BF A66B B0 F3 0s BCS &A660 A66D 20 3B AA ;* JSR &AA3B A670 20 F7 9F w. JSR &9FF7 A673 0D 44 65 .De ORA &6544 A676 6C 65 74 let JMP (&7465) A679 65 64 ed ADC &64 A67B 0D C8 C8 .HH ORA &C8C8 A67E C8 H INY A67F C8 H INY A680 C8 H INY A681 C8 H INY A682 C8 H INY A683 C8 H INY A684 60 ` RTS A685 20 49 A2 I" JSR &A249 A688 A4 B6 $6 LDY &B6 A68A 20 F1 A1 q! JSR &A1F1 A68D 84 B6 .6 STY &B6 A68F 60 ` RTS A690 20 61 BA a: JSR &BA61 A693 20 D3 A9 S) JSR &A9D3 A696 8D CA 10 .J. STA &10CA A699 20 AE AC ., JSR &ACAE A69C 29 03 ). AND #&03 A69E 85 CD .M STA &CD A6A0 60 ` RTS A6A1 20 84 A1 .! JSR &A184 A6A4 20 DA B8 Z8 JSR &B8DA A6A7 20 C8 A2 H" JSR &A2C8 A6AA 84 BA .: STY &BA A6AC A2 00 ". LDX #&00 A6AE A5 BE %> LDA &BE A6B0 D0 06 P. BNE &A6B8 A6B2 C8 H INY A6B3 C8 H INY A6B4 A2 02 ". LDX #&02 A6B6 D0 08 P. BNE &A6C0 A6B8 B9 0E 0F 9.. LDA &0F0E,Y A6BB 85 C2 .B STA &C2 A6BD 20 95 A9 .) JSR &A995 A6C0 B9 08 0F 9.. LDA &0F08,Y A6C3 95 BC .< STA &BC,X A6C5 C8 H INY A6C6 E8 h INX A6C7 E0 08 `. CPX #&08 A6C9 D0 F5 Pu BNE &A6C0 A6CB 20 AC A9 ,) JSR &A9AC A6CE A4 BA $: LDY &BA A6D0 20 74 A2 t" JSR &A274 A6D3 20 A3 AB #+ JSR &ABA3 A6D6 D0 0C P. BNE &A6E4 A6D8 20 BF A8 ?( JSR &A8BF A6DB 20 DA B8 Z8 JSR &B8DA A6DE 20 C8 A2 H" JSR &A2C8 A6E1 20 B1 AB 1+ JSR &ABB1 A6E4 20 43 A1 C! JSR &A143 A6E7 20 4B AC K, JSR &AC4B A6EA A9 01 ). LDA #&01 A6EC 20 6A B9 j9 JSR &B96A A6EF 48 H PHA A6F0 AD D5 10 -U. LDA &10D5 A6F3 F0 13 p. BEQ &A708 A6F5 A9 81 ). LDA #&81 A6F7 20 06 04 .. JSR &0406 A6FA 68 h PLA A6FB 60 ` RTS A6FC 20 6D B9 m9 JSR &B96D A6FF 48 H PHA A700 A9 EA )j LDA #&EA A702 20 A6 B9 &9 JSR &B9A6 A705 8A . TXA A706 D0 ED Pm BNE &A6F5 A708 68 h PLA A709 60 ` RTS A70A 20 EA A5 j% JSR &A5EA A70D 20 7C A7 |' JSR &A77C A710 8C DA 10 .Z. STY &10DA A713 20 70 A0 p JSR &A070 A716 8C D9 10 .Y. STY &10D9 A719 20 C3 A1 C! JSR &A1C3 A71C B0 22 0" BCS &A740 A71E AC DA 10 ,Z. LDY &10DA A721 AD CB 10 -K. LDA &10CB A724 85 CC .L STA &CC A726 AD CC 10 -L. LDA &10CC A729 20 99 A6 .& JSR &A699 A72C 20 73 A0 s JSR &A073 A72F 20 C3 A1 C! JSR &A1C3 A732 B0 0C 0. BCS &A740 A734 20 AE 9F .. JSR &9FAE A737 FE 63 6F ~co INC &6F63,X A73A 6D 6D 61 mma ADC &616D A73D 6E 64 00 nd. ROR &0064 A740 20 AA A6 *& JSR &A6AA A743 18 . CLC A744 AD D9 10 -Y. LDA &10D9 A747 A8 ( TAY A748 65 F2 er ADC &F2 A74A 8D D9 10 .Y. STA &10D9 A74D A5 F3 %s LDA &F3 A74F 69 00 i. ADC #&00 A751 8D DA 10 .Z. STA &10DA A754 AD 76 10 -v. LDA &1076 A757 2D 77 10 -w. AND &1077 A75A 0D D6 10 .V. ORA &10D6 A75D C9 FF I. CMP #&FF A75F F0 16 p. BEQ &A777 A761 A5 BE %> LDA &BE A763 8D 74 10 .t. STA &1074 A766 A5 BF %? LDA &BF A768 8D 75 10 .u. STA &1075 A76B 20 04 AC ., JSR &AC04 A76E A2 74 "t LDX #&74 A770 A0 10 . LDY #&10 A772 A9 04 ). LDA #&04 A774 4C 06 04 L.. JMP &0406 A777 A9 01 ). LDA #&01 A779 6C BE 00 l>. JMP (&00BE) A77C A9 FF ). LDA #&FF A77E 85 BE .> STA &BE A780 A5 F2 %r LDA &F2 A782 85 BA .: STA &BA A784 A5 F3 %s LDA &F3 A786 85 BB .; STA &BB A788 60 ` RTS A789 A2 00 ". LDX #&00 A78B F0 02 p. BEQ &A78F A78D A2 02 ". LDX #&02 A78F 20 C1 A7 A' JSR &A7C1 A792 9D CA 10 .J. STA &10CA,X A795 A5 CC %L LDA &CC A797 9D C9 10 .I. STA &10C9,X A79A 60 ` RTS A79B 20 27 A3 '# JSR &A327 A79E A5 B0 %0 LDA &B0 A7A0 48 H PHA A7A1 A5 B1 %1 LDA &B1 A7A3 48 H PHA A7A4 20 10 B9 .9 JSR &B910 A7A7 A0 00 . LDY #&00 A7A9 C0 C0 @@ CPY #&C0 A7AB 90 05 .. BCC &A7B2 A7AD B9 00 10 9.. LDA &1000,Y A7B0 B0 03 0. BCS &A7B5 A7B2 B9 00 11 9.. LDA &1100,Y A7B5 91 B0 .0 STA (&B0),Y A7B7 88 . DEY A7B8 D0 EF Po BNE &A7A9 A7BA 68 h PLA A7BB 85 B1 .1 STA &B1 A7BD 68 h PLA A7BE 85 B0 .0 STA &B0 A7C0 60 ` RTS A7C1 AD C9 10 -I. LDA &10C9 A7C4 85 CC .L STA &CC A7C6 20 F1 A5 q% JSR &A5F1 A7C9 D0 07 P. BNE &A7D2 A7CB A9 00 ). LDA #&00 A7CD 20 99 A6 .& JSR &A699 A7D0 F0 2A p* BEQ &A7FC A7D2 AD CA 10 -J. LDA &10CA A7D5 20 99 A6 .& JSR &A699 A7D8 20 C9 A0 I JSR &A0C9 A7DB B0 10 0. BCS &A7ED A7DD C9 3A I: CMP #&3A A7DF D0 14 P. BNE &A7F5 A7E1 20 D3 A9 S) JSR &A9D3 A7E4 20 C9 A0 I JSR &A0C9 A7E7 B0 13 0. BCS &A7FC A7E9 C9 2E I. CMP #&2E A7EB F0 EB pk BEQ &A7D8 A7ED 20 AE 9F .. JSR &9FAE A7F0 CE 64 69 Ndi DEC &6964 A7F3 72 r ??? A7F4 00 . BRK A7F5 85 CC .L STA &CC A7F7 20 C9 A0 I JSR &A0C9 A7FA 90 F1 .q BCC &A7ED A7FC A5 CD %M LDA &CD A7FE 60 ` RTS A7FF 20 61 BA a: JSR &BA61 A802 20 C3 A9 C) JSR &A9C3 A805 20 C2 A2 B" JSR &A2C2 A808 A2 0B ". LDX #&0B A80A A9 20 ) LDA #&20 A80C 20 22 A8 "( JSR &A822 A80F CA J DEX A810 10 FA .z BPL &A80C A812 E8 h INX A813 20 C9 A0 I JSR &A0C9 A816 B0 07 0. BCS &A81F A818 20 22 A8 "( JSR &A822 A81B E0 0B `. CPX #&0B A81D 90 F3 .s BCC &A812 A81F 4C 3B AA L;* JMP &AA3B A822 E0 08 `. CPX #&08 A824 90 04 .. BCC &A82A A826 9D F8 0E .x. STA &0EF8,X A829 60 ` RTS A82A 9D 00 0E ... STA &0E00,X A82D 60 ` RTS A82E 20 04 B8 .8 JSR &B804 A831 20 61 BA a: JSR &BA61 A834 20 6A A0 j JSR &A06A A837 A2 00 ". LDX #&00 A839 20 F1 A5 q% JSR &A5F1 A83C D0 23 P# BNE &A861 A83E 86 AA .* STX &AA A840 20 C3 A1 C! JSR &A1C3 A843 B0 03 0. BCS &A848 A845 4C 8C A1 L.! JMP &A18C A848 20 BB B8 ;8 JSR &B8BB A84B B9 0F 0E 9.. LDA &0E0F,Y A84E 29 7F ). AND #&7F A850 05 AA .* ORA &AA A852 99 0F 0E ... STA &0E0F,Y A855 20 74 A2 t" JSR &A274 A858 20 BF A1 ?! JSR &A1BF A85B B0 EB 0k BCS &A848 A85D 90 C0 .@ BCC &A81F A85F A2 80 ". LDX #&80 A861 20 C9 A0 I JSR &A0C9 A864 B0 D8 0X BCS &A83E A866 29 5F )_ AND #&5F A868 C9 4C IL CMP #&4C A86A F0 F3 ps BEQ &A85F A86C 20 AE 9F .. JSR &9FAE A86F CF O ??? A870 61 74 at ADC (&74,X) A872 74 t ??? A873 72 r ??? A874 69 62 ib ADC #&62 A876 75 74 ut ADC &74,X A878 65 00 e. ADC &00 A87A 20 27 A3 '# JSR &A327 A87D 8A . TXA A87E C9 04 I. CMP #&04 A880 F0 1A p. BEQ &A89C A882 C9 02 I. CMP #&02 A884 90 0B .. BCC &A891 A886 20 AE 9F .. JSR &9FAE A889 CB K ??? A88A 6F o ??? A88B 70 74 pt BVS &A901 A88D 69 6F io ADC #&6F A88F 6E 00 A2 n." ROR &A200 A892 FF . ??? A893 98 . TYA A894 F0 02 p. BEQ &A898 A896 A2 00 ". LDX #&00 A898 8E C6 10 .F. STX &10C6 A89B 60 ` RTS A89C 98 . TYA A89D 48 H PHA A89E 20 C3 A9 C) JSR &A9C3 A8A1 20 6B AA k* JSR &AA6B A8A4 68 h PLA A8A5 20 3E A1 >! JSR &A13E A8A8 4D 06 0F M.. EOR &0F06 A8AB 29 30 )0 AND #&30 A8AD 4D 06 0F M.. EOR &0F06 A8B0 8D 06 0F ... STA &0F06 A8B3 4C 3B AA L;* JMP &AA3B A8B6 20 A3 9F #. JSR &9FA3 A8B9 C6 66 Ff DEC &66 A8BB 75 6C ul ADC &6C,X A8BD 6C 00 20 l. JMP (&2000) A8C0 70 A0 p BVS &A862 A8C2 20 C3 A1 C! JSR &A1C3 A8C5 90 03 .. BCC &A8CA A8C7 20 49 A2 I" JSR &A249 A8CA A5 C0 %@ LDA &C0 A8CC 48 H PHA A8CD A5 C1 %A LDA &C1 A8CF 48 H PHA A8D0 38 8 SEC A8D1 A5 C2 %B LDA &C2 A8D3 E5 C0 e@ SBC &C0 A8D5 85 C0 .@ STA &C0 A8D7 A5 C3 %C LDA &C3 A8D9 E5 C1 eA SBC &C1 A8DB 85 C1 .A STA &C1 A8DD AD 7A 10 -z. LDA &107A A8E0 ED 78 10 mx. SBC &1078 A8E3 85 C4 .D STA &C4 A8E5 20 FB A8 {( JSR &A8FB A8E8 AD 79 10 -y. LDA &1079 A8EB 8D 75 10 .u. STA &1075 A8EE AD 78 10 -x. LDA &1078 A8F1 8D 74 10 .t. STA &1074 A8F4 68 h PLA A8F5 85 BD .= STA &BD A8F7 68 h PLA A8F8 85 BC .< STA &BC A8FA 60 ` RTS A8FB A9 00 ). LDA #&00 A8FD 85 C2 .B STA &C2 A8FF A9 02 ). LDA #&02 A901 85 C3 .C STA &C3 A903 AC 05 0F ,.. LDY &0F05 A906 C0 F8 @x CPY #&F8 A908 B0 56 0V BCS &A960 A90A 20 D8 A4 X$ JSR &A4D8 A90D 4C 18 A9 L.) JMP &A918 A910 F0 A4 p$ BEQ &A8B6 A912 20 F1 A1 q! JSR &A1F1 A915 20 B9 A4 9$ JSR &A4B9 A918 98 . TYA A919 90 F5 .u BCC &A910 A91B 84 B0 .0 STY &B0 A91D AC 05 0F ,.. LDY &0F05 A920 C4 B0 D0 CPY &B0 A922 F0 0F p. BEQ &A933 A924 B9 07 0E 9.. LDA &0E07,Y A927 99 0F 0E ... STA &0E0F,Y A92A B9 07 0F 9.. LDA &0F07,Y A92D 99 0F 0F ... STA &0F0F,Y A930 88 . DEY A931 B0 ED 0m BCS &A920 A933 A2 00 ". LDX #&00 A935 20 6D A9 m) JSR &A96D A938 B5 C5 5E LDA &C5,X A93A 99 08 0E ... STA &0E08,Y A93D C8 H INY A93E E8 h INX A93F E0 08 `. CPX #&08 A941 D0 F5 Pu BNE &A938 A943 B5 BB 5; LDA &BB,X A945 88 . DEY A946 99 08 0F ... STA &0F08,Y A949 CA J DEX A94A D0 F7 Pw BNE &A943 A94C 20 74 A2 t" JSR &A274 A94F 98 . TYA A950 48 H PHA A951 AC 05 0F ,.. LDY &0F05 A954 20 7C A6 |& JSR &A67C A957 8C 05 0F ... STY &0F05 A95A 20 3B AA ;* JSR &AA3B A95D 68 h PLA A95E A8 ( TAY A95F 60 ` RTS A960 20 B8 9F 8. JSR &9FB8 A963 BE 43 61 >Ca LDX &6143,Y A966 74 t ??? A967 20 66 75 fu JSR &7566 A96A 6C 6C 00 ll. JMP (&006C) A96D AD 76 10 -v. LDA &1076 A970 29 03 ). AND #&03 A972 0A . ASL A A973 0A . ASL A A974 45 C4 ED EOR &C4 A976 29 FC )| AND #&FC A978 45 C4 ED EOR &C4 A97A 0A . ASL A A97B 0A . ASL A A97C 4D 74 10 Mt. EOR &1074 A97F 29 FC )| AND #&FC A981 4D 74 10 Mt. EOR &1074 A984 0A . ASL A A985 0A . ASL A A986 45 C2 EB EOR &C2 A988 29 FC )| AND #&FC A98A 45 C2 EB EOR &C2 A98C 85 C2 .B STA &C2 A98E 60 ` RTS A98F A9 01 ). LDA #&01 A991 8D C7 10 .G. STA &10C7 A994 60 ` RTS A995 A9 00 ). LDA #&00 A997 8D 75 10 .u. STA &1075 A99A A5 C2 %B LDA &C2 A99C 20 32 A1 2! JSR &A132 A99F C9 03 I. CMP #&03 A9A1 D0 05 P. BNE &A9A8 A9A3 A9 FF ). LDA #&FF A9A5 8D 75 10 .u. STA &1075 A9A8 8D 74 10 .t. STA &1074 A9AB 60 ` RTS A9AC A9 00 ). LDA #&00 A9AE 8D 77 10 .w. STA &1077 A9B1 A5 C2 %B LDA &C2 A9B3 20 2E A1 .! JSR &A12E A9B6 C9 03 I. CMP #&03 A9B8 D0 05 P. BNE &A9BF A9BA A9 FF ). LDA #&FF A9BC 8D 77 10 .w. STA &1077 A9BF 8D 76 10 .v. STA &1076 A9C2 60 ` RTS A9C3 AD C9 10 -I. LDA &10C9 A9C6 85 CC .L STA &CC A9C8 AD CA 10 -J. LDA &10CA A9CB 4C 99 A6 L.& JMP &A699 A9CE 20 F1 A5 q% JSR &A5F1 A9D1 F0 F5 pu BEQ &A9C8 A9D3 20 C9 A0 I JSR &A0C9 A9D6 B0 12 0. BCS &A9EA A9D8 C9 3A I: CMP #&3A A9DA F0 F7 pw BEQ &A9D3 A9DC 38 8 SEC A9DD E9 30 i0 SBC #&30 A9DF 90 09 .. BCC &A9EA A9E1 C9 04 I. CMP #&04 A9E3 B0 05 0. BCS &A9EA A9E5 20 99 A6 .& JSR &A699 A9E8 18 . CLC A9E9 60 ` RTS A9EA 20 AE 9F .. JSR &9FAE A9ED CD 64 72 Mdr CMP &7264 A9F0 69 76 iv ADC #&76 A9F2 65 00 e. ADC &00 A9F4 20 FB B7 {7 JSR &B7FB A9F7 20 61 BA a: JSR &BA61 A9FA 20 6A A0 j JSR &A06A A9FD 98 . TYA A9FE 48 H PHA A9FF 20 87 A1 .! JSR &A187 AA02 20 B8 B8 88 JSR &B8B8 AA05 84 B3 .3 STY &B3 AA07 68 h PLA AA08 A8 ( TAY AA09 20 61 BA a: JSR &BA61 AA0C A5 CD %M LDA &CD AA0E 48 H PHA AA0F 20 6A A0 j JSR &A06A AA12 68 h PLA AA13 C5 CD EM CMP &CD AA15 D0 D3 PS BNE &A9EA AA17 20 C3 A1 C! JSR &A1C3 AA1A 90 0F .. BCC &AA2B AA1C C4 B3 D3 CPY &B3 AA1E F0 0B p. BEQ &AA2B AA20 20 B8 9F 8. JSR &9FB8 AA23 C4 45 DE CPY &45 AA25 78 x SEI AA26 69 73 is ADC #&73 AA28 74 t ??? AA29 73 s ??? AA2A 00 . BRK AA2B A4 B3 $3 LDY &B3 AA2D 20 7C A6 |& JSR &A67C AA30 A2 07 ". LDX #&07 AA32 B5 C5 5E LDA &C5,X AA34 99 07 0E ... STA &0E07,Y AA37 88 . DEY AA38 CA J DEX AA39 10 F7 .w BPL &AA32 AA3B 18 . CLC AA3C F8 x SED AA3D AD 04 0F -.. LDA &0F04 AA40 69 01 i. ADC #&01 AA42 D8 X CLD AA43 8D 04 0F ... STA &0F04 AA46 20 AA AA ** JSR &AAAA AA49 20 C7 AB G+ JSR &ABC7 AA4C A0 2B + LDY #&2B AA4E C6 A2 F" DEC &A2 AA50 30 75 0u BMI &AAC7 AA52 20 A4 AC $, JSR &ACA4 AA55 D0 F5 Pu BNE &AA4C AA57 20 B6 AB 6+ JSR &ABB6 AA5A D0 15 P. BNE &AA71 AA5C 20 CE A9 N) JSR &A9CE AA5F 20 84 AA .* JSR &AA84 AA62 F0 07 p. BEQ &AA6B AA64 AD 82 10 -.. LDA &1082 AA67 C5 CD EM CMP &CD AA69 F0 29 p) BEQ &AA94 AA6B 20 AA AA ** JSR &AAAA AA6E 20 A8 AB (+ JSR &ABA8 AA71 A9 00 ). LDA #&00 AA73 8D 73 10 .s. STA &1073 AA76 8D D5 10 .U. STA &10D5 AA79 20 4B AC K, JSR &AC4B AA7C A5 CD %M LDA &CD AA7E 8D 82 10 ... STA &1082 AA81 4C 6A B9 Lj9 JMP &B96A AA84 A9 6C )l LDA #&6C AA86 20 92 AC ., JSR &AC92 AA89 20 A7 AC ', JSR &ACA7 AA8C 90 04 .. BCC &AA92 AA8E 20 38 A1 8! JSR &A138 AA91 38 8 SEC AA92 29 04 ). AND #&04 AA94 60 ` RTS AA95 B9 D8 AC 9X, LDA &ACD8,Y AA98 20 92 AC ., JSR &AC92 AA9B C8 H INY AA9C B9 D8 AC 9X, LDA &ACD8,Y AA9F C8 H INY AAA0 C9 EA Ij CMP #&EA AAA2 F0 F0 pp BEQ &AA94 AAA4 20 85 AC ., JSR &AC85 AAA7 4C 9C AA L.* JMP &AA9C AAAA 20 31 AB 1+ JSR &AB31 AAAD A9 02 ). LDA #&02 AAAF 20 20 B9 9 JSR &B920 AAB2 A0 00 . LDY #&00 AAB4 84 CE .N STY &CE AAB6 84 CF .O STY &CF AAB8 84 A3 .# STY &A3 AABA C8 H INY AABB 84 A5 .% STY &A5 AABD C8 H INY AABE 84 A4 .$ STY &A4 AAC0 A0 28 ( LDY #&28 AAC2 20 A4 AC $, JSR &ACA4 AAC5 F0 CD pM BEQ &AA94 AAC7 20 FC A6 |& JSR &A6FC AACA C9 12 I. CMP #&12 AACC D0 0E P. BNE &AADC AACE 20 A3 9F #. JSR &9FA3 AAD1 C9 72 Ir CMP #&72 AAD3 65 61 ea ADC &61 AAD5 64 d ??? AAD6 20 6F 6E on JSR &6E6F AAD9 6C 79 00 ly. JMP (&0079) AADC 48 H PHA AADD C9 0A I. CMP #&0A AADF F0 0C p. BEQ &AAED AAE1 29 0F ). AND #&0F AAE3 C9 08 I. CMP #&08 AAE5 90 06 .. BCC &AAED AAE7 20 A3 9F #. JSR &9FA3 AAEA 00 . BRK AAEB 90 0E .. BCC &AAFB AAED 20 84 AB .+ JSR &AB84 AAF0 20 B8 9F 8. JSR &9FB8 AAF3 00 . BRK AAF4 44 D ??? AAF5 72 r ??? AAF6 69 76 iv ADC #&76 AAF8 65 20 e ADC &20 AAFA EA j NOP AAFB 20 CF 9F O. JSR &9FCF AAFE C7 G ??? AAFF 66 61 fa ROR &61 AB01 75 6C ul ADC &6C,X AB03 74 t ??? AB04 20 EA 68 jh JSR &68EA AB07 20 C5 AD E- JSR &ADC5 AB0A 20 CF 9F O. JSR &9FCF AB0D C7 G ??? AB0E 00 . BRK AB0F A9 80 ). LDA #&80 AB11 2C 85 10 ,.. BIT &1085 AB14 B0 0A 0. BCS &AB20 AB16 30 0D 0. BMI &AB25 AB18 0D 85 10 ... ORA &1085 AB1B 8D 85 10 ... STA &1085 AB1E D0 8D P. BNE &AAAD AB20 70 03 p. BVS &AB25 AB22 4A J LSR A AB23 90 F3 .s BCC &AB18 AB25 20 27 A3 '# JSR &A327 AB28 A0 46 F LDY #&46 AB2A CA J DEX AB2B D0 FD P} BNE &AB2A AB2D 88 . DEY AB2E D0 FA Pz BNE &AB2A AB30 60 ` RTS AB31 20 27 A3 '# JSR &A327 AB34 A5 CD %M LDA &CD AB36 A8 ( TAY AB37 CD 83 10 M.. CMP &1083 AB3A D0 05 P. BNE &AB41 AB3C 20 84 AA .* JSR &AA84 AB3F D0 61 Pa BNE &ABA2 AB41 8C 83 10 ... STY &1083 AB44 A9 3A ): LDA #&3A AB46 20 9B AC ., JSR &AC9B AB49 A9 23 )# LDA #&23 AB4B 20 85 AC ., JSR &AC85 AB4E B9 94 AB 9.+ LDA &AB94,Y AB51 20 85 AC ., JSR &AC85 AB54 98 . TYA AB55 6A j ROR A AB56 A0 33 3 LDY #&33 AB58 20 A4 AC $, JSR &ACA4 AB5B AC 83 10 ,.. LDY &1083 AB5E 29 08 ). AND #&08 AB60 F0 DF p_ BEQ &AB41 AB62 A9 FF ). LDA #&FF AB64 8D 82 10 ... STA &1082 AB67 20 84 AA .* JSR &AA84 AB6A D0 A3 P# BNE &AB0F AB6C 08 . PHP AB6D 58 X CLI AB6E 28 ( PLP AB6F 24 FF $. BIT &FF AB71 10 F4 .t BPL &AB67 AB73 20 84 AB .+ JSR &AB84 AB76 20 99 B9 .9 JSR &B999 AB79 20 C8 9F H. JSR &9FC8 AB7C 11 45 .E ORA (&45),Y AB7E 73 s ??? AB7F 63 c ??? AB80 61 70 ap ADC (&70,X) AB82 65 00 e. ADC &00 AB84 A9 01 ). LDA #&01 AB86 8D 82 FE ..~ STA &FE82 AB89 AA * TAX AB8A CA J DEX AB8B 8E 82 FE ..~ STX &FE82 AB8E 20 B9 AC 9, JSR &ACB9 AB91 4C FC A6 L|& JMP &A6FC AB94 48 H PHA AB95 88 . DEY AB96 68 h PLA AB97 A8 ( TAY AB98 48 H PHA AB99 A9 FF ). LDA #&FF AB9B 8D 74 10 .t. STA &1074 AB9E 8D 75 10 .u. STA &1075 ABA1 68 h PLA ABA2 60 ` RTS ABA3 A9 01 ). LDA #&01 ABA5 20 D6 AB V+ JSR &ABD6 ABA8 A9 01 ). LDA #&01 ABAA 20 20 B9 9 JSR &B920 ABAD A9 53 )S LDA #&53 ABAF D0 0C P. BNE &ABBD ABB1 A9 00 ). LDA #&00 ABB3 20 D6 AB V+ JSR &ABD6 ABB6 A9 00 ). LDA #&00 ABB8 20 20 B9 9 JSR &B920 ABBB A9 4B )K LDA #&4B ABBD 85 A1 .! STA &A1 ABBF A9 00 ). LDA #&00 ABC1 85 A6 .& STA &A6 ABC3 A9 0E ). LDA #&0E ABC5 85 A7 .' STA &A7 ABC7 A9 0A ). LDA #&0A ABC9 85 A2 ." STA &A2 ABCB 60 ` RTS ABCC AD 80 10 -.. LDA &1080 ABCF 48 H PHA ABD0 AD D5 10 -U. LDA &10D5 ABD3 4C F2 AB Lr+ JMP &ABF2 ABD6 48 H PHA ABD7 8D 80 10 ... STA &1080 ABDA A5 BC %< LDA &BC ABDC 8D 72 10 .r. STA &1072 ABDF A5 BD %= LDA &BD ABE1 8D 73 10 .s. STA &1073 ABE4 AD 74 10 -t. LDA &1074 ABE7 2D 75 10 -u. AND &1075 ABEA 0D D6 10 .V. ORA &10D6 ABED 49 FF I. EOR #&FF ABEF 8D D5 10 .U. STA &10D5 ABF2 38 8 SEC ABF3 F0 0D p. BEQ &AC02 ABF5 20 04 AC ., JSR &AC04 ABF8 A2 72 "r LDX #&72 ABFA A0 10 . LDY #&10 ABFC 68 h PLA ABFD 48 H PHA ABFE 20 06 04 .. JSR &0406 AC01 18 . CLC AC02 68 h PLA AC03 60 ` RTS AC04 48 H PHA AC05 A9 C1 )A LDA #&C1 AC07 20 06 04 .. JSR &0406 AC0A 90 F9 .y BCC &AC05 AC0C 68 h PLA AC0D 60 ` RTS AC0E 20 A7 AC ', JSR &ACA7 AC11 D0 1F P. BNE &AC32 AC13 20 C7 AB G+ JSR &ABC7 AC16 E6 CE fN INC &CE AC18 A9 00 ). LDA #&00 AC1A 85 CF .O STA &CF AC1C AD 7C 10 -|. LDA &107C AC1F 18 . CLC AC20 6D 73 10 ms. ADC &1073 AC23 8D 73 10 .s. STA &1073 AC26 90 23 .# BCC &AC4B AC28 EE 74 10 nt. INC &1074 AC2B D0 1E P. BNE &AC4B AC2D EE 75 10 nu. INC &1075 AC30 B0 19 0. BCS &AC4B AC32 C6 A2 F" DEC &A2 AC34 10 03 .. BPL &AC39 AC36 4C C7 AA LG* JMP &AAC7 AC39 A0 04 . LDY #&04 AC3B B9 40 10 9@. LDA &1040,Y AC3E 99 A3 00 .#. STA &00A3,Y AC41 88 . DEY AC42 10 F7 .w BPL &AC3B AC44 8A . TXA AC45 48 H PHA AC46 20 CC AB L+ JSR &ABCC AC49 68 h PLA AC4A AA * TAX AC4B A5 A5 %% LDA &A5 AC4D F0 42 pB BEQ &AC91 AC4F A0 04 . LDY #&04 AC51 B9 A3 00 9#. LDA &00A3,Y AC54 99 40 10 .@. STA &1040,Y AC57 88 . DEY AC58 10 F7 .w BPL &AC51 AC5A A5 A1 %! LDA &A1 AC5C 20 92 AC ., JSR &AC92 AC5F A5 CE %N LDA &CE AC61 20 85 AC ., JSR &AC85 AC64 A5 CF %O LDA &CF AC66 20 85 AC ., JSR &AC85 AC69 A9 0A ). LDA #&0A AC6B 38 8 SEC AC6C E5 CF eO SBC &CF AC6E 8D 7C 10 .|. STA &107C AC71 A5 A5 %% LDA &A5 AC73 C9 01 I. CMP #&01 AC75 D0 09 P. BNE &AC80 AC77 A5 A4 %$ LDA &A4 AC79 F0 05 p. BEQ &AC80 AC7B CD 7C 10 M|. CMP &107C AC7E 90 03 .. BCC &AC83 AC80 AD 7C 10 -|. LDA &107C AC83 09 20 . ORA #&20 AC85 48 H PHA AC86 AD 80 FE -.~ LDA &FE80 AC89 29 20 ) AND #&20 AC8B D0 F9 Py BNE &AC86 AC8D 68 h PLA AC8E 8D 81 FE ..~ STA &FE81 AC91 60 ` RTS AC92 48 H PHA AC93 A5 CD %M LDA &CD AC95 6A j ROR A AC96 68 h PLA AC97 90 02 .. BCC &AC9B AC99 49 C0 I@ EOR #&C0 AC9B 2C 80 FE ,.~ BIT &FE80 AC9E 30 FB 0{ BMI &AC9B ACA0 8D 80 FE ..~ STA &FE80 ACA3 60 ` RTS ACA4 20 95 AA .* JSR &AA95 ACA7 20 AE AC ., JSR &ACAE ACAA AD 81 FE -.~ LDA &FE81 ACAD 60 ` RTS ACAE 2C 80 FE ,.~ BIT &FE80 ACB1 30 FB 0{ BMI &ACAE ACB3 2C 80 FE ,.~ BIT &FE80 ACB6 30 F6 0v BMI &ACAE ACB8 60 ` RTS ACB9 20 A4 B9 $9 JSR &B9A4 ACBC 8A . TXA ACBD 29 30 )0 AND #&30 ACBF 4A J LSR A ACC0 4A J LSR A ACC1 85 B0 .0 STA &B0 ACC3 4A J LSR A ACC4 65 B0 e0 ADC &B0 ACC6 A8 ( TAY ACC7 20 95 AA .* JSR &AA95 ACCA A0 18 . LDY #&18 ACCC A2 03 ". LDX #&03 ACCE 20 95 AA .* JSR &AA95 ACD1 CA J DEX ACD2 D0 FA Pz BNE &ACCE ACD4 8E 85 10 ... STX &1085 ACD7 60 ` RTS ACD8 35 0D 5. AND &0D,X ACDA 02 . ??? ACDB 08 . PHP ACDC C0 EA @j CPY #&EA ACDE 35 0D 5. AND &0D,X ACE0 03 . ??? ACE1 08 . PHP ACE2 C0 EA @j CPY #&EA ACE4 35 0D 5. AND &0D,X ACE6 03 . ??? ACE7 08 . PHP ACE8 C7 G ??? ACE9 EA j NOP ACEA 35 0D 5. AND &0D,X ACEC 0C . ??? ACED 0A . ASL A ACEE C8 H INY ACEF EA j NOP ACF0 35 10 5. AND &10,X ACF2 FF . ??? ACF3 FF . ??? ACF4 00 . BRK ACF5 EA j NOP ACF6 35 18 5. AND &18,X ACF8 FF . ??? ACF9 FF . ??? ACFA 00 . BRK ACFB EA j NOP ACFC 3A : ??? ACFD 17 . ??? ACFE C1 EA Aj CMP (&EA,X) AD00 69 00 i. ADC #&00 AD02 EA j NOP AD03 5F _ ??? AD04 00 . BRK AD05 08 . PHP AD06 22 " ??? AD07 EA j NOP AD08 3D 06 EA =.j AND &EA06,X AD0B 7D 23 EA }#j ADC &EA23,X AD0E AC D5 10 ,U. LDY &10D5 ; more bits copied to NMI routine at 0d0a AD11 F0 09 p. BEQ &AD1C AD13 AD E5 FE -e~ LDA &FEE5 ; tube AD16 8D 84 FE ..~ STA &FE84 AD19 4C 23 0D L#. JMP &0D23 AD1C B1 A6 1& LDA (&A6),Y AD1E 8D 84 FE ..~ STA &FE84 AD21 48 H PHA ; nmi routine copied to 0d00 AD22 98 . TYA AD23 48 H PHA AD24 AD 80 FE -.~ LDA &FE80 AD27 29 04 ). AND #&04 AD29 F0 27 p' BEQ &AD52 AD2B AD 84 FE -.~ LDA &FE84 AD2E A4 A5 $% LDY &A5 AD30 F0 1C p. BEQ &AD4E AD32 AC D5 10 ,U. LDY &10D5 AD35 F0 05 p. BEQ &AD3C AD37 8D E5 FE .e~ STA &FEE5 ; tube AD3A D0 08 P. BNE &AD44 AD3C 91 A6 .& STA (&A6),Y AD3E E6 A6 f& INC &A6 AD40 D0 02 P. BNE &AD44 AD42 E6 A7 f' INC &A7 AD44 C6 A3 F# DEC &A3 AD46 D0 06 P. BNE &AD4E AD48 C6 A4 F$ DEC &A4 AD4A D0 02 P. BNE &AD4E AD4C C6 A5 F% DEC &A5 AD4E 68 h PLA AD4F A8 ( TAY AD50 68 h PLA AD51 40 @ RTI ; nmi routine copied to 0d00 (just an rti?) AD52 AD 80 FE -.~ LDA &FE80 AD55 29 08 ). AND #&08 AD57 F0 F5 pu BEQ &AD4E AD59 A5 F4 %t LDA &F4 AD5B 48 H PHA AD5C A9 00 ). LDA #&00 AD5E 85 F4 .t STA &F4 AD60 8D 30 FE .0~ STA &FE30 AD63 20 0E AC ., JSR &AC0E AD66 68 h PLA AD67 85 F4 .t STA &F4 AD69 8D 30 FE .0~ STA &FE30 AD6C 38 8 SEC AD6D B0 DF 0_ BCS &AD4E AD6F 48 H PHA ; nmi routine copied to 0d00 AD70 98 . TYA AD71 48 H PHA AD72 AD 80 FE -.~ LDA &FE80 AD75 29 04 ). AND #&04 AD77 F0 0D p. BEQ &AD86 AD79 AD 84 FE -.~ LDA &FE84 AD7C A0 00 . LDY #&00 AD7E 91 A6 .& STA (&A6),Y AD80 E6 A6 f& INC &A6 AD82 D0 02 P. BNE &AD86 AD84 E6 A7 f' INC &A7 AD86 68 h PLA AD87 A8 ( TAY AD88 68 h PLA AD89 40 @ RTI AD8A 48 H PHA ; nmi routine copied to 0d00 AD8B 98 . TYA AD8C 48 H PHA AD8D AD 80 FE -.~ LDA &FE80 AD90 29 04 ). AND #&04 AD92 F0 0D p. BEQ &ADA1 AD94 A0 00 . LDY #&00 AD96 B1 A6 1& LDA (&A6),Y AD98 8D 84 FE ..~ STA &FE84 AD9B E6 A6 f& INC &A6 AD9D D0 02 P. BNE &ADA1 AD9F E6 A7 f' INC &A7 ADA1 68 h PLA ADA2 A8 ( TAY ADA3 68 h PLA ADA4 40 @ RTI ADA5 48 H PHA ; nmi routine copied to 0d00 ADA6 AD 80 FE -.~ LDA &FE80 ADA9 29 04 ). AND #&04 ADAB F0 06 p. BEQ &ADB3 ADAD AD 84 FE -.~ LDA &FE84 ADB0 8D E5 FE .e~ STA &FEE5 ; tube ADB3 68 h PLA ADB4 40 @ RTI ADB5 48 H PHA ; nmi routine copied to 0d00 ADB6 AD 80 FE -.~ LDA &FE80 ADB9 29 04 ). AND #&04 ADBB F0 06 p. BEQ &ADC3 ADBD AD E5 FE -e~ LDA &FEE5 ; tube ADC0 8D 84 FE ..~ STA &FE84 ADC3 68 h PLA ADC4 40 @ RTI ADC5 20 DF AD _- JSR &ADDF ADC8 20 CF 9F O. JSR &9FCF ADCB 00 . BRK ADCC 20 61 74 at JSR &7461 ADCF 20 A5 CE %N JSR &CEA5 ADD2 20 DF AD _- JSR &ADDF ADD5 20 CF 9F O. JSR &9FCF ADD8 00 . BRK ADD9 2F / ??? ADDA A0 30 0 LDY #&30 ADDC 20 A4 AC $, JSR &ACA4 ADDF 48 H PHA ADE0 20 38 A1 8! JSR &A138 ADE3 20 45 A0 E JSR &A045 ADE6 9D 00 01 ... STA &0100,X ADE9 E8 h INX ADEA 68 h PLA ADEB 20 45 A0 E JSR &A045 ADEE 9D 00 01 ... STA &0100,X ADF1 E8 h INX ADF2 60 ` RTS ADF3 A2 11 ". LDX #&11 ADF5 A0 15 . LDY #&15 ADF7 60 ` RTS ADF8 20 27 A3 '# JSR &A327 ADFB A9 77 )w LDA #&77 ADFD 4C F4 FF Lt. JMP &FFF4 AE00 20 F8 AD x- JSR &ADF8 AE03 A9 00 ). LDA #&00 AE05 18 . CLC AE06 69 20 i ADC #&20 AE08 F0 ED pm BEQ &ADF7 AE0A A8 ( TAY AE0B 20 1B AE .. JSR &AE1B AE0E D0 F5 Pu BNE &AE05 AE10 A9 20 ) LDA #&20 AE12 8D 86 10 ... STA &1086 AE15 98 . TYA AE16 F0 E8 ph BEQ &AE00 AE18 20 0D B1 .1 JSR &B10D AE1B 48 H PHA AE1C 20 8C B0 .0 JSR &B08C AE1F B0 46 0F BCS &AE67 AE21 B9 1B 11 9.. LDA &111B,Y AE24 49 FF I. EOR #&FF AE26 2D C0 10 -@. AND &10C0 AE29 8D C0 10 .@. STA &10C0 AE2C B9 17 11 9.. LDA &1117,Y AE2F 29 60 )` AND #&60 AE31 F0 34 p4 BEQ &AE67 AE33 20 6C AE l. JSR &AE6C AE36 B9 17 11 9.. LDA &1117,Y AE39 2D 86 10 -.. AND &1086 AE3C F0 26 p& BEQ &AE64 AE3E AE C3 10 .C. LDX &10C3 AE41 B9 14 11 9.. LDA &1114,Y AE44 9D 0C 0F ... STA &0F0C,X AE47 B9 15 11 9.. LDA &1115,Y AE4A 9D 0D 0F ... STA &0F0D,X AE4D B9 16 11 9.. LDA &1116,Y AE50 20 3E A1 >! JSR &A13E AE53 5D 0E 0F ].. EOR &0F0E,X AE56 29 30 )0 AND #&30 AE58 5D 0E 0F ].. EOR &0F0E,X AE5B 9D 0E 0F ... STA &0F0E,X AE5E 20 3B AA ;* JSR &AA3B AE61 AC C2 10 ,B. LDY &10C2 AE64 20 B6 B1 61 JSR &B1B6 AE67 AE C5 10 .E. LDX &10C5 AE6A 68 h PLA AE6B 60 ` RTS AE6C 20 87 AE .. JSR &AE87 AE6F A2 06 ". LDX #&06 AE71 B9 0C 11 9.. LDA &110C,Y AE74 95 C5 .E STA &C5,X AE76 88 . DEY AE77 88 . DEY AE78 CA J DEX AE79 10 F6 .v BPL &AE71 AE7B 20 AC A1 ,! JSR &A1AC AE7E 90 22 ." BCC &AEA2 AE80 8C C3 10 .C. STY &10C3 AE83 AC C2 10 ,B. LDY &10C2 AE86 60 ` RTS AE87 B9 0E 11 9.. LDA &110E,Y AE8A 29 7F ). AND #&7F AE8C 85 CC .L STA &CC AE8E B9 17 11 9.. LDA &1117,Y AE91 4C 99 A6 L.& JMP &A699 AE94 20 27 A3 '# JSR &A327 AE97 AD 04 0F -.. LDA &0F04 AE9A 20 C2 A2 B" JSR &A2C2 AE9D CD 04 0F M.. CMP &0F04 AEA0 F0 E4 pd BEQ &AE86 AEA2 20 A3 9F #. JSR &9FA3 AEA5 C8 H INY AEA6 63 c ??? AEA7 68 h PLA AEA8 61 6E an ADC (&6E,X) AEAA 67 g ??? AEAB 65 64 ed ADC &64 AEAD 00 . BRK AEAE 29 C0 )@ AND #&C0 AEB0 D0 06 P. BNE &AEB8 AEB2 20 27 A3 '# JSR &A327 AEB5 4C 10 AE L.. JMP &AE10 AEB8 20 50 A3 P# JSR &A350 AEBB 86 BA .: STX &BA AEBD 84 BB .; STY &BB AEBF 85 B4 .4 STA &B4 AEC1 24 B4 $4 BIT &B4 AEC3 08 . PHP AEC4 20 70 A0 p JSR &A070 AEC7 20 FB B7 {7 JSR &B7FB AECA 20 C3 A1 C! JSR &A1C3 AECD B0 1A 0. BCS &AEE9 AECF 28 ( PLP AED0 50 03 P. BVC &AED5 AED2 A9 00 ). LDA #&00 AED4 60 ` RTS AED5 08 . PHP AED6 A9 00 ). LDA #&00 AED8 A2 07 ". LDX #&07 AEDA 95 BC .< STA &BC,X AEDC 9D 74 10 .t. STA &1074,X AEDF CA J DEX AEE0 10 F8 .x BPL &AEDA AEE2 A9 40 )@ LDA #&40 AEE4 85 C3 .C STA &C3 AEE6 20 BF A8 ?( JSR &A8BF AEE9 28 ( PLP AEEA 08 . PHP AEEB 70 03 p. BVS &AEF0 AEED 20 A8 B8 (8 JSR &B8A8 AEF0 20 B6 AF 6/ JSR &AFB6 AEF3 90 0E .. BCC &AF03 AEF5 B9 0C 11 9.. LDA &110C,Y AEF8 10 20 . BPL &AF1A AEFA 24 B4 $4 BIT &B4 AEFC 30 1C 0. BMI &AF1A AEFE 20 B1 AF 1/ JSR &AFB1 AF01 B0 F2 0r BCS &AEF5 AF03 AC C2 10 ,B. LDY &10C2 AF06 D0 1B P. BNE &AF23 AF08 20 B8 9F 8. JSR &9FB8 AF0B C0 54 @T CPY #&54 AF0D 6F o ??? AF0E 6F o ??? AF0F 20 6D 61 ma JSR &616D AF12 6E 79 20 ny ROR &2079 AF15 6F o ??? AF16 70 65 pe BVS &AF7D AF18 6E 00 20 n. ROR &2000 AF1B B8 8 CLV AF1C 9F . ??? AF1D C2 B ??? AF1E 4F O ??? AF1F 70 65 pe BVS &AF86 AF21 6E 00 A9 n.) ROR &A900 AF24 08 . PHP AF25 8D C4 10 .D. STA &10C4 AF28 BD 08 0E =.. LDA &0E08,X AF2B 99 00 11 ... STA &1100,Y AF2E C8 H INY AF2F BD 08 0F =.. LDA &0F08,X AF32 99 00 11 ... STA &1100,Y AF35 C8 H INY AF36 E8 h INX AF37 CE C4 10 ND. DEC &10C4 AF3A D0 EC Pl BNE &AF28 AF3C A2 10 ". LDX #&10 AF3E A9 00 ). LDA #&00 AF40 99 00 11 ... STA &1100,Y AF43 C8 H INY AF44 CA J DEX AF45 D0 F9 Py BNE &AF40 AF47 AD C2 10 -B. LDA &10C2 AF4A A8 ( TAY AF4B 20 37 A1 7! JSR &A137 AF4E 69 11 i. ADC #&11 AF50 99 13 11 ... STA &1113,Y AF53 AD C1 10 -A. LDA &10C1 AF56 99 1B 11 ... STA &111B,Y AF59 0D C0 10 .@. ORA &10C0 AF5C 8D C0 10 .@. STA &10C0 AF5F B9 09 11 9.. LDA &1109,Y AF62 69 FF i. ADC #&FF AF64 B9 0B 11 9.. LDA &110B,Y AF67 69 00 i. ADC #&00 AF69 99 19 11 ... STA &1119,Y AF6C B9 0D 11 9.. LDA &110D,Y AF6F 09 0F .. ORA #&0F AF71 69 00 i. ADC #&00 AF73 20 30 A1 0! JSR &A130 AF76 99 1A 11 ... STA &111A,Y AF79 28 ( PLP AF7A 50 2E P. BVC &AFAA AF7C 30 08 0. BMI &AF86 AF7E A9 80 ). LDA #&80 AF80 19 0C 11 ... ORA &110C,Y AF83 99 0C 11 ... STA &110C,Y AF86 B9 09 11 9.. LDA &1109,Y AF89 99 14 11 ... STA &1114,Y AF8C B9 0B 11 9.. LDA &110B,Y AF8F 99 15 11 ... STA &1115,Y AF92 B9 0D 11 9.. LDA &110D,Y AF95 20 30 A1 0! JSR &A130 AF98 99 16 11 ... STA &1116,Y AF9B A5 CD %M LDA &CD AF9D 19 17 11 ... ORA &1117,Y AFA0 99 17 11 ... STA &1117,Y AFA3 98 . TYA AFA4 20 37 A1 7! JSR &A137 AFA7 09 10 .. ORA #&10 AFA9 60 ` RTS AFAA A9 20 ) LDA #&20 AFAC 99 17 11 ... STA &1117,Y AFAF D0 EA Pj BNE &AF9B AFB1 8A . TXA AFB2 48 H PHA AFB3 4C F5 AF Lu/ JMP &AFF5 AFB6 A9 00 ). LDA #&00 AFB8 8D C2 10 .B. STA &10C2 AFBB A9 08 ). LDA #&08 AFBD 85 B5 .5 STA &B5 AFBF 98 . TYA AFC0 AA * TAX AFC1 A0 A0 LDY #&A0 AFC3 84 B3 .3 STY &B3 AFC5 8A . TXA AFC6 48 H PHA AFC7 A9 08 ). LDA #&08 AFC9 85 B2 .2 STA &B2 AFCB A5 B5 %5 LDA &B5 AFCD 2C C0 10 ,@. BIT &10C0 AFD0 F0 1D p. BEQ &AFEF AFD2 B9 17 11 9.. LDA &1117,Y AFD5 45 CD EM EOR &CD AFD7 29 03 ). AND #&03 AFD9 D0 1A P. BNE &AFF5 AFDB BD 08 0E =.. LDA &0E08,X AFDE 59 00 11 Y.. EOR &1100,Y AFE1 29 7F ). AND #&7F AFE3 D0 10 P. BNE &AFF5 AFE5 E8 h INX AFE6 C8 H INY AFE7 C8 H INY AFE8 C6 B2 F2 DEC &B2 AFEA D0 EF Po BNE &AFDB AFEC 38 8 SEC AFED B0 10 0. BCS &AFFF AFEF 8C C2 10 .B. STY &10C2 AFF2 8D C1 10 .A. STA &10C1 AFF5 38 8 SEC AFF6 A5 B3 %3 LDA &B3 AFF8 E9 20 i SBC #&20 AFFA 85 B3 .3 STA &B3 AFFC 06 B5 .5 ASL &B5 AFFE 18 . CLC AFFF 68 h PLA B000 AA * TAX B001 A4 B3 $3 LDY &B3 B003 A5 B5 %5 LDA &B5 B005 B0 02 0. BCS &B009 B007 D0 BA P: BNE &AFC3 B009 60 ` RTS B00A 20 26 B0 &0 JSR &B026 B00D AD C0 10 -@. LDA &10C0 B010 48 H PHA B011 A9 00 ). LDA #&00 B013 8D 86 10 ... STA &1086 B016 98 . TYA B017 D0 05 P. BNE &B01E B019 20 03 AE .. JSR &AE03 B01C F0 03 p. BEQ &B021 B01E 20 10 AE .. JSR &AE10 B021 68 h PLA B022 8D C0 10 .@. STA &10C0 B025 60 ` RTS B026 48 H PHA B027 8A . TXA B028 48 H PHA B029 A9 00 ). LDA #&00 B02B BA : TSX B02C 9D 09 01 ... STA &0109,X B02F 68 h PLA B030 AA * TAX B031 68 h PLA B032 60 ` RTS B033 20 27 A3 '# JSR &A327 B036 C9 FF I. CMP #&FF B038 F0 D0 pP BEQ &B00A B03A C0 00 @. CPY #&00 B03C F0 0E p. BEQ &B04C B03E C9 03 I. CMP #&03 B040 B0 23 0# BCS &B065 B042 20 26 B0 &0 JSR &B026 B045 C9 01 I. CMP #&01 B047 D0 24 P$ BNE &B06D B049 4C 05 B3 L.3 JMP &B305 B04C C9 02 I. CMP #&02 B04E B0 15 0. BCS &B065 B050 20 26 B0 &0 JSR &B026 B053 F0 11 p. BEQ &B066 B055 A9 FF ). LDA #&FF B057 95 02 .. STA &02,X B059 95 03 .. STA &03,X B05B AD D9 10 -Y. LDA &10D9 B05E 95 00 .. STA &00,X B060 AD DA 10 -Z. LDA &10DA B063 95 01 .. STA &01,X B065 60 ` RTS B066 A9 04 ). LDA #&04 B068 BA : TSX B069 9D 05 01 ... STA &0105,X B06C 60 ` RTS B06D 20 0D B1 .1 JSR &B10D B070 8C C2 10 .B. STY &10C2 B073 0A . ASL A B074 6D C2 10 mB. ADC &10C2 B077 A8 ( TAY B078 B9 10 11 9.. LDA &1110,Y B07B 95 00 .. STA &00,X B07D B9 11 11 9.. LDA &1111,Y B080 95 01 .. STA &01,X B082 B9 12 11 9.. LDA &1112,Y B085 95 02 .. STA &02,X B087 A9 00 ). LDA #&00 B089 95 03 .. STA &03,X B08B 60 ` RTS B08C 48 H PHA B08D 8E C5 10 .E. STX &10C5 B090 98 . TYA B091 29 E0 )` AND #&E0 B093 8D C2 10 .B. STA &10C2 B096 F0 13 p. BEQ &B0AB B098 20 37 A1 7! JSR &A137 B09B A8 ( TAY B09C A9 00 ). LDA #&00 B09E 38 8 SEC B09F 6A j ROR A B0A0 88 . DEY B0A1 D0 FC P| BNE &B09F B0A3 AC C2 10 ,B. LDY &10C2 B0A6 2C C0 10 ,@. BIT &10C0 B0A9 D0 03 P. BNE &B0AE B0AB 68 h PLA B0AC 38 8 SEC B0AD 60 ` RTS B0AE 68 h PLA B0AF 18 . CLC B0B0 60 ` RTS B0B1 48 H PHA B0B2 8A . TXA B0B3 4C B8 B0 L80 JMP &B0B8 B0B6 48 H PHA B0B7 98 . TYA B0B8 C9 10 I. CMP #&10 B0BA 90 04 .. BCC &B0C0 B0BC C9 18 I. CMP #&18 B0BE 90 02 .. BCC &B0C2 B0C0 A9 08 ). LDA #&08 B0C2 20 3D A1 =! JSR &A13D B0C5 A8 ( TAY B0C6 68 h PLA B0C7 60 ` RTS B0C8 A9 C6 )F LDA #&C6 B0CA 20 A6 B9 &9 JSR &B9A6 B0CD 8A . TXA B0CE F0 09 p. BEQ &B0D9 B0D0 20 EC B0 l0 JSR &B0EC B0D3 D0 04 P. BNE &B0D9 B0D5 A9 C6 )F LDA #&C6 B0D7 D0 0C P. BNE &B0E5 B0D9 A9 C7 )G LDA #&C7 B0DB 20 A6 B9 &9 JSR &B9A6 B0DE 20 EC B0 l0 JSR &B0EC B0E1 D0 11 P. BNE &B0F4 B0E3 A9 C7 )G LDA #&C7 B0E5 A2 00 ". LDX #&00 B0E7 A0 00 . LDY #&00 B0E9 4C F4 FF Lt. JMP &FFF4 B0EC 8A . TXA B0ED A8 ( TAY B0EE 20 B6 B0 60 JSR &B0B6 B0F1 CC C2 10 LB. CPY &10C2 B0F4 60 ` RTS B0F5 48 H PHA B0F6 98 . TYA B0F7 48 H PHA B0F8 8A . TXA B0F9 A8 ( TAY B0FA 20 0D B1 .1 JSR &B10D B0FD 98 . TYA B0FE 20 77 B3 w3 JSR &B377 B101 D0 04 P. BNE &B107 B103 A2 FF ". LDX #&FF B105 D0 02 P. BNE &B109 B107 A2 00 ". LDX #&00 B109 68 h PLA B10A A8 ( TAY B10B 68 h PLA B10C 60 ` RTS B10D 20 B6 B0 60 JSR &B0B6 B110 20 8C B0 .0 JSR &B08C B113 90 F7 .w BCC &B10C B115 20 C8 B0 H0 JSR &B0C8 B118 20 B8 9F 8. JSR &9FB8 B11B DE 43 68 ^Ch DEC &6843,X B11E 61 6E an ADC (&6E,X) B120 6E 65 6C nel ROR &6C65 B123 00 . BRK B124 20 B8 9F 8. JSR &9FB8 B127 DF _ ??? B128 45 4F EO EOR &4F B12A 46 00 F. LSR &00 B12C 20 50 A3 P# JSR &A350 B12F 20 0D B1 .1 JSR &B10D B132 98 . TYA B133 20 77 B3 w3 JSR &B377 B136 D0 13 P. BNE &B14B B138 B9 17 11 9.. LDA &1117,Y B13B 29 10 ). AND #&10 B13D D0 E5 Pe BNE &B124 B13F A9 10 ). LDA #&10 B141 20 A7 B1 '1 JSR &B1A7 B144 AE C5 10 .E. LDX &10C5 B147 A9 FE )~ LDA #&FE B149 38 8 SEC B14A 60 ` RTS B14B B9 17 11 9.. LDA &1117,Y B14E 30 0A 0. BMI &B15A B150 20 87 AE .. JSR &AE87 B153 20 B6 B1 61 JSR &B1B6 B156 38 8 SEC B157 20 BE B1 >1 JSR &B1BE B15A B9 10 11 9.. LDA &1110,Y B15D 85 BA .: STA &BA B15F B9 13 11 9.. LDA &1113,Y B162 85 BB .; STA &BB B164 A0 00 . LDY #&00 B166 B1 BA 1: LDA (&BA),Y B168 48 H PHA B169 AC C2 10 ,B. LDY &10C2 B16C A6 BA &: LDX &BA B16E E8 h INX B16F 8A . TXA B170 99 10 11 ... STA &1110,Y B173 D0 14 P. BNE &B189 B175 18 . CLC B176 B9 11 11 9.. LDA &1111,Y B179 69 01 i. ADC #&01 B17B 99 11 11 ... STA &1111,Y B17E B9 12 11 9.. LDA &1112,Y B181 69 00 i. ADC #&00 B183 99 12 11 ... STA &1112,Y B186 20 AC B1 ,1 JSR &B1AC B189 18 . CLC B18A 68 h PLA B18B 60 ` RTS B18C 18 . CLC B18D B9 0F 11 9.. LDA &110F,Y B190 79 11 11 y.. ADC &1111,Y B193 85 C3 .C STA &C3 B195 99 1C 11 ... STA &111C,Y B198 B9 0D 11 9.. LDA &110D,Y B19B 29 03 ). AND #&03 B19D 79 12 11 y.. ADC &1112,Y B1A0 85 C2 .B STA &C2 B1A2 99 1D 11 ... STA &111D,Y B1A5 A9 80 ). LDA #&80 B1A7 19 17 11 ... ORA &1117,Y B1AA D0 05 P. BNE &B1B1 B1AC A9 7F ). LDA #&7F B1AE 39 17 11 9.. AND &1117,Y B1B1 99 17 11 ... STA &1117,Y B1B4 18 . CLC B1B5 60 ` RTS B1B6 B9 17 11 9.. LDA &1117,Y B1B9 29 40 )@ AND #&40 B1BB F0 43 pC BEQ &B200 B1BD 18 . CLC B1BE 08 . PHP B1BF EE DD 10 n]. INC &10DD B1C2 20 31 AB 1+ JSR &AB31 B1C5 AC C2 10 ,B. LDY &10C2 B1C8 B9 13 11 9.. LDA &1113,Y B1CB 85 BD .= STA &BD B1CD 20 98 AB .+ JSR &AB98 B1D0 A9 00 ). LDA #&00 B1D2 85 BC .< STA &BC B1D4 85 C0 .@ STA &C0 B1D6 A9 01 ). LDA #&01 B1D8 85 C1 .A STA &C1 B1DA 28 ( PLP B1DB B0 17 0. BCS &B1F4 B1DD B9 1C 11 9.. LDA &111C,Y B1E0 85 C3 .C STA &C3 B1E2 B9 1D 11 9.. LDA &111D,Y B1E5 85 C2 .B STA &C2 B1E7 20 E1 A6 a& JSR &A6E1 B1EA AC C2 10 ,B. LDY &10C2 B1ED A9 BF )? LDA #&BF B1EF 20 AE B1 .1 JSR &B1AE B1F2 90 06 .. BCC &B1FA B1F4 20 8C B1 .1 JSR &B18C B1F7 20 D3 A6 S& JSR &A6D3 B1FA CE DD 10 N]. DEC &10DD B1FD AC C2 10 ,B. LDY &10C2 B200 60 ` RTS B201 4C AD B8 L-8 JMP &B8AD B204 20 B8 9F 8. JSR &9FB8 B207 C1 52 AR CMP (&52,X) B209 65 61 ea ADC &61 B20B 64 d ??? B20C 20 6F 6E on JSR &6E6F B20F 6C 79 00 ly. JMP (&0079) B212 20 27 A3 '# JSR &A327 B215 4C 1E B2 L.2 JMP &B21E B218 20 27 A3 '# JSR &A327 B21B 20 0D B1 .1 JSR &B10D B21E 48 H PHA B21F B9 0C 11 9.. LDA &110C,Y B222 30 E0 0` BMI &B204 B224 B9 0E 11 9.. LDA &110E,Y B227 30 D8 0X BMI &B201 B229 20 87 AE .. JSR &AE87 B22C 98 . TYA B22D 18 . CLC B22E 69 04 i. ADC #&04 B230 20 77 B3 w3 JSR &B377 B233 D0 69 Pi BNE &B29E B235 20 6F AE o. JSR &AE6F B238 AE C3 10 .C. LDX &10C3 B23B 38 8 SEC B23C BD 07 0F =.. LDA &0F07,X B23F FD 0F 0F }.. SBC &0F0F,X B242 48 H PHA B243 BD 06 0F =.. LDA &0F06,X B246 FD 0E 0F }.. SBC &0F0E,X B249 29 03 ). AND #&03 B24B D9 1A 11 Y.. CMP &111A,Y B24E D0 1F P. BNE &B26F B250 68 h PLA B251 D9 19 11 Y.. CMP &1119,Y B254 D0 34 P4 BNE &B28A B256 84 B4 .4 STY &B4 B258 8C C2 10 .B. STY &10C2 B25B 20 C8 B0 H0 JSR &B0C8 B25E 20 B8 9F 8. JSR &9FB8 B261 BF ? ??? B262 43 C ??? B263 61 6E an ADC (&6E,X) B265 27 ' ??? B266 74 t ??? B267 20 65 78 ex JSR &7865 B26A 74 t ??? B26B 65 6E en ADC &6E B26D 64 d ??? B26E 00 . BRK B26F B9 1A 11 9.. LDA &111A,Y B272 18 . CLC B273 69 01 i. ADC #&01 B275 99 1A 11 ... STA &111A,Y B278 0A . ASL A B279 0A . ASL A B27A 0A . ASL A B27B 0A . ASL A B27C 5D 0E 0F ].. EOR &0F0E,X B27F 29 30 )0 AND #&30 B281 5D 0E 0F ].. EOR &0F0E,X B284 9D 0E 0F ... STA &0F0E,X B287 68 h PLA B288 A9 00 ). LDA #&00 B28A 9D 0D 0F ... STA &0F0D,X B28D 99 19 11 ... STA &1119,Y B290 A9 00 ). LDA #&00 B292 9D 0C 0F ... STA &0F0C,X B295 20 3B AA ;* JSR &AA3B B298 20 6A B9 j9 JSR &B96A B29B AC C2 10 ,B. LDY &10C2 B29E B9 17 11 9.. LDA &1117,Y B2A1 30 17 0. BMI &B2BA B2A3 20 B6 B1 61 JSR &B1B6 B2A6 B9 14 11 9.. LDA &1114,Y B2A9 D0 0B P. BNE &B2B6 B2AB 98 . TYA B2AC 20 77 B3 w3 JSR &B377 B2AF D0 05 P. BNE &B2B6 B2B1 20 8C B1 .1 JSR &B18C B2B4 D0 04 P. BNE &B2BA B2B6 38 8 SEC B2B7 20 BE B1 >1 JSR &B1BE B2BA B9 10 11 9.. LDA &1110,Y B2BD 85 BA .: STA &BA B2BF B9 13 11 9.. LDA &1113,Y B2C2 85 BB .; STA &BB B2C4 68 h PLA B2C5 A0 00 . LDY #&00 B2C7 91 BA .: STA (&BA),Y B2C9 AC C2 10 ,B. LDY &10C2 B2CC A9 40 )@ LDA #&40 B2CE 20 A7 B1 '1 JSR &B1A7 B2D1 E6 BA f: INC &BA B2D3 A5 BA %: LDA &BA B2D5 99 10 11 ... STA &1110,Y B2D8 D0 13 P. BNE &B2ED B2DA 20 AC B1 ,1 JSR &B1AC B2DD B9 11 11 9.. LDA &1111,Y B2E0 69 01 i. ADC #&01 B2E2 99 11 11 ... STA &1111,Y B2E5 B9 12 11 9.. LDA &1112,Y B2E8 69 00 i. ADC #&00 B2EA 99 12 11 ... STA &1112,Y B2ED 98 . TYA B2EE 20 77 B3 w3 JSR &B377 B2F1 90 11 .. BCC &B304 B2F3 A9 20 ) LDA #&20 B2F5 20 A7 B1 '1 JSR &B1A7 B2F8 A2 02 ". LDX #&02 B2FA B9 10 11 9.. LDA &1110,Y B2FD 99 14 11 ... STA &1114,Y B300 C8 H INY B301 CA J DEX B302 10 F6 .v BPL &B2FA B304 60 ` RTS B305 20 27 A3 '# JSR &A327 B308 20 0D B1 .1 JSR &B10D B30B AC C2 10 ,B. LDY &10C2 B30E 20 8F B3 .3 JSR &B38F B311 B0 2F 0/ BCS &B342 B313 B9 14 11 9.. LDA &1114,Y B316 99 10 11 ... STA &1110,Y B319 B9 15 11 9.. LDA &1115,Y B31C 99 11 11 ... STA &1111,Y B31F B9 16 11 9.. LDA &1116,Y B322 99 12 11 ... STA &1112,Y B325 20 51 B3 Q3 JSR &B351 B328 A5 B6 %6 LDA &B6 B32A 48 H PHA B32B A5 B7 %7 LDA &B7 B32D 48 H PHA B32E A5 B8 %8 LDA &B8 B330 48 H PHA B331 A9 00 ). LDA #&00 B333 20 12 B2 .2 JSR &B212 B336 68 h PLA B337 85 B8 .8 STA &B8 B339 68 h PLA B33A 85 B7 .7 STA &B7 B33C 68 h PLA B33D 85 B6 .6 STA &B6 B33F 4C 0E B3 L.3 JMP &B30E B342 B5 00 5. LDA &00,X B344 99 10 11 ... STA &1110,Y B347 B5 01 5. LDA &01,X B349 99 11 11 ... STA &1111,Y B34C B5 02 5. LDA &02,X B34E 99 12 11 ... STA &1112,Y B351 A9 6F )o LDA #&6F B353 20 AE B1 .1 JSR &B1AE B356 B9 0F 11 9.. LDA &110F,Y B359 79 11 11 y.. ADC &1111,Y B35C 8D C4 10 .D. STA &10C4 B35F B9 0D 11 9.. LDA &110D,Y B362 29 03 ). AND #&03 B364 79 12 11 y.. ADC &1112,Y B367 D9 1D 11 Y.. CMP &111D,Y B36A D0 98 P. BNE &B304 B36C AD C4 10 -D. LDA &10C4 B36F D9 1C 11 Y.. CMP &111C,Y B372 D0 90 P. BNE &B304 B374 4C A5 B1 L%1 JMP &B1A5 B377 AA * TAX B378 B9 12 11 9.. LDA &1112,Y B37B DD 16 11 ].. CMP &1116,X B37E D0 0E P. BNE &B38E B380 B9 11 11 9.. LDA &1111,Y B383 DD 15 11 ].. CMP &1115,X B386 D0 06 P. BNE &B38E B388 B9 10 11 9.. LDA &1110,Y B38B DD 14 11 ].. CMP &1114,X B38E 60 ` RTS B38F B9 14 11 9.. LDA &1114,Y B392 D5 00 U. CMP &00,X B394 B9 15 11 9.. LDA &1115,Y B397 F5 01 u. SBC &01,X B399 B9 16 11 9.. LDA &1116,Y B39C F5 02 u. SBC &02,X B39E 60 ` RTS B39F 4C 2E 21 L.! JMP &212E B3A2 42 B ??? B3A3 4F O ??? B3A4 4F O ??? B3A5 54 T ??? B3A6 0D 45 2E .E. ORA &2E45 B3A9 21 42 !B AND (&42,X) B3AB 4F O ??? B3AC 4F O ??? B3AD 54 T ??? B3AE 0D A5 B3 .%3 ORA &B3A5 B3B1 20 F7 9F w. JSR &9FF7 B3B4 41 63 Ac EOR (&63,X) B3B6 6F o ??? B3B7 72 r ??? B3B8 6E 20 44 n D ROR &4420 B3BB 46 53 FS LSR &53 B3BD 0D 0D 90 ... ORA &900D B3C0 02 . ??? B3C1 A9 FF ). LDA #&FF B3C3 20 26 B0 &0 JSR &B026 B3C6 48 H PHA B3C7 A9 06 ). LDA #&06 B3C9 20 A0 9F . JSR &9FA0 B3CC A2 0D ". LDX #&0D B3CE BD AD B9 =-9 LDA &B9AD,X B3D1 9D 12 02 ... STA &0212,X B3D4 CA J DEX B3D5 10 F7 .w BPL &B3CE B3D7 A9 A8 )( LDA #&A8 B3D9 20 A6 B9 &9 JSR &B9A6 B3DC 84 B1 .1 STY &B1 B3DE 86 B0 .0 STX &B0 B3E0 A2 07 ". LDX #&07 B3E2 A0 1B . LDY #&1B B3E4 B9 A0 B9 9 9 LDA &B9A0,Y B3E7 91 B0 .0 STA (&B0),Y B3E9 C8 H INY B3EA B9 A0 B9 9 9 LDA &B9A0,Y B3ED 91 B0 .0 STA (&B0),Y B3EF C8 H INY B3F0 A5 F4 %t LDA &F4 B3F2 91 B0 .0 STA (&B0),Y B3F4 C8 H INY B3F5 CA J DEX B3F6 D0 EC Pl BNE &B3E4 B3F8 86 CD .M STX &CD B3FA 8C 82 10 ... STY &1082 B3FD 8C 83 10 ... STY &1083 B400 A2 0F ". LDX #&0F B402 20 A0 B9 9 JSR &B9A0 B405 20 10 B9 .9 JSR &B910 B408 A0 D3 S LDY #&D3 B40A B1 B0 10 LDA (&B0),Y B40C 10 33 .3 BPL &B441 B40E 68 h PLA B40F 48 H PHA B410 F0 2F p/ BEQ &B441 B412 A0 D4 T LDY #&D4 B414 B1 B0 10 LDA (&B0),Y B416 30 4F 0O BMI &B467 B418 20 FB B8 {8 JSR &B8FB B41B A0 00 . LDY #&00 B41D B1 B0 10 LDA (&B0),Y B41F C0 C0 @@ CPY #&C0 B421 90 05 .. BCC &B428 B423 99 00 10 ... STA &1000,Y B426 B0 03 0. BCS &B42B B428 99 00 11 ... STA &1100,Y B42B 88 . DEY B42C D0 EF Po BNE &B41D B42E A9 A0 ) LDA #&A0 B430 A8 ( TAY B431 48 H PHA B432 A9 3F )? LDA #&3F B434 20 AE B1 .1 JSR &B1AE B437 68 h PLA B438 99 1D 11 ... STA &111D,Y B43B E9 1F i. SBC #&1F B43D D0 F1 Pq BNE &B430 B43F F0 26 p& BEQ &B467 B441 20 FB B8 {8 JSR &B8FB B444 A9 24 )$ LDA #&24 B446 8D C9 10 .I. STA &10C9 B449 8D CB 10 .K. STA &10CB B44C A0 00 . LDY #&00 B44E 8C CA 10 .J. STY &10CA B451 8C CC 10 .L. STY &10CC B454 A0 00 . LDY #&00 B456 8C C0 10 .@. STY &10C0 B459 8C C8 10 .H. STY &10C8 B45C A0 FF . LDY #&FF B45E 8C C7 10 .G. STY &10C7 B461 8C C6 10 .F. STY &10C6 B464 8C DD 10 .]. STY &10DD B467 A9 EA )j LDA #&EA B469 20 A6 B9 &9 JSR &B9A6 B46C 8A . TXA B46D 49 FF I. EOR #&FF B46F 8D D6 10 .V. STA &10D6 B472 68 h PLA B473 D0 0B P. BNE &B480 B475 20 6B AA k* JSR &AA6B B478 AD 06 0F -.. LDA &0F06 B47B 20 38 A1 8! JSR &A138 B47E D0 01 P. BNE &B481 B480 60 ` RTS B481 A0 B3 3 LDY #&B3 B483 A2 9F ". LDX #&9F B485 C9 02 I. CMP #&02 B487 90 08 .. BCC &B491 B489 F0 04 p. BEQ &B48F B48B A2 A7 "' LDX #&A7 B48D D0 02 P. BNE &B491 B48F A2 A9 ") LDX #&A9 B491 4C F7 FF Lw. JMP &FFF7 B494 48 H PHA ; come here from 9f9d during service request B495 AD 80 FE -.~ LDA &FE80 ; FDC status register B498 29 03 ). AND #&03 ; bits 01 set? B49A D0 4D PM BNE &B4E9 ; nope - jump to PLA and return B49C BD F0 0D =p. LDA &0DF0,X B49F 0A . ASL A B4A0 30 47 0G BMI &B4E9 B4A2 68 h PLA B4A3 C9 01 I. CMP #&01 B4A5 D0 07 P. BNE &B4AE B4A7 C0 17 @. CPY #&17 B4A9 B0 02 0. BCS &B4AD B4AB A0 17 . LDY #&17 B4AD 60 ` RTS B4AE C9 02 I. CMP #&02 B4B0 D0 39 P9 BNE &B4EB B4B2 48 H PHA B4B3 98 . TYA B4B4 48 H PHA B4B5 85 B1 .1 STA &B1 B4B7 0A . ASL A B4B8 1E F0 0D .p. ASL &0DF0,X B4BB 6A j ROR A B4BC 9D F0 0D .p. STA &0DF0,X B4BF A9 00 ). LDA #&00 B4C1 85 B0 .0 STA &B0 B4C3 A9 FD )} LDA #&FD B4C5 20 A6 B9 &9 JSR &B9A6 B4C8 CA J DEX B4C9 8A . TXA B4CA A0 D3 S LDY #&D3 B4CC 31 B0 10 AND (&B0),Y B4CE 91 B0 .0 STA (&B0),Y B4D0 08 . PHP B4D1 C8 H INY B4D2 28 ( PLP B4D3 10 07 .. BPL &B4DC B4D5 B1 B0 10 LDA (&B0),Y B4D7 10 03 .. BPL &B4DC B4D9 20 9B A7 .' JSR &A79B B4DC A9 00 ). LDA #&00 B4DE 91 B0 .0 STA (&B0),Y B4E0 20 B9 AC 9, JSR &ACB9 B4E3 A6 F4 &t LDX &F4 B4E5 68 h PLA B4E6 A8 ( TAY B4E7 C8 H INY B4E8 C8 H INY B4E9 68 h PLA ; pull saved acc B4EA 60 ` RTS ; and exit B4EB 20 27 A3 '# JSR &A327 B4EE C9 03 I. CMP #&03 B4F0 D0 16 P. BNE &B508 B4F2 84 B3 .3 STY &B3 B4F4 A9 7A )z LDA #&7A B4F6 20 F4 FF t. JSR &FFF4 B4F9 8A . TXA B4FA 30 09 0. BMI &B505 B4FC C9 32 I2 CMP #&32 B4FE D0 EA Pj BNE &B4EA B500 A9 78 )x LDA #&78 B502 20 F4 FF t. JSR &FFF4 B505 4C AF B3 L/3 JMP &B3AF B508 C9 04 I. CMP #&04 B50A D0 05 P. BNE &B511 B50C A2 71 "q LDX #&71 B50E 4C A8 A5 L(% JMP &A5A8 B511 C9 12 I. CMP #&12 B513 D0 07 P. BNE &B51C B515 C0 04 @. CPY #&04 B517 D0 3C P< BNE &B555 B519 4C C1 B3 LA3 JMP &B3C1 B51C C9 09 I. CMP #&09 B51E D0 10 P. BNE &B530 B520 B1 F2 1r LDA (&F2),Y B522 A2 9E ". LDX #&9E B524 C9 0D I. CMP #&0D B526 D0 E6 Pf BNE &B50E B528 98 . TYA B529 E8 h INX B52A E8 h INX B52B A0 02 . LDY #&02 B52D 4C 27 BA L': JMP &BA27 B530 20 26 B0 &0 JSR &B026 B533 C9 0A I. CMP #&0A B535 D0 1F P. BNE &B556 B537 20 10 B9 .9 JSR &B910 B53A A0 D4 T LDY #&D4 B53C B1 B0 10 LDA (&B0),Y B53E 10 0F .. BPL &B54F B540 A0 00 . LDY #&00 B542 20 0D B0 .0 JSR &B00D B545 20 9B A7 .' JSR &A79B B548 A0 D4 T LDY #&D4 B54A A9 00 ). LDA #&00 B54C 91 B0 .0 STA (&B0),Y B54E 60 ` RTS B54F A9 0A ). LDA #&0A B551 BA : TSX B552 9D 05 01 ... STA &0105,X B555 60 ` RTS B556 C9 08 I. CMP #&08 B558 D0 F7 Pw BNE &B551 B55A A4 EF $o LDY &EF B55C 30 F3 0s BMI &B551 B55E C0 7D @} CPY #&7D B560 90 EF .o BCC &B551 B562 A6 F0 &p LDX &F0 B564 86 B0 .0 STX &B0 B566 A6 F1 &q LDX &F1 B568 86 B1 .1 STX &B1 B56A C8 H INY B56B 10 4B .K BPL &B5B8 B56D 58 X CLI B56E A0 00 . LDY #&00 B570 B1 B0 10 LDA (&B0),Y B572 30 03 0. BMI &B577 B574 20 99 A6 .& JSR &A699 B577 20 31 AB 1+ JSR &AB31 B57A C8 H INY B57B A2 02 ". LDX #&02 B57D 20 50 A0 P JSR &A050 B580 B1 B0 10 LDA (&B0),Y B582 C8 H INY B583 48 H PHA B584 B1 B0 10 LDA (&B0),Y B586 48 H PHA B587 20 92 AC ., JSR &AC92 B58A 68 h PLA B58B 20 38 A1 8! JSR &A138 B58E 29 01 ). AND #&01 B590 20 D6 AB V+ JSR &ABD6 B593 2A * ROL A B594 69 03 i. ADC #&03 B596 20 20 B9 9 JSR &B920 B599 A5 BC %< LDA &BC B59B 85 A6 .& STA &A6 B59D A5 BD %= LDA &BD B59F 85 A7 .' STA &A7 B5A1 A0 07 . LDY #&07 B5A3 68 h PLA B5A4 AA * TAX B5A5 F0 09 p. BEQ &B5B0 B5A7 B1 B0 10 LDA (&B0),Y B5A9 20 85 AC ., JSR &AC85 B5AC C8 H INY B5AD CA J DEX B5AE D0 F7 Pw BNE &B5A7 B5B0 20 A7 AC ', JSR &ACA7 B5B3 91 B0 .0 STA (&B0),Y B5B5 4C FC A6 L|& JMP &A6FC B5B8 20 C3 A9 C) JSR &A9C3 B5BB 20 C2 A2 B" JSR &A2C2 B5BE C8 H INY B5BF 30 08 0. BMI &B5C9 B5C1 A0 00 . LDY #&00 B5C3 AD 04 0F -.. LDA &0F04 B5C6 91 B0 .0 STA (&B0),Y B5C8 60 ` RTS B5C9 A9 00 ). LDA #&00 B5CB A8 ( TAY B5CC 91 B0 .0 STA (&B0),Y B5CE C8 H INY B5CF AD 07 0F -.. LDA &0F07 B5D2 91 B0 .0 STA (&B0),Y B5D4 C8 H INY B5D5 AD 06 0F -.. LDA &0F06 B5D8 29 03 ). AND #&03 B5DA 91 B0 .0 STA (&B0),Y B5DC C8 H INY B5DD A9 00 ). LDA #&00 B5DF 91 B0 .0 STA (&B0),Y B5E1 60 ` RTS B5E2 20 50 A3 P# JSR &A350 B5E5 48 H PHA B5E6 20 FB B7 {7 JSR &B7FB B5E9 86 B0 .0 STX &B0 B5EB 8E DB 10 .[. STX &10DB B5EE 84 B1 .1 STY &B1 B5F0 8C DC 10 .\. STY &10DC B5F3 A2 00 ". LDX #&00 B5F5 A0 00 . LDY #&00 B5F7 20 60 A0 ` JSR &A060 B5FA 20 50 A0 P JSR &A050 B5FD C0 12 @. CPY #&12 B5FF D0 F9 Py BNE &B5FA B601 68 h PLA B602 AA * TAX B603 E8 h INX B604 E0 08 `. CPX #&08 B606 B0 08 0. BCS &B610 B608 BD EA B9 =j9 LDA &B9EA,X B60B 48 H PHA B60C BD E2 B9 =b9 LDA &B9E2,X B60F 48 H PHA B610 A9 00 ). LDA #&00 B612 60 ` RTS B613 C9 09 I. CMP #&09 B615 B0 F9 0y BCS &B610 B617 86 B5 .5 STX &B5 B619 AA * TAX B61A BD D9 B9 =Y9 LDA &B9D9,X B61D 48 H PHA B61E BD D0 B9 =P9 LDA &B9D0,X B621 48 H PHA B622 8A . TXA B623 A6 B5 &5 LDX &B5 B625 60 ` RTS B626 C9 09 I. CMP #&09 B628 B0 FB 0{ BCS &B625 B62A 20 27 A3 '# JSR &A327 B62D 20 26 B0 &0 JSR &B026 B630 8E 7D 10 .}. STX &107D B633 8C 7E 10 .~. STY &107E B636 A8 ( TAY B637 20 40 B6 @6 JSR &B640 B63A 08 . PHP B63B 20 FF A6 .& JSR &A6FF B63E 28 ( PLP B63F 60 ` RTS B640 B9 07 BA 9.: LDA &BA07,Y B643 8D D7 10 .W. STA &10D7 B646 B9 10 BA 9.: LDA &BA10,Y B649 8D D8 10 .X. STA &10D8 B64C B9 19 BA 9.: LDA &BA19,Y B64F 4A J LSR A B650 08 . PHP B651 4A J LSR A B652 08 . PHP B653 8D 7F 10 ... STA &107F B656 20 B2 B7 27 JSR &B7B2 B659 A0 0C . LDY #&0C B65B B1 B4 14 LDA (&B4),Y B65D 99 60 10 .`. STA &1060,Y B660 88 . DEY B661 10 F8 .x BPL &B65B B663 AD 63 10 -c. LDA &1063 B666 2D 64 10 -d. AND &1064 B669 0D D6 10 .V. ORA &10D6 B66C 18 . CLC B66D 69 01 i. ADC #&01 B66F F0 06 p. BEQ &B677 B671 20 04 AC ., JSR &AC04 B674 18 . CLC B675 A9 FF ). LDA #&FF B677 8D 81 10 ... STA &1081 B67A AD 7F 10 -.. LDA &107F B67D B0 07 0. BCS &B686 B67F A2 61 "a LDX #&61 B681 A0 10 . LDY #&10 B683 20 06 04 .. JSR &0406 B686 28 ( PLP B687 B0 04 0. BCS &B68D B689 28 ( PLP B68A 6C D7 10 lW. JMP (&10D7) B68D A2 03 ". LDX #&03 B68F BD 69 10 =i. LDA &1069,X B692 95 B6 .6 STA &B6,X B694 CA J DEX B695 10 F8 .x BPL &B68F B697 A2 B6 "6 LDX #&B6 B699 AC 60 10 ,`. LDY &1060 B69C A9 00 ). LDA #&00 B69E 28 ( PLP B69F B0 03 0. BCS &B6A4 B6A1 20 05 B3 .3 JSR &B305 B6A4 20 6D B0 m0 JSR &B06D B6A7 A2 03 ". LDX #&03 B6A9 B5 B6 56 LDA &B6,X B6AB 9D 69 10 .i. STA &1069,X B6AE CA J DEX B6AF 10 F8 .x BPL &B6A9 B6B1 20 A4 B7 $7 JSR &B7A4 B6B4 30 0D 0. BMI &B6C3 B6B6 AC 60 10 ,`. LDY &1060 B6B9 20 8A B6 .6 JSR &B68A B6BC B0 0D 0. BCS &B6CB B6BE A2 09 ". LDX #&09 B6C0 20 98 B7 .7 JSR &B798 B6C3 A2 05 ". LDX #&05 B6C5 20 98 B7 .7 JSR &B798 B6C8 D0 EC Pl BNE &B6B6 B6CA 18 . CLC B6CB 08 . PHP B6CC 20 A4 B7 $7 JSR &B7A4 B6CF A2 05 ". LDX #&05 B6D1 20 98 B7 .7 JSR &B798 B6D4 A0 0C . LDY #&0C B6D6 20 B2 B7 27 JSR &B7B2 B6D9 B9 60 10 9`. LDA &1060,Y B6DC 91 B4 .4 STA (&B4),Y B6DE 88 . DEY B6DF 10 F8 .x BPL &B6D9 B6E1 28 ( PLP B6E2 60 ` RTS B6E3 20 C3 A9 C) JSR &A9C3 B6E6 20 5F AA _* JSR &AA5F B6E9 A9 F5 )u LDA #&F5 B6EB 8D D7 10 .W. STA &10D7 B6EE A9 B6 )6 LDA #&B6 B6F0 8D D8 10 .X. STA &10D8 B6F3 D0 BC P< BNE &B6B1 B6F5 AC 69 10 ,i. LDY &1069 B6F8 CC 05 0F L.. CPY &0F05 B6FB B0 28 0( BCS &B725 B6FD B9 0F 0E 9.. LDA &0E0F,Y B700 20 66 A2 f" JSR &A266 B703 45 CC EL EOR &CC B705 B0 02 0. BCS &B709 B707 29 DF )_ AND #&DF B709 29 7F ). AND #&7F B70B F0 05 p. BEQ &B712 B70D 20 7C A6 |& JSR &A67C B710 D0 E6 Pf BNE &B6F8 B712 A9 07 ). LDA #&07 B714 20 C6 B7 F7 JSR &B7C6 B717 85 B0 .0 STA &B0 B719 B9 08 0E 9.. LDA &0E08,Y B71C 20 C6 B7 F7 JSR &B7C6 B71F C8 H INY B720 C6 B0 F0 DEC &B0 B722 D0 F5 Pu BNE &B719 B724 18 . CLC B725 8C 69 10 .i. STY &1069 B728 AD 04 0F -.. LDA &0F04 B72B 8D 60 10 .`. STA &1060 B72E 60 ` RTS B72F 20 C3 A9 C) JSR &A9C3 B732 20 5F AA _* JSR &AA5F B735 A9 0C ). LDA #&0C B737 20 C6 B7 F7 JSR &B7C6 B73A A0 00 . LDY #&00 B73C C0 08 @. CPY #&08 B73E B0 05 0. BCS &B745 B740 B9 00 0E 9.. LDA &0E00,Y B743 90 03 .. BCC &B748 B745 B9 F8 0E 9x. LDA &0EF8,Y B748 20 C6 B7 F7 JSR &B7C6 B74B C8 H INY B74C C0 0C @. CPY #&0C B74E D0 EC Pl BNE &B73C B750 AD 06 0F -.. LDA &0F06 B753 20 38 A1 8! JSR &A138 B756 20 C6 B7 F7 JSR &B7C6 B759 A5 CD %M LDA &CD B75B 4C C6 B7 LF7 JMP &B7C6 B75E 20 BD B7 =7 JSR &B7BD B761 AD CA 10 -J. LDA &10CA B764 09 30 .0 ORA #&30 B766 20 C6 B7 F7 JSR &B7C6 B769 20 BD B7 =7 JSR &B7BD B76C AD C9 10 -I. LDA &10C9 B76F D0 55 PU BNE &B7C6 B771 20 BD B7 =7 JSR &B7BD B774 AD CC 10 -L. LDA &10CC B777 09 30 .0 ORA #&30 B779 20 C6 B7 F7 JSR &B7C6 B77C 20 BD B7 =7 JSR &B7BD B77F AD CB 10 -K. LDA &10CB B782 D0 42 PB BNE &B7C6 B784 48 H PHA B785 AD 61 10 -a. LDA &1061 B788 85 B8 .8 STA &B8 B78A AD 62 10 -b. LDA &1062 B78D 85 B9 .9 STA &B9 B78F A2 00 ". LDX #&00 B791 68 h PLA B792 60 ` RTS B793 20 27 A3 '# JSR &A327 B796 A2 01 ". LDX #&01 B798 A0 04 . LDY #&04 B79A FE 60 10 ~`. INC &1060,X B79D D0 04 P. BNE &B7A3 B79F E8 h INX B7A0 88 . DEY B7A1 D0 F7 Pw BNE &B79A B7A3 60 ` RTS B7A4 A2 03 ". LDX #&03 B7A6 A9 FF ). LDA #&FF B7A8 5D 65 10 ]e. EOR &1065,X B7AB 9D 65 10 .e. STA &1065,X B7AE CA J DEX B7AF 10 F5 .u BPL &B7A6 B7B1 60 ` RTS B7B2 AD 7D 10 -}. LDA &107D B7B5 85 B4 .4 STA &B4 B7B7 AD 7E 10 -~. LDA &107E B7BA 85 B5 .5 STA &B5 B7BC 60 ` RTS B7BD A9 01 ). LDA #&01 B7BF D0 05 P. BNE &B7C6 B7C1 20 2C B1 ,1 JSR &B12C B7C4 B0 F6 0v BCS &B7BC B7C6 2C 81 10 ,.. BIT &1081 B7C9 10 05 .. BPL &B7D0 B7CB 8D E5 FE .e~ STA &FEE5 ; tube B7CE 30 C3 0C BMI &B793 B7D0 20 84 B7 .7 JSR &B784 B7D3 81 B8 .8 STA (&B8,X) B7D5 4C 93 B7 L.7 JMP &B793 B7D8 20 E0 B7 `7 JSR &B7E0 B7DB 20 18 B2 .2 JSR &B218 B7DE 18 . CLC B7DF 60 ` RTS B7E0 2C 81 10 ,.. BIT &1081 B7E3 10 06 .. BPL &B7EB B7E5 AD E5 FE -e~ LDA &FEE5 ; tube B7E8 4C 93 B7 L.7 JMP &B793 B7EB 20 84 B7 .7 JSR &B784 B7EE A1 B8 !8 LDA (&B8,X) B7F0 4C 93 B7 L.7 JMP &B793 B7F3 2C C7 10 ,G. BIT &10C7 B7F6 30 03 0. BMI &B7FB B7F8 CE C7 10 NG. DEC &10C7 B7FB A9 FF ). LDA #&FF B7FD 8D CE 10 .N. STA &10CE B800 8D CD 10 .M. STA &10CD B803 60 ` RTS B804 A9 2A )* LDA #&2A B806 8D CE 10 .N. STA &10CE B809 A9 23 )# LDA #&23 B80B D0 F3 Ps BNE &B800 B80D 20 C6 B8 F8 JSR &B8C6 B810 20 C8 A2 H" JSR &A2C8 B813 A9 01 ). LDA #&01 B815 60 ` RTS B816 20 A3 B8 #8 JSR &B8A3 B819 20 C8 A2 H" JSR &A2C8 B81C 20 49 A2 I" JSR &A249 B81F 90 24 .$ BCC &B845 B821 20 C6 B8 F8 JSR &B8C6 B824 20 4B B8 K8 JSR &B84B B827 20 67 B8 g8 JSR &B867 B82A 50 16 P. BVC &B842 B82C 20 C6 B8 F8 JSR &B8C6 B82F 20 4B B8 K8 JSR &B84B B832 50 11 P. BVC &B845 B834 20 C6 B8 F8 JSR &B8C6 B837 20 67 B8 g8 JSR &B867 B83A 50 09 P. BVC &B845 B83C 20 C6 B8 F8 JSR &B8C6 B83F 20 BB B8 ;8 JSR &B8BB B842 20 8A B8 .8 JSR &B88A B845 20 1F A8 .( JSR &A81F B848 A9 01 ). LDA #&01 B84A 60 ` RTS B84B 20 27 A3 '# JSR &A327 B84E A0 02 . LDY #&02 B850 B1 B0 10 LDA (&B0),Y B852 9D 08 0F ... STA &0F08,X B855 C8 H INY B856 B1 B0 10 LDA (&B0),Y B858 9D 09 0F ... STA &0F09,X B85B C8 H INY B85C B1 B0 10 LDA (&B0),Y B85E 0A . ASL A B85F 0A . ASL A B860 5D 0E 0F ].. EOR &0F0E,X B863 29 0C ). AND #&0C B865 10 1B .. BPL &B882 B867 20 27 A3 '# JSR &A327 B86A A0 06 . LDY #&06 B86C B1 B0 10 LDA (&B0),Y B86E 9D 0A 0F ... STA &0F0A,X B871 C8 H INY B872 B1 B0 10 LDA (&B0),Y B874 9D 0B 0F ... STA &0F0B,X B877 C8 H INY B878 B1 B0 10 LDA (&B0),Y B87A 6A j ROR A B87B 6A j ROR A B87C 6A j ROR A B87D 5D 0E 0F ].. EOR &0F0E,X B880 29 C0 )@ AND #&C0 B882 5D 0E 0F ].. EOR &0F0E,X B885 9D 0E 0F ... STA &0F0E,X B888 B8 8 CLV B889 60 ` RTS B88A 20 27 A3 '# JSR &A327 B88D A0 0E . LDY #&0E B88F B1 B0 10 LDA (&B0),Y B891 29 0A ). AND #&0A B893 F0 02 p. BEQ &B897 B895 A9 80 ). LDA #&80 B897 5D 0F 0E ].. EOR &0E0F,X B89A 29 80 ). AND #&80 B89C 5D 0F 0E ].. EOR &0E0F,X B89F 9D 0F 0E ... STA &0E0F,X B8A2 60 ` RTS B8A3 20 D0 B8 P8 JSR &B8D0 B8A6 90 23 .# BCC &B8CB B8A8 B9 0F 0E 9.. LDA &0E0F,Y B8AB 10 22 ." BPL &B8CF B8AD 20 B8 9F 8. JSR &9FB8 B8B0 C3 C ??? B8B1 4C 6F 63 Loc JMP &636F B8B4 6B k ??? B8B5 65 64 ed ADC &64 B8B7 00 . BRK B8B8 20 A8 B8 (8 JSR &B8A8 B8BB 20 27 A3 '# JSR &A327 B8BE 20 B6 AF 6/ JSR &AFB6 B8C1 90 21 .! BCC &B8E4 B8C3 4C 1A AF L./ JMP &AF1A B8C6 20 D0 B8 P8 JSR &B8D0 B8C9 B0 19 0. BCS &B8E4 B8CB 68 h PLA B8CC 68 h PLA B8CD A9 00 ). LDA #&00 B8CF 60 ` RTS B8D0 20 70 A0 p JSR &A070 B8D3 20 C3 A1 C! JSR &A1C3 B8D6 90 0C .. BCC &B8E4 B8D8 98 . TYA B8D9 AA * TAX B8DA AD DB 10 -[. LDA &10DB B8DD 85 B0 .0 STA &B0 B8DF AD DC 10 -\. LDA &10DC B8E2 85 B1 .1 STA &B1 B8E4 60 ` RTS B8E5 A9 83 ). LDA #&83 B8E7 20 F4 FF t. JSR &FFF4 B8EA 8C CF 10 .O. STY &10CF B8ED A9 84 ). LDA #&84 B8EF 20 F4 FF t. JSR &FFF4 B8F2 98 . TYA B8F3 38 8 SEC B8F4 ED CF 10 mO. SBC &10CF B8F7 8D D0 10 .P. STA &10D0 B8FA 60 ` RTS B8FB A2 0A ". LDX #&0A B8FD 20 A0 B9 9 JSR &B9A0 B900 20 10 B9 .9 JSR &B910 B903 A0 D3 S LDY #&D3 B905 A9 FF ). LDA #&FF B907 91 B0 .0 STA (&B0),Y B909 8D D3 10 .S. STA &10D3 B90C C8 H INY B90D 91 B0 .0 STA (&B0),Y B90F 60 ` RTS B910 48 H PHA B911 A6 F4 &t LDX &F4 B913 A9 00 ). LDA #&00 B915 85 B0 .0 STA &B0 B917 BD F0 0D =p. LDA &0DF0,X B91A 29 3F )? AND #&3F B91C 85 B1 .1 STA &B1 B91E 68 h PLA B91F 60 ` RTS B920 20 27 A3 '# JSR &A327 B923 48 H PHA B924 2C C8 10 ,H. BIT &10C8 B927 30 11 0. BMI &B93A B929 A9 8F ). LDA #&8F B92B A2 0C ". LDX #&0C B92D 20 A8 B9 (9 JSR &B9A8 B930 84 A0 . STY &A0 B932 A9 FF ). LDA #&FF B934 8D C8 10 .H. STA &10C8 B937 EE D3 10 nS. INC &10D3 B93A 68 h PLA B93B AA * TAX B93C BD F2 B9 =r9 LDA &B9F2,X ; lsb adr of routine X to use B93F 85 B8 .8 STA &B8 B941 BD F9 B9 =y9 LDA &B9F9,X ; msb adr of routine X to use B944 85 B9 .9 STA &B9 B946 BC 00 BA <.: LDY &BA00,X ; length of routine X to use B949 B1 B8 18 LDA (&B8),Y B94B 99 00 0D ... STA &0D00,Y ; copy routine to 0D00 (NMI routine) B94E 88 . DEY B94F 10 F8 .x BPL &B949 ; loop until all done B951 E0 02 `. CPX #&02 ; was it routine 2? B953 B0 14 0. BCS &B969 ; greater than B955 A5 F4 %t LDA &F4 ; B957 8D 3C 0D .<. STA &0D3C B95A E0 00 `. CPX #&00 B95C D0 0B P. BNE &B969 B95E A0 12 . LDY #&12 B960 B9 0E AD 9.- LDA &AD0E,Y B963 99 0A 0D ... STA &0D0A,Y B966 88 . DEY B967 10 F7 .w BPL &B960 B969 60 ` RTS B96A 20 AE AC ., JSR &ACAE B96D 20 27 A3 '# JSR &A327 B970 2C C8 10 ,H. BIT &10C8 B973 10 0E .. BPL &B983 B975 CE D3 10 NS. DEC &10D3 B978 A4 A0 $ LDY &A0 B97A C0 FF @. CPY #&FF B97C F0 05 p. BEQ &B983 B97E A2 0B ". LDX #&0B B980 20 A0 B9 9 JSR &B9A0 B983 A9 00 ). LDA #&00 B985 8D C8 10 .H. STA &10C8 B988 60 ` RTS B989 20 27 A3 '# JSR &A327 B98C A9 0F ). LDA #&0F B98E A2 01 ". LDX #&01 B990 A0 00 . LDY #&00 B992 F0 16 p. BEQ &B9AA B994 AA * TAX B995 A9 03 ). LDA #&03 B997 D0 11 P. BNE &B9AA B999 20 27 A3 '# JSR &A327 B99C A9 7E )~ LDA #&7E B99E D0 0A P. BNE &B9AA B9A0 A9 8F ). LDA #&8F B9A2 D0 06 P. BNE &B9AA B9A4 A9 FF ). LDA #&FF B9A6 A2 00 ". LDX #&00 B9A8 A0 FF . LDY #&FF B9AA 4C F4 FF Lt. JMP &FFF4 B9AD 1B . ??? B9AE FF . ??? B9AF 1E FF 21 ..! ASL &21FF,X B9B2 FF . ??? B9B3 24 FF $. BIT &FF B9B5 27 ' ??? B9B6 FF . ??? B9B7 2A * ROL A B9B8 FF . ??? B9B9 2D FF E2 -.b AND &E2FF B9BC B5 00 5. LDA &00,X B9BE 33 3 ??? B9BF B0 00 0. BCS &B9C1 B9C1 2C B1 00 ,1. BIT &00B1 B9C4 18 . CLC B9C5 B2 2 ??? B9C6 00 . BRK B9C7 26 B6 &6 ROL &B6 B9C9 00 . BRK B9CA AE AE 00 ... LDX &00AE B9CD 13 . ??? B9CE B6 00 6. LDX &00,Y B9D0 79 F4 09 yt. ADC &09F4,Y B9D3 A2 09 ". LDX #&09 B9D5 5E F7 F2 ^wr LSR &F2F7,X B9D8 F2 r ??? B9D9 A8 ( TAY B9DA B0 A7 0' BCS &B983 B9DC A5 A7 %' LDA &A7 B9DE A3 # ??? B9DF AD AD B7 --7 LDA &B7AD B9E2 A0 D7 W LDY #&D7 B9E4 20 2B 33 +3 JSR &332B B9E7 3B ; ??? B9E8 0C . ??? B9E9 15 A6 .& ORA &A6,X B9EB A6 B8 &8 LDX &B8 B9ED B8 8 CLV B9EE B8 8 CLV B9EF B8 8 CLV B9F0 B8 8 CLV B9F1 B8 8 CLV B9F2 21 21 !! AND (&21,X) ; lsb table of NMI routines B9F4 51 B5 Q5 EOR (&B5),Y B9F6 8A . TXA ; AD21:4D AD51:00 ADB5:0F AD8A:1A ADA5:0F AD6f:1a B9F7 A5 6F %o LDA &6F B9F9 AD AD AD --- LDA &ADAD ; msb table of NMI routines B9FC AD AD AD --- LDA &ADAD B9FF AD 4D 4D -MM LDA &4D4D ; ba00 length table of NMI routines BA02 00 . BRK BA03 0F . ??? BA04 1A . ??? BA05 0F . ??? BA06 1A . ??? BA07 F1 D8 qX SBC (&D8),Y BA09 D8 X CLD BA0A C1 C1 AA CMP (&C1,X) BA0C 2F / ??? BA0D 5E 71 E3 ^qc LSR &E371,X BA10 A4 B7 $7 LDY &B7 BA12 B7 7 ??? BA13 B7 7 ??? BA14 B7 7 ??? BA15 B7 7 ??? BA16 B7 7 ??? BA17 B7 7 ??? BA18 B6 04 6. LDX &04,Y BA1A 02 . ??? BA1B 03 . ??? BA1C 06 07 .. ASL &07 BA1E 04 . ??? BA1F 04 . ??? BA20 04 . ??? BA21 04 . ??? BA22 98 . TYA BA23 A2 FF ". LDX #&FF BA25 A0 0E . LDY #&0E BA27 48 H PHA BA28 20 F7 9F w. JSR &9FF7 BA2B 0D 44 46 .DF ORA &4644 BA2E 53 S ??? BA2F 20 31 2E 1. JSR &2E31 BA32 32 2 ??? BA33 30 0D 0. BMI &BA42 BA35 86 BC .< STX &BC BA37 A9 00 ). LDA #&00 BA39 85 B9 .9 STA &B9 BA3B 20 A6 BF &? JSR &BFA6 BA3E 20 7F BA .: JSR &BA7F BA41 20 B6 BC 6< JSR &BCB6 BA44 88 . DEY BA45 D0 F0 Pp BNE &BA37 BA47 68 h PLA BA48 A8 ( TAY BA49 A2 9E ". LDX #&9E BA4B 4C A8 A5 L(% JMP &A5A8 BA4E 98 . TYA BA4F A2 73 "s LDX #&73 BA51 A0 05 . LDY #&05 BA53 D0 D2 PR BNE &BA27 BA55 20 F1 A5 q% JSR &A5F1 BA58 F0 70 pp BEQ &BACA BA5A 20 C9 A0 I JSR &A0C9 BA5D 90 FB .{ BCC &BA5A BA5F B0 E8 0h BCS &BA49 BA61 20 F1 A5 q% JSR &A5F1 BA64 D0 64 Pd BNE &BACA BA66 20 C8 9F H. JSR &9FC8 BA69 DC \ ??? BA6A 53 S ??? BA6B 79 6E 74 ynt ADC &746E,Y BA6E 61 78 ax ADC (&78,X) BA70 3A : ??? BA71 20 86 B9 .9 JSR &B986 BA74 20 7F BA .: JSR &BA7F BA77 A9 00 ). LDA #&00 BA79 20 BE BA >: JSR &BABE BA7C 4C 00 01 L.. JMP &0100 BA7F A6 BC &< LDX &BC BA81 E8 h INX BA82 BD F2 A4 =r$ LDA &A4F2,X BA85 30 06 0. BMI &BA8D BA87 20 BE BA >: JSR &BABE BA8A 4C 81 BA L.: JMP &BA81 BA8D E8 h INX BA8E E8 h INX BA8F 86 BC .< STX &BC BA91 BD F2 A4 =r$ LDA &A4F2,X BA94 20 9A BA .: JSR &BA9A BA97 20 38 A1 8! JSR &A138 BA9A 20 27 A3 '# JSR &A327 BA9D 29 0F ). AND #&0F BA9F F0 29 p) BEQ &BACA BAA1 A8 ( TAY BAA2 A9 20 ) LDA #&20 BAA4 20 BE BA >: JSR &BABE BAA7 A2 FF ". LDX #&FF BAA9 E8 h INX BAAA BD CE BA =N: LDA &BACE,X BAAD 10 FA .z BPL &BAA9 BAAF 88 . DEY BAB0 D0 F7 Pw BNE &BAA9 BAB2 29 7F ). AND #&7F BAB4 20 BE BA >: JSR &BABE BAB7 E8 h INX BAB8 BD CE BA =N: LDA &BACE,X BABB 10 F7 .w BPL &BAB4 BABD 60 ` RTS BABE 20 27 A3 '# JSR &A327 BAC1 A6 B9 &9 LDX &B9 BAC3 F0 06 p. BEQ &BACB BAC5 E6 B9 f9 INC &B9 BAC7 9D 00 01 ... STA &0100,X BACA 60 ` RTS BACB 4C 1F A0 L. JMP &A01F BACE BC 66 73 BVS &BB11 BAD3 BC 61 66 BVS &BB17 BAD9 A8 ( TAY BADA 4C 29 BC L)< JMP &BC29 BADD 73 s ??? BADE 6F o ??? BADF 75 72 ur ADC &72,X BAE1 63 c ??? BAE2 65 3E e> ADC &3E BAE4 20 3C 64 < ROL &BC3E BAED 6F o ??? BAEE 6C 64 20 ld JMP (&2064) BAF1 66 73 fs ROR &73 BAF3 70 3E p> BVS &BB33 BAF5 20 3C 6E BVS &BB3D BAFF A8 ( TAY BB00 3C < ??? BB01 64 d ??? BB02 69 72 ir ADC #&72 BB04 3E 29 A8 >)( ROL &A829,X BB07 3C < ??? BB08 64 d ??? BB09 72 r ??? BB0A 69 76 iv ADC #&76 BB0C 65 3E e> ADC &3E BB0E 29 BC )< AND #&BC BB10 74 t ??? BB11 69 74 it ADC #&74 BB13 6C 65 3E le> JMP (&3E65) BB16 BC 64 72 ADC &3E BB1D FF . ??? BB1E 20 CE A9 N) JSR &A9CE BB21 20 F7 9F w. JSR &9FF7 BB24 43 C ??? BB25 6F o ??? BB26 6D 70 61 mpa ADC &6170 BB29 63 c ??? BB2A 74 t ??? BB2B 69 6E in ADC #&6E BB2D 67 g ??? BB2E 20 3A 8D :. JSR &8D3A BB31 D1 10 Q. CMP (&10),Y BB33 8D D2 10 .R. STA &10D2 BB36 20 40 A0 @ JSR &A040 BB39 20 B6 BC 6< JSR &BCB6 BB3C A0 00 . LDY #&00 BB3E 20 1B AE .. JSR &AE1B BB41 20 E5 B8 e8 JSR &B8E5 BB44 20 C2 A2 B" JSR &A2C2 BB47 AC 05 0F ,.. LDY &0F05 BB4A 84 CA .J STY &CA BB4C A9 02 ). LDA #&02 BB4E 85 C8 .H STA &C8 BB50 A9 00 ). LDA #&00 BB52 85 C9 .I STA &C9 BB54 A4 CA $J LDY &CA BB56 20 F1 A1 q! JSR &A1F1 BB59 C0 F8 @x CPY #&F8 BB5B D0 28 P( BNE &BB85 BB5D AD 07 0F -.. LDA &0F07 BB60 38 8 SEC BB61 E5 C8 eH SBC &C8 BB63 48 H PHA BB64 AD 06 0F -.. LDA &0F06 BB67 29 03 ). AND #&03 BB69 E5 C9 eI SBC &C9 BB6B 20 40 A0 @ JSR &A040 BB6E 68 h PLA BB6F 20 38 A0 8 JSR &A038 BB72 20 F7 9F w. JSR &9FF7 BB75 20 66 72 fr JSR &7266 BB78 65 65 ee ADC &65 BB7A 20 73 65 se JSR &6573 BB7D 63 c ??? BB7E 74 t ??? BB7F 6F o ??? BB80 72 r ??? BB81 73 s ??? BB82 0D EA 60 .j` ORA &60EA BB85 84 CA .J STY &CA BB87 20 74 A2 t" JSR &A274 BB8A A4 CA $J LDY &CA BB8C B9 0C 0F 9.. LDA &0F0C,Y BB8F C9 01 I. CMP #&01 BB91 A9 00 ). LDA #&00 BB93 85 BC .< STA &BC BB95 85 C0 .@ STA &C0 BB97 79 0D 0F y.. ADC &0F0D,Y BB9A 85 C4 .D STA &C4 BB9C B9 0E 0F 9.. LDA &0F0E,Y BB9F 08 . PHP BBA0 20 30 A1 0! JSR &A130 BBA3 28 ( PLP BBA4 69 00 i. ADC #&00 BBA6 85 C5 .E STA &C5 BBA8 B9 0F 0F 9.. LDA &0F0F,Y BBAB 85 C6 .F STA &C6 BBAD B9 0E 0F 9.. LDA &0F0E,Y BBB0 29 03 ). AND #&03 BBB2 85 C7 .G STA &C7 BBB4 C5 C9 EI CMP &C9 BBB6 D0 14 P. BNE &BBCC BBB8 A5 C6 %F LDA &C6 BBBA C5 C8 EH CMP &C8 BBBC D0 0E P. BNE &BBCC BBBE 18 . CLC BBBF 65 C4 eD ADC &C4 BBC1 85 C8 .H STA &C8 BBC3 A5 C9 %I LDA &C9 BBC5 65 C5 eE ADC &C5 BBC7 85 C9 .I STA &C9 BBC9 4C E7 BB Lg; JMP &BBE7 BBCC A5 C8 %H LDA &C8 BBCE 99 0F 0F ... STA &0F0F,Y BBD1 B9 0E 0F 9.. LDA &0F0E,Y BBD4 29 FC )| AND #&FC BBD6 05 C9 .I ORA &C9 BBD8 99 0E 0F ... STA &0F0E,Y BBDB A9 00 ). LDA #&00 BBDD 85 A8 .( STA &A8 BBDF 85 A9 .) STA &A9 BBE1 20 02 BE .> JSR &BE02 BBE4 20 3B AA ;* JSR &AA3B BBE7 A4 CA $J LDY &CA BBE9 20 79 A2 y" JSR &A279 BBEC 4C 54 BB LT; JMP &BB54 BBEF 2C C7 10 ,G. BIT &10C7 BBF2 10 5E .^ BPL &BC52 BBF4 20 BE BC >< JSR &BCBE BBF7 F0 02 p. BEQ &BBFB BBF9 68 h PLA BBFA 68 h PLA BBFB 4C B6 BC L6< JMP &BCB6 BBFE 20 61 BA a: JSR &BA61 BC01 20 D3 A9 S) JSR &A9D3 BC04 8D D1 10 .Q. STA &10D1 BC07 20 61 BA a: JSR &BA61 BC0A 20 D3 A9 S) JSR &A9D3 BC0D 8D D2 10 .R. STA &10D2 BC10 98 . TYA BC11 48 H PHA BC12 A9 00 ). LDA #&00 BC14 85 A9 .) STA &A9 BC16 AD D2 10 -R. LDA &10D2 BC19 CD D1 10 MQ. CMP &10D1 BC1C D0 06 P. BNE &BC24 BC1E A9 FF ). LDA #&FF BC20 85 A9 .) STA &A9 BC22 85 AA .* STA &AA BC24 20 E5 B8 e8 JSR &B8E5 BC27 20 F7 9F w. JSR &9FF7 BC2A 43 C ??? BC2B 6F o ??? BC2C 70 79 py BVS &BCA7 BC2E 69 6E in ADC #&6E BC30 67 g ??? BC31 20 66 72 fr JSR &7266 BC34 6F o ??? BC35 6D 20 3A m : ADC &3A20 BC38 AD D1 10 -Q. LDA &10D1 BC3B 20 40 A0 @ JSR &A040 BC3E 20 F7 9F w. JSR &9FF7 BC41 20 74 6F to JSR &6F74 BC44 20 3A AD :- JSR &AD3A BC47 D2 R ??? BC48 10 20 . BPL &BC6A BC4A 40 @ RTI BC4B A0 20 LDY #&20 BC4D B6 BC 6< LDX &BC,Y BC4F 68 h PLA BC50 A8 ( TAY BC51 18 . CLC BC52 60 ` RTS BC53 20 27 A3 '# JSR &A327 BC56 24 A9 $) BIT &A9 BC58 10 0B .. BPL &BC65 BC5A A9 00 ). LDA #&00 BC5C F0 0A p. BEQ &BC68 BC5E 20 27 A3 '# JSR &A327 BC61 24 A9 $) BIT &A9 BC63 30 01 0. BMI &BC66 BC65 60 ` RTS BC66 A9 80 ). LDA #&80 BC68 C5 AA E* CMP &AA BC6A F0 F9 py BEQ &BC65 BC6C 85 AA .* STA &AA BC6E 20 F7 9F w. JSR &9FF7 BC71 49 6E In EOR #&6E BC73 73 s ??? BC74 65 72 er ADC &72 BC76 74 t ??? BC77 20 EA 24 j$ JSR &24EA BC7A AA * TAX BC7B 30 0B 0. BMI &BC88 BC7D 20 F7 9F w. JSR &9FF7 BC80 73 s ??? BC81 6F o ??? BC82 75 72 ur ADC &72,X BC84 63 c ??? BC85 65 90 e. ADC &90 BC87 0F . ??? BC88 20 F7 9F w. JSR &9FF7 BC8B 64 d ??? BC8C 65 73 es ADC &73 BC8E 74 t ??? BC8F 69 6E in ADC #&6E BC91 61 74 at ADC (&74,X) BC93 69 6F io ADC #&6F BC95 6E EA 20 nj ROR &20EA BC98 F7 w ??? BC99 9F . ??? BC9A 20 64 69 di JSR &6964 BC9D 73 s ??? BC9E 6B k ??? BC9F 20 61 6E an JSR &6E61 BCA2 64 d ??? BCA3 20 68 69 hi JSR &6968 BCA6 74 t ??? BCA7 20 61 20 a JSR &2061 BCAA 6B k ??? BCAB 65 79 ey ADC &79 BCAD EA j NOP BCAE 20 89 B9 .9 JSR &B989 BCB1 20 E0 FF `. JSR &FFE0 BCB4 B0 2D 0- BCS &BCE3 BCB6 48 H PHA BCB7 A9 0D ). LDA #&0D BCB9 20 1F A0 . JSR &A01F BCBC 68 h PLA BCBD 60 ` RTS BCBE 20 F7 9F w. JSR &9FF7 BCC1 47 G ??? BCC2 6F o ??? BCC3 20 28 59 (Y JSR &5928 BCC6 2F / ??? BCC7 4E 29 20 N) LSR &2029 BCCA 3F ? ??? BCCB 20 EA 20 j JSR &20EA BCCE 89 . ??? BCCF B9 20 E0 9 ` LDA &E020,Y BCD2 FF . ??? BCD3 B0 0E 0. BCS &BCE3 BCD5 29 5F )_ AND #&5F BCD7 C9 59 IY CMP #&59 BCD9 08 . PHP BCDA F0 02 p. BEQ &BCDE BCDC A9 4E )N LDA #&4E BCDE 20 1F A0 . JSR &A01F BCE1 28 ( PLP BCE2 60 ` RTS BCE3 4C 76 AB Lv+ JMP &AB76 BCE6 4C B6 A8 L6( JMP &A8B6 BCE9 20 FE BB ~; JSR &BBFE BCEC 20 EF BB o; JSR &BBEF BCEF A9 00 ). LDA #&00 BCF1 85 C7 .G STA &C7 BCF3 85 C9 .I STA &C9 BCF5 85 C8 .H STA &C8 BCF7 85 C6 .F STA &C6 BCF9 85 A8 .( STA &A8 BCFB 20 53 BC S< JSR &BC53 BCFE AD D1 10 -Q. LDA &10D1 BD01 85 CD .M STA &CD BD03 20 6B AA k* JSR &AA6B BD06 AD 07 0F -.. LDA &0F07 BD09 85 C4 .D STA &C4 BD0B AD 06 0F -.. LDA &0F06 BD0E 29 03 ). AND #&03 BD10 85 C5 .E STA &C5 BD12 20 5E BC ^< JSR &BC5E BD15 AD D2 10 -R. LDA &10D2 BD18 85 CD .M STA &CD BD1A 20 6B AA k* JSR &AA6B BD1D AD 06 0F -.. LDA &0F06 BD20 29 03 ). AND #&03 BD22 C5 C5 EE CMP &C5 BD24 90 C0 .@ BCC &BCE6 BD26 D0 07 P. BNE &BD2F BD28 AD 07 0F -.. LDA &0F07 BD2B C5 C4 ED CMP &C4 BD2D 90 B7 .7 BCC &BCE6 BD2F 20 02 BE .> JSR &BE02 BD32 4C 6B AA Lk* JMP &AA6B BD35 20 04 B8 .8 JSR &B804 BD38 20 FE BB ~; JSR &BBFE BD3B 20 61 BA a: JSR &BA61 BD3E 20 6A A0 j JSR &A06A BD41 20 53 BC S< JSR &BC53 BD44 AD D1 10 -Q. LDA &10D1 BD47 20 99 A6 .& JSR &A699 BD4A 20 87 A1 .! JSR &A187 BD4D A5 CC %L LDA &CC BD4F 48 H PHA BD50 A5 B6 %6 LDA &B6 BD52 85 AB .+ STA &AB BD54 20 79 A2 y" JSR &A279 BD57 A2 00 ". LDX #&00 BD59 B9 08 0E 9.. LDA &0E08,Y BD5C 95 C5 .E STA &C5,X BD5E 9D 50 10 .P. STA &1050,X BD61 B9 08 0F 9.. LDA &0F08,Y BD64 95 BB .; STA &BB,X BD66 9D 47 10 .G. STA &1047,X BD69 E8 h INX BD6A C8 H INY BD6B E0 08 `. CPX #&08 BD6D D0 EA Pj BNE &BD59 BD6F A5 C1 %A LDA &C1 BD71 20 30 A1 0! JSR &A130 BD74 85 C3 .C STA &C3 BD76 A5 BF %? LDA &BF BD78 18 . CLC BD79 69 FF i. ADC #&FF BD7B A5 C0 %@ LDA &C0 BD7D 69 00 i. ADC #&00 BD7F 85 C4 .D STA &C4 BD81 A5 C3 %C LDA &C3 BD83 69 00 i. ADC #&00 BD85 85 C5 .E STA &C5 BD87 AD 4E 10 -N. LDA &104E BD8A 85 C6 .F STA &C6 BD8C AD 4D 10 -M. LDA &104D BD8F 29 03 ). AND #&03 BD91 85 C7 .G STA &C7 BD93 A9 FF ). LDA #&FF BD95 85 A8 .( STA &A8 BD97 20 02 BE .> JSR &BE02 BD9A 20 53 BC S< JSR &BC53 BD9D AD D1 10 -Q. LDA &10D1 BDA0 20 99 A6 .& JSR &A699 BDA3 20 C2 A2 B" JSR &A2C2 BDA6 A5 AB %+ LDA &AB BDA8 85 B6 .6 STA &B6 BDAA 68 h PLA BDAB 85 CC .L STA &CC BDAD 20 BF A1 ?! JSR &A1BF BDB0 B0 9B 0. BCS &BD4D BDB2 60 ` RTS BDB3 20 F1 BD q= JSR &BDF1 BDB6 20 5E BC ^< JSR &BC5E BDB9 AD D2 10 -R. LDA &10D2 BDBC 85 CD .M STA &CD BDBE A5 CC %L LDA &CC BDC0 48 H PHA BDC1 20 C2 A2 B" JSR &A2C2 BDC4 20 AC A1 ,! JSR &A1AC BDC7 90 03 .. BCC &BDCC BDC9 20 49 A2 I" JSR &A249 BDCC 68 h PLA BDCD 85 CC .L STA &CC BDCF 20 95 A9 .) JSR &A995 BDD2 20 AC A9 ,) JSR &A9AC BDD5 A5 C2 %B LDA &C2 BDD7 20 30 A1 0! JSR &A130 BDDA 85 C4 .D STA &C4 BDDC 20 FB A8 {( JSR &A8FB BDDF A5 C2 %B LDA &C2 BDE1 29 03 ). AND #&03 BDE3 48 H PHA BDE4 A5 C3 %C LDA &C3 BDE6 48 H PHA BDE7 20 F1 BD q= JSR &BDF1 BDEA 68 h PLA BDEB 85 C8 .H STA &C8 BDED 68 h PLA BDEE 85 C9 .I STA &C9 BDF0 60 ` RTS BDF1 A2 11 ". LDX #&11 BDF3 BD 45 10 =E. LDA &1045,X BDF6 B4 BA 4: LDY &BA,X BDF8 95 BA .: STA &BA,X BDFA 98 . TYA BDFB 9D 45 10 .E. STA &1045,X BDFE CA J DEX BDFF 10 F2 .r BPL &BDF3 BE01 60 ` RTS BE02 A9 00 ). LDA #&00 BE04 85 BC .< STA &BC BE06 85 C0 .@ STA &C0 BE08 F0 79 py BEQ &BE83 BE0A A5 C4 %D LDA &C4 BE0C A8 ( TAY BE0D CD D0 10 MP. CMP &10D0 BE10 A5 C5 %E LDA &C5 BE12 E9 00 i. SBC #&00 BE14 90 03 .. BCC &BE19 BE16 AC D0 10 ,P. LDY &10D0 BE19 84 C1 .A STY &C1 BE1B A5 C6 %F LDA &C6 BE1D 85 C3 .C STA &C3 BE1F A5 C7 %G LDA &C7 BE21 85 C2 .B STA &C2 BE23 AD CF 10 -O. LDA &10CF BE26 85 BD .= STA &BD BE28 AD D1 10 -Q. LDA &10D1 BE2B 85 CD .M STA &CD BE2D 20 53 BC S< JSR &BC53 BE30 20 98 AB .+ JSR &AB98 BE33 20 31 AB 1+ JSR &AB31 BE36 20 D3 A6 S& JSR &A6D3 BE39 AD D2 10 -R. LDA &10D2 BE3C 85 CD .M STA &CD BE3E 24 A8 $( BIT &A8 BE40 10 07 .. BPL &BE49 BE42 20 B3 BD 3= JSR &BDB3 BE45 A9 00 ). LDA #&00 BE47 85 A8 .( STA &A8 BE49 A5 C8 %H LDA &C8 BE4B 85 C3 .C STA &C3 BE4D A5 C9 %I LDA &C9 BE4F 85 C2 .B STA &C2 BE51 AD CF 10 -O. LDA &10CF BE54 85 BD .= STA &BD BE56 20 5E BC ^< JSR &BC5E BE59 20 98 AB .+ JSR &AB98 BE5C 20 31 AB 1+ JSR &AB31 BE5F 20 E1 A6 a& JSR &A6E1 BE62 A5 C1 %A LDA &C1 BE64 18 . CLC BE65 65 C8 eH ADC &C8 BE67 85 C8 .H STA &C8 BE69 90 02 .. BCC &BE6D BE6B E6 C9 fI INC &C9 BE6D A5 C1 %A LDA &C1 BE6F 18 . CLC BE70 65 C6 eF ADC &C6 BE72 85 C6 .F STA &C6 BE74 90 02 .. BCC &BE78 BE76 E6 C7 fG INC &C7 BE78 38 8 SEC BE79 A5 C4 %D LDA &C4 BE7B E5 C1 eA SBC &C1 BE7D 85 C4 .D STA &C4 BE7F B0 02 0. BCS &BE83 BE81 C6 C5 FE DEC &C5 BE83 A5 C4 %D LDA &C4 BE85 05 C5 .E ORA &C5 BE87 D0 81 P. BNE &BE0A BE89 60 ` RTS BE8A A6 F4 &t LDX &F4 BE8C BD F0 0D =p. LDA &0DF0,X BE8F 29 3F )? AND #&3F BE91 85 AD .- STA &AD BE93 E6 AD f- INC &AD BE95 60 ` RTS BE96 20 B2 BF 2? JSR &BFB2 BE99 A9 00 ). LDA #&00 BE9B F0 05 p. BEQ &BEA2 BE9D 20 B2 BF 2? JSR &BFB2 BEA0 A9 FF ). LDA #&FF BEA2 85 AB .+ STA &AB BEA4 A9 40 )@ LDA #&40 BEA6 20 CE FF N. JSR &FFCE BEA9 A8 ( TAY BEAA A9 0D ). LDA #&0D BEAC C0 00 @. CPY #&00 BEAE D0 1E P. BNE &BECE BEB0 4C 8C A1 L.! JMP &A18C BEB3 20 D7 FF W. JSR &FFD7 BEB6 B0 1E 0. BCS &BED6 BEB8 C9 0A I. CMP #&0A BEBA F0 F7 pw BEQ &BEB3 BEBC 28 ( PLP BEBD D0 08 P. BNE &BEC7 BEBF 48 H PHA BEC0 20 DC BF \? JSR &BFDC BEC3 20 A9 BF )? JSR &BFA9 BEC6 68 h PLA BEC7 20 E3 FF c. JSR &FFE3 BECA 24 FF $. BIT &FF BECC 30 1F 0. BMI &BEED BECE 25 AB %+ AND &AB BED0 C9 0D I. CMP #&0D BED2 08 . PHP BED3 4C B3 BE L3> JMP &BEB3 BED6 28 ( PLP BED7 20 E7 FF g. JSR &FFE7 BEDA A9 00 ). LDA #&00 BEDC 4C CE FF LN. JMP &FFCE BEDF 20 B2 BF 2? JSR &BFB2 BEE2 A9 40 )@ LDA #&40 BEE4 20 CE FF N. JSR &FFCE BEE7 A8 ( TAY BEE8 F0 C6 pF BEQ &BEB0 BEEA 20 8A BE .> JSR &BE8A BEED 24 FF $. BIT &FF BEEF 30 65 0e BMI &BF56 BEF1 A5 A9 %) LDA &A9 BEF3 20 F0 BF p? JSR &BFF0 BEF6 A5 A8 %( LDA &A8 BEF8 20 F0 BF p? JSR &BFF0 BEFB 20 A9 BF )? JSR &BFA9 BEFE A9 07 ). LDA #&07 BF00 85 AC ., STA &AC BF02 A2 00 ". LDX #&00 BF04 20 D7 FF W. JSR &FFD7 BF07 B0 0D 0. BCS &BF16 BF09 81 AC ., STA (&AC,X) BF0B 20 F0 BF p? JSR &BFF0 BF0E 20 A9 BF )? JSR &BFA9 BF11 C6 AC F, DEC &AC BF13 10 EF .o BPL &BF04 BF15 18 . CLC BF16 08 . PHP BF17 90 13 .. BCC &BF2C BF19 A9 2A )* LDA #&2A BF1B 20 E3 FF c. JSR &FFE3 BF1E 20 E3 FF c. JSR &FFE3 BF21 20 A9 BF )? JSR &BFA9 BF24 A9 00 ). LDA #&00 BF26 81 AC ., STA (&AC,X) BF28 C6 AC F, DEC &AC BF2A 10 ED .m BPL &BF19 BF2C A9 07 ). LDA #&07 BF2E 85 AC ., STA &AC BF30 A1 AC !, LDA (&AC,X) BF32 C9 7F I. CMP #&7F BF34 B0 04 0. BCS &BF3A BF36 C9 20 I CMP #&20 BF38 B0 02 0. BCS &BF3C BF3A A9 2E ). LDA #&2E BF3C 20 E3 FF c. JSR &FFE3 BF3F C6 AC F, DEC &AC BF41 10 ED .m BPL &BF30 BF43 20 E7 FF g. JSR &FFE7 BF46 A9 08 ). LDA #&08 BF48 18 . CLC BF49 65 A8 e( ADC &A8 BF4B 85 A8 .( STA &A8 BF4D 90 02 .. BCC &BF51 BF4F E6 A9 f) INC &A9 BF51 28 ( PLP BF52 B0 86 0. BCS &BEDA BF54 90 97 .. BCC &BEED BF56 20 99 B9 .9 JSR &B999 BF59 20 DA BE Z> JSR &BEDA BF5C 4C 76 AB Lv+ JMP &AB76 BF5F 20 B2 BF 2? JSR &BFB2 BF62 A9 80 ). LDA #&80 BF64 20 CE FF N. JSR &FFCE BF67 85 AB .+ STA &AB BF69 20 DC BF \? JSR &BFDC BF6C 20 A9 BF )? JSR &BFA9 BF6F 20 8A BE .> JSR &BE8A BF72 A2 AC ", LDX #&AC BF74 A0 FF . LDY #&FF BF76 84 AE .. STY &AE BF78 84 B0 .0 STY &B0 BF7A C8 H INY BF7B 84 AC ., STY &AC BF7D A9 20 ) LDA #&20 BF7F 85 AF ./ STA &AF BF81 98 . TYA BF82 20 F1 FF q. JSR &FFF1 BF85 08 . PHP BF86 84 AA .* STY &AA BF88 A4 AB $+ LDY &AB BF8A A2 00 ". LDX #&00 BF8C F0 07 p. BEQ &BF95 BF8E A1 AC !, LDA (&AC,X) BF90 20 D4 FF T. JSR &FFD4 BF93 E6 AC f, INC &AC BF95 A5 AC %, LDA &AC BF97 C5 AA E* CMP &AA BF99 D0 F3 Ps BNE &BF8E BF9B 28 ( PLP BF9C B0 B8 08 BCS &BF56 BF9E A9 0D ). LDA #&0D BFA0 20 D4 FF T. JSR &FFD4 BFA3 4C 69 BF Li? JMP &BF69 BFA6 20 A9 BF )? JSR &BFA9 BFA9 48 H PHA BFAA A9 20 ) LDA #&20 BFAC 20 E3 FF c. JSR &FFE3 BFAF 68 h PLA BFB0 18 . CLC BFB1 60 ` RTS BFB2 BA : TSX BFB3 A9 00 ). LDA #&00 BFB5 9D 07 01 ... STA &0107,X BFB8 88 . DEY BFB9 C8 H INY BFBA B1 F2 1r LDA (&F2),Y BFBC C9 20 I CMP #&20 BFBE F0 F9 py BEQ &BFB9 BFC0 C9 0D I. CMP #&0D BFC2 D0 03 P. BNE &BFC7 BFC4 4C 66 BA Lf: JMP &BA66 BFC7 A9 00 ). LDA #&00 BFC9 85 A8 .( STA &A8 BFCB 85 A9 .) STA &A9 BFCD 48 H PHA BFCE 98 . TYA BFCF 18 . CLC BFD0 65 F2 er ADC &F2 BFD2 AA * TAX BFD3 A5 F3 %s LDA &F3 BFD5 69 00 i. ADC #&00 BFD7 A8 ( TAY BFD8 68 h PLA BFD9 60 ` RTS BFDA 54 T ??? BFDB 20 F8 18 x. JSR &18F8 BFDE A5 A8 %( LDA &A8 BFE0 69 01 i. ADC #&01 f BFE2 85 A8 .( STA &A8 BFE4 A5 A9 %) LDA &A9 BFE6 69 00 i. ADC #&00 BFE8 85 A9 .) STA &A9 BFEA D8 X CLD BFEB 20 F0 BF p? JSR &BFF0 BFEE A5 A8 %( LDA &A8 BFF0 48 H PHA BFF1 20 38 A1 8! JSR &A138 BFF4 20 F8 BF x? JSR &BFF8 BFF7 68 h PLA BFF8 20 45 A0 E JSR &A045 BFFB 20 E3 FF c. JSR &FFE3 BFFE 38 8 SEC BFFF 60 ` RTS