; -----------------------------------------------------------------------------
; ANFS 4.25 (c) Acorn 1986
; reverse engineered by Eelco Huininga
; Load address : 00008000
; Exec address : 0000D9CD
; Length       : 00004000
; -----------------------------------------------------------------------------

dfs_fsid           = 4
econet_fsid        = 5
adfs_fsid          = 8

; -----------------------------------------------------------------------------
; Workspace
; -----------------------------------------------------------------------------

protection_mask    = &0D68                       ; Protection mask
fs_station         = &C000                       ; File server station ID
fs_network         = &C001                       ; File server network ID
urd                = &C002                       ; User Root Directory
csd                = &C003                       ; Currently Selected Directory
lib                = &C004                       ; Currently Selected Library

; -----------------------------------------------------------------------------
; Device addresses
; -----------------------------------------------------------------------------

fdc_status         = &FE28
fdc_data           = &FE2B

romsel             = &FE30
acccon             = &FE34
intoff             = &FE38
inton              = &FE3C

adlc_control1      = &FEA0                        ; (Write) Control register 1
adlc_control23     = &FEA1                        ; (Write) Control register 2/3
adlc_transmitc     = &FEA2                        ; (Write) Transmit FIFO, continue
adlc_transmitt     = &FEA3                        ; (Write) Transmit FIFO, terminate

adlc_status1       = &FEA0                        ; (Read)  Status register 1
adlc_status2       = &FEA1                        ; (Read)  Status register 2
adlc_receive       = &FEA2                        ; (Read)  Receive FIFO


; -----------------------------------------------------------------------------
; OS call addresses
; -----------------------------------------------------------------------------
fscv               = &021E                        ; FSCV Varous filing system control functions
evntv              = &0220                        ; EVNTV Event vector
tubecontrol        = &0406                        ; TUBE control (claim/data transfer/release)
oseven             = &FFBF                        ; OSEVEN Generate an event
gsinit             = &FFC2                        ; GSINIT String input initialise
gsread             = &FFC5                        ; GSREAD Read character from string
osfind             = &FFCE                        ; OSFIND Open or close a file
osbget             = &FFD7                        ; OSBGET Get byte from file
osargs             = &FFDA                        ; OSARGS Load or save file parameters
osfile             = &FFDD                        ; OSFILE Load or save a complete file
osrdch             = &FFE0                        ; OSRDCH Read a character
osasci             = &FFE3                        ; OSASCI Write a character, with CR converted to LF
osnewl             = &FFE7                        ; OSNEWL Write a new-line routine
oswrch             = &FFEE                        ; OSWRCH Write a character
osword             = &FFF1                        ; OSWORD Various OS routines
osbyte             = &FFF4                        ; OSBYTE Various OS routines
oscli              = &FFF7                        ; OSCLI Operating System Command Line Interface


; -----------------------------------------------------------------------------
; Start of code
; -----------------------------------------------------------------------------


8000  00           .     BRK                      ; Language call entry
8001  42           B     EQUB &42
8002  43           C     EQUB &43
8003  4C 8C 8A     L..   JMP service              ; Service call entry
8006  82           .     EQUB %10000010           ; ROM type; bit 7   = 1    : Has a service entry
                                                  ;           bit 6   = 0    : Has no language entry
                                                  ;           bit 5   = 0    : Isn't relocatable to the second processor
                                                  ;           bit 4   = 0    : No Electron firm key expansions availabe
                                                  ;           bit 3-0 = 0010 : 6502 code (not BASIC)
8007  19           .     EQUB &19                 ; Copyright offset
8008  04           .     EQUB &04                 ; Version
8009  41 63 6F 72  Acor  EQUS "Acorn ANFS 4.25"   ; ROM title
      6E 20 41 4E  n AN
      46 53 20 34  FS 4
      2E 32 35     .25
8018  00           .     EQUB &00                 ; Title termination byte
.version
8019  00           .     EQUB &00                 ; Version termination byte (no version string set)
.copyright
801A  28 43 29 31  (C)1  EQUS "(C)1986 Acorn"     ; Copyright string
      39 38 36 20  986 
      41 63 6F 72  Acor
      6E
8027  00           .     EQUB &00                 ; Copyright termination byte

.
8028  25 04        %.    AND &04
802A  DA           .     PHX
802B  5A           Z     PHY
802C  AC 65 0D     .e.   LDY &0D65
802F  D0 03        ..    BNE &8034
8031  7A           z     PLY
8032  FA           .     PLX
8033  60           `     RTS
8034  A9 80        ..    LDA #&80
8036  1C 34 FE     .4.   TRB acccon
8039  9C 65 0D     .e.   STZ &0D65
803C  98           .     TYA
803D  30 0B        0.    BMI &804A
803F  A9 FE        ..    LDA #&FE
8041  20 47 80      G.   JSR &8047
8044  4C A6 85     L..   JMP &85A6
8047  6C 20 02     l .   JMP (evntv)
804A  A9 85        ..    LDA #&85
804C  48           H     PHA
804D  B9 DC 84     ...   LDA &84DC,Y
8050  48           H     PHA
8051  60           `     RTS
8052  2C 38 FE     ,8.   BIT intoff
8055  20 C1 89      ..   JSR &89C1
8058  A9 EA        ..    LDA #&EA
805A  A2 00        ..    LDX #&00
805C  8E 62 0D     .b.   STX &0D62
805F  20 E3 8E      ..   JSR &8EE3
8062  8E 63 0D     .c.   STX &0D63
8065  A9 8F        ..    LDA #&8F
8067  A2 0C        ..    LDX #&0C
8069  20 E5 8E      ..   JSR &8EE5
806C  A0 05        ..    LDY #&05
806E  C0 05        ..    CPY #&05
8070  D0 2A        .*    BNE &809C
8072  A0 20        .     LDY #&20
8074  B9 02 8A     ...   LDA &8A02,Y
8077  99 FF 0C     ...   STA &0CFF,Y
807A  88           .     DEY
807B  D0 F7        ..    BNE &8074
807D  A5 F4        ..    LDA &F4
807F  8D 07 0D     ...   STA &0D07
8082  8C 23 0D     .#.   STY &0D23
8085  84 99        ..    STY &99
8087  8C 65 0D     .e.   STY &0D65
808A  A0 01        ..    LDY #&01
808C  B1 9C        ..    LDA (&9C),Y
808E  8D 22 0D     .".   STA &0D22
8091  A9 80        ..    LDA #&80
8093  8D 60 0D     .`.   STA &0D60
8096  8D 62 0D     .b.   STA &0D62
8099  2C 3C FE     ,<.   BIT inton
809C  60           `     RTS
809D  A9 01        ..    LDA #%00000001
809F  2C A1 FE     ,..   BIT adlc_status2
80A2  F0 36        .6    BEQ &80DA
80A4  AD A2 FE     ...   LDA adlc_receive
80A7  CD 22 0D     .".   CMP &0D22
80AA  F0 09        ..    BEQ &80B5
80AC  C9 FF        ..    CMP #&FF
80AE  D0 18        ..    BNE &80C8
80B0  A9 40        .@    LDA #&40
80B2  8D 3E 0D     .>.   STA &0D3E
80B5  A9 BA        ..    LDA #&BA
80B7  4C 11 0D     L..   JMP &0D11
80BA  2C A1 FE     ,..   BIT adlc_status2
80BD  10 1B        ..    BPL &80DA
80BF  AD A2 FE     ...   LDA adlc_receive
80C2  F0 0C        ..    BEQ &80D0
80C4  49 FF        I.    EOR #&FF
80C6  F0 0B        ..    BEQ &80D3
80C8  A9 A2        ..    LDA #%10100010
80CA  8D A0 FE     ...   STA adlc_control1
80CD  4C FD 83     L..   JMP &83FD
80D0  8D 3E 0D     .>.   STA &0D3E
80D3  85 A2        ..    STA &A2
80D5  A9 EA        ..    LDA #&EA
80D7  4C 11 0D     L..   JMP &0D11
80DA  AD A1 FE     ...   LDA adlc_status2
80DD  29 81        ).    AND #&81
80DF  F0 06        ..    BEQ &80E7
80E1  20 C1 89      ..   JSR &89C1
80E4  4C FD 83     L..   JMP &83FD
80E7  4C FA 83     L..   JMP &83FA
80EA  A4 A2        ..    LDY &A2
80EC  AD A1 FE     ...   LDA adlc_status2
80EF  10 E9        ..    BPL &80DA
80F1  AD A2 FE     ...   LDA adlc_receive
80F4  99 2E 0D     ...   STA &0D2E,Y
80F7  C8           .     INY
80F8  AD A1 FE     ...   LDA adlc_status2
80FB  30 02        0.    BMI &80FF
80FD  D0 15        ..    BNE &8114
80FF  AD A2 FE     ...   LDA adlc_receive
8102  99 2E 0D     ...   STA &0D2E,Y
8105  C8           .     INY
8106  C0 0C        ..    CPY #&0C
8108  F0 0A        ..    BEQ &8114
810A  84 A2        ..    STY &A2
810C  AD A1 FE     ...   LDA adlc_status2
810F  D0 DE        ..    BNE &80EF
8111  4C 14 0D     L..   JMP &0D14
8114  A9 00        ..    LDA #%00000000
8116  8D A0 FE     ...   STA adlc_control1
8119  A9 84        ..    LDA #%10000100
811B  8D A1 FE     ...   STA adlc_control23
811E  A9 02        ..    LDA #%00000010
8120  2C A1 FE     ,..   BIT adlc_status2
8123  F0 B5        ..    BEQ &80DA
8125  10 B3        ..    BPL &80DA
8127  AD A2 FE     ...   LDA adlc_receive
812A  99 2E 0D     ...   STA &0D2E,Y
812D  A9 44        .D    LDA #%01000100
812F  8D A0 FE     ...   STA adlc_control1
8132  38           8     SEC
8133  66 99        f.    ROR &99
8135  AD 31 0D     .1.   LDA &0D31
8138  D0 03        ..    BNE &813D
813A  4C 66 84     Lf.   JMP &8466
813D  2C 3E 0D     ,>.   BIT &0D3E
8140  50 05        P.    BVC &8147
8142  A9 07        ..    LDA #%00000111
8144  8D A1 FE     ...   STA adlc_control23
8147  2C 61 0D     ,a.   BIT &0D61
814A  10 41        .A    BPL &818D
814C  A9 C0        ..    LDA #&C0
814E  A0 00        ..    LDY #&00
8150  D8           .     CLD
8151  85 A6        ..    STA &A6
8153  84 A7        ..    STY &A7
8155  A0 00        ..    LDY #&00
8157  B1 A6        ..    LDA (&A6),Y
8159  F0 2F        ./    BEQ &818A
815B  C9 7F        ..    CMP #&7F
815D  D0 1E        ..    BNE &817D
815F  C8           .     INY
8160  B1 A6        ..    LDA (&A6),Y
8162  F0 05        ..    BEQ &8169
8164  CD 31 0D     .1.   CMP &0D31
8167  D0 14        ..    BNE &817D
8169  C8           .     INY
816A  B1 A6        ..    LDA (&A6),Y
816C  F0 2A        .*    BEQ &8198
816E  CD 2E 0D     ...   CMP &0D2E
8171  D0 0A        ..    BNE &817D
8173  C8           .     INY
8174  B1 A6        ..    LDA (&A6),Y
8176  F0 20        .     BEQ &8198
8178  CD 2F 0D     ./.   CMP &0D2F
817B  F0 1B        ..    BEQ &8198
817D  A5 A7        ..    LDA &A7
817F  F0 0C        ..    BEQ &818D
8181  A5 A6        ..    LDA &A6
8183  18           .     CLC
8184  69 0C        i.    ADC #&0C
8186  85 A6        ..    STA &A6
8188  90 CB        ..    BCC &8155
818A  4C 18 82     L..   JMP &8218
818D  2C 61 0D     ,a.   BIT &0D61
8190  50 F8        P.    BVC &818A
8192  A9 00        ..    LDA #&00
8194  A4 9F        ..    LDY &9F
8196  D0 B9        ..    BNE &8151
8198  A9 03        ..    LDA #&03
819A  8D 40 0D     .@.   STA &0D40
819D  20 AF 85      ..   JSR &85AF
81A0  90 76        .v    BCC &8218
81A2  2C 3E 0D     ,>.   BIT &0D3E
81A5  50 03        P.    BVC &81AA
81A7  4C 12 84     L..   JMP &8412
81AA  A9 44        .D    LDA #%01000100
81AC  8D A0 FE     ...   STA adlc_control1
81AF  A9 A7        ..    LDA #%10100111
81B1  8D A1 FE     ...   STA adlc_control23
81B4  A9 BB        ..    LDA #&BB
81B6  A0 81        ..    LDY #&81
81B8  4C 08 83     L..   JMP &8308
81BB  A9 82        ..    LDA #%10000010
81BD  8D A0 FE     ...   STA adlc_control1
81C0  A9 C5        ..    LDA #&C5
81C2  4C 11 0D     L..   JMP &0D11
81C5  A9 01        ..    LDA #%00000001
81C7  2C A1 FE     ,..   BIT adlc_status2
81CA  F0 4C        .L    BEQ &8218
81CC  AD A2 FE     ...   LDA adlc_receive
81CF  CD 22 0D     .".   CMP &0D22
81D2  D0 44        .D    BNE &8218
81D4  A9 D9        ..    LDA #&D9
81D6  4C 11 0D     L..   JMP &0D11
81D9  2C A1 FE     ,..   BIT adlc_status2
81DC  10 3A        .:    BPL &8218
81DE  AD A2 FE     ...   LDA adlc_receive
81E1  D0 35        .5    BNE &8218
81E3  A9 EF        ..    LDA #&EF
81E5  A0 81        ..    LDY #&81
81E7  2C A0 FE     ,..   BIT adlc_status
81EA  30 03        0.    BMI &81EF
81EC  4C 0E 0D     L..   JMP &0D0E
81EF  2C A1 FE     ,..   BIT adlc_status2
81F2  10 24        .$    BPL &8218
81F4  AD A2 FE     ...   LDA adlc_receive
81F7  AD A2 FE     ...   LDA adlc_receive
81FA  A9 02        ..    LDA #&02
81FC  2C 3E 0D     ,>.   BIT &0D3E
81FF  D0 0C        ..    BNE &820D
8201  A9 26        .&    LDA #&26
8203  A0 82        ..    LDY #%10000010
8205  2C A0 FE     ,..   BIT adlc_status
8208  30 1C        0.    BMI &8226
820A  4C 0E 0D     L..   JMP &0D0E
820D  A9 A1        ..    LDA #&A1
820F  A0 82        ..    LDY #&82
8211  4C 0E 0D     L..   JMP &0D0E
8214  68           h     PLA
8215  8D 34 FE     .4.   STA acccon
8218  AD 3E 0D     .>.   LDA &0D3E
821B  10 03        ..    BPL &8220
821D  4C B3 89     L..   JMP &89B3
8220  20 C1 89      ..   JSR &89C1
8223  4C F7 83     L..   JMP &83F7
8226  A4 A2        ..    LDY &A2
8228  AD A1 FE     ...   LDA adlc_status2
822B  10 3E        .>    BPL &826B
822D  AD 34 FE     .4.   LDA acccon
8230  48           H     PHA
8231  A5 97        ..    LDA &97
8233  8D 34 FE     .4.   STA acccon
8236  AD A2 FE     ...   LDA adlc_receive
8239  91 A4        ..    STA (&A4),Y
823B  C8           .     INY
823C  D0 06        ..    BNE &8244
823E  E6 A5        ..    INC &A5
8240  C6 A3        ..    DEC &A3
8242  F0 D0        ..    BEQ &8214
8244  AD A1 FE     ...   LDA adlc_status2
8247  30 02        0.    BMI &824B
8249  D0 1C        ..    BNE &8267
824B  AD A2 FE     ...   LDA adlc_receive
824E  91 A4        ..    STA (&A4),Y
8250  C8           .     INY
8251  84 A2        ..    STY &A2
8253  D0 06        ..    BNE &825B
8255  E6 A5        ..    INC &A5
8257  C6 A3        ..    DEC &A3
8259  F0 0C        ..    BEQ &8267
825B  68           h     PLA
825C  8D 34 FE     .4.   STA acccon
825F  AD A1 FE     ...   LDA adlc_status2
8262  D0 C7        ..    BNE &822B
8264  4C 14 0D     L..   JMP &0D14
8267  68           h     PLA
8268  8D 34 FE     .4.   STA acccon
826B  A9 84        ..    LDA #%10000100
826D  8D A1 FE     ...   STA adlc_control23
8270  A9 00        ..    LDA #%00000000
8272  8D A0 FE     ...   STA adlc_control1
8275  84 A2        ..    STY &A2
8277  A9 02        ..    LDA #%00000010
8279  2C A1 FE     ,..   BIT adlc_status2
827C  F0 9A        ..    BEQ &8218
827E  10 1E        ..    BPL &829E
8280  A5 A3        ..    LDA &A3
8282  F0 94        ..    BEQ &8218
8284  AD 34 FE     .4.   LDA acccon
8287  48           H     PHA
8288  A5 97        ..    LDA &97
828A  8D 34 FE     .4.   STA acccon
828D  AD A2 FE     ...   LDA adlc_receive
8290  A4 A2        ..    LDY &A2
8292  91 A4        ..    STA (&A4),Y
8294  68           h     PLA
8295  8D 34 FE     .4.   STA acccon
8298  E6 A2        ..    INC &A2
829A  D0 02        ..    BNE &829E
829C  E6 A5        ..    INC &A5
829E  4C EF 82     L..   JMP &82EF
82A1  AD A1 FE     ...   LDA adlc_status2
82A4  10 1E        ..    BPL &82C4
82A6  AD A2 FE     ...   LDA adlc_receive
82A9  20 50 85      P.   JSR &8550
82AC  F0 D4        ..    BEQ &8282
82AE  8D E5 FE     ...   STA tubedat
82B1  AD A2 FE     ...   LDA adlc_receive
82B4  8D E5 FE     ...   STA tubedat
82B7  20 50 85      P.   JSR &8550
82BA  F0 08        ..    BEQ &82C4
82BC  AD A1 FE     ...   LDA adlc_status2
82BF  D0 E3        ..    BNE &82A4
82C1  4C 14 0D     L..   JMP &0D14
82C4  A9 00        ..    LDA #%00000000
82C6  8D A0 FE     ...   STA adlc_control1
82C9  A9 84        ..    LDA #%10000100
82CB  8D A1 FE     ...   STA adlc_control23
82CE  A9 02        ..    LDA #%00000010
82D0  2C A1 FE     ,..   BIT adlc_status2
82D3  F0 AD        ..    BEQ &8282
82D5  10 18        ..    BPL &82EF
82D7  A5 A2        ..    LDA &A2
82D9  05 A3        ..    ORA &A3
82DB  05 A4        ..    ORA &A4
82DD  05 A5        ..    ORA &A5
82DF  F0 A1        ..    BEQ &8282
82E1  AD A2 FE     ...   LDA adlc_receive
82E4  8D 42 0D     .B.   STA &0D42
82E7  A9 20        .     LDA #&20
82E9  0D 3E 0D     .>.   ORA &0D3E
82EC  8D 3E 0D     .>.   STA &0D3E
82EF  AD 3E 0D     .>.   LDA &0D3E
82F2  10 06        ..    BPL &82FA
82F4  20 4F 83      O.   JSR &834F
82F7  4C AF 89     L..   JMP &89AF
82FA  A9 44        .D    LDA #%01000100
82FC  8D A0 FE     ...   STA adlc_control1
82FF  A9 A7        ..    LDA #%10100111
8301  8D A1 FE     ...   STA adlc_control23
8304  A9 97        ..    LDA #&97
8306  A0 83        ..    LDY #&83
8308  8D 43 0D     .C.   STA &0D43
830B  8C 44 0D     .D.   STY &0D44
830E  AD 2E 0D     ...   LDA &0D2E
8311  2C A0 FE     ,..   BIT adlc_status
8314  50 36        P6    BVC &834C
8316  8D A2 FE     ...   STA adlc_transmitc
8319  AD 2F 0D     ./.   LDA &0D2F
831C  8D A2 FE     ...   STA adlc_transmitc
831F  A9 26        .&    LDA #&26
8321  A0 83        ..    LDY #&83
8323  4C 0E 0D     L..   JMP &0D0E
8326  AD 22 0D     .".   LDA &0D22
8329  2C A0 FE     ,..   BIT adlc_status
832C  50 1E        P.    BVC &834C
832E  8D A2 FE     ...   STA adlc_transmitc
8331  A9 00        ..    LDA #&00
8333  8D A2 FE     ...   STA adlc_transmitc
8336  AD 3E 0D     .>.   LDA &0D3E
8339  30 0E        0.    BMI &8349
833B  A9 3F        .?    LDA #%00111111
833D  8D A1 FE     ...   STA adlc_control23
8340  AD 43 0D     .C.   LDA &0D43
8343  AC 44 0D     .D.   LDY &0D44
8346  4C 0E 0D     L..   JMP &0D0E
8349  4C 9F 88     L..   JMP &889F
834C  4C 18 82     L..   JMP &8218
834F  A9 02        ..    LDA #&02
8351  2C 3E 0D     ,>.   BIT &0D3E
8354  F0 40        .@    BEQ &8396
8356  18           .     CLC
8357  08           .     PHP
8358  A0 08        ..    LDY #&08
835A  D8           .     CLD
835B  B1 A6        ..    LDA (&A6),Y
835D  28           (     PLP
835E  79 9A 00     y..   ADC &009A,Y
8361  91 A6        ..    STA (&A6),Y
8363  C8           .     INY
8364  08           .     PHP
8365  C0 0C        ..    CPY #&0C
8367  90 F2        ..    BCC &835B
8369  28           (     PLP
836A  A9 20        .     LDA #&20
836C  2C 3E 0D     ,>.   BIT &0D3E
836F  F0 23        .#    BEQ &8394
8371  8A           .     TXA
8372  48           H     PHA
8373  A9 08        ..    LDA #&08
8375  18           .     CLC
8376  65 A6        e.    ADC &A6
8378  AA           .     TAX
8379  A4 A7        ..    LDY &A7
837B  A9 01        ..    LDA #&01
837D  20 06 04      ..   JSR tubecontrol
8380  AD 42 0D     .B.   LDA &0D42
8383  8D E5 FE     ...   STA tubedat
8386  38           8     SEC
8387  A0 08        ..    LDY #&08
8389  A9 00        ..    LDA #&00
838B  71 A6        q.    ADC (&A6),Y
838D  91 A6        ..    STA (&A6),Y
838F  C8           .     INY
8390  B0 F7        ..    BCS &8389
8392  68           h     PLA
8393  AA           .     TAX
8394  A9 FF        ..    LDA #&FF
8396  60           `     RTS
8397  D8           .     CLD
8398  AD 31 0D     .1.   LDA &0D31
839B  D0 0A        ..    BNE &83A7
839D  AC 30 0D     .0.   LDY &0D30
83A0  C0 82        ..    CPY #&82
83A2  F0 03        ..    BEQ &83A7
83A4  4C 1D 85     L..   JMP &851D
83A7  20 4F 83      O.   JSR &834F
83AA  D0 12        ..    BNE &83BE
83AC  A5 A2        ..    LDA &A2
83AE  18           .     CLC
83AF  65 A4        e.    ADC &A4
83B1  90 02        ..    BCC &83B5
83B3  E6 A5        ..    INC &A5
83B5  A0 08        ..    LDY #&08
83B7  91 A6        ..    STA (&A6),Y
83B9  C8           .     INY
83BA  A5 A5        ..    LDA &A5
83BC  91 A6        ..    STA (&A6),Y
83BE  AD 31 0D     .1.   LDA &0D31
83C1  F0 34        .4    BEQ &83F7
83C3  AD 2F 0D     ./.   LDA &0D2F
83C6  A0 03        ..    LDY #&03
83C8  91 A6        ..    STA (&A6),Y
83CA  88           .     DEY
83CB  AD 2E 0D     ...   LDA &0D2E
83CE  91 A6        ..    STA (&A6),Y
83D0  88           .     DEY
83D1  AD 31 0D     .1.   LDA &0D31
83D4  91 A6        ..    STA (&A6),Y
83D6  88           .     DEY
83D7  AD 30 0D     .0.   LDA &0D30
83DA  09 80        ..    ORA #&80
83DC  91 A6        ..    STA (&A6),Y
83DE  AD 6C 0D     .l.   LDA &0D6C
83E1  6A           j     ROR A
83E2  90 13        ..    BCC &83F7
83E4  A5 A6        ..    LDA &A6
83E6  C8           .     INY
83E7  E9 0C        ..    SBC #&0C
83E9  B0 FB        ..    BCS &83E6
83EB  88           .     DEY
83EC  C0 03        ..    CPY #&03
83EE  90 07        ..    BCC &83F7
83F0  20 04 84      ..   JSR &8404
83F3  98           .     TYA
83F4  4C 36 85     L6.   JMP &8536
83F7  20 04 84      ..   JSR &8404
83FA  20 D0 89      ..   JSR &89D0
83FD  A9 9D        ..    LDA #&9D
83FF  A0 80        ..    LDY #&80
8401  4C 0E 0D     L..   JMP &0D0E
8404  A9 02        ..    LDA #&02
8406  2D 63 0D     -c.   AND &0D63
8409  2C 3E 0D     ,>.   BIT &0D3E
840C  F0 03        ..    BEQ &8411
840E  20 5A 84      Z.   JSR &845A
8411  60           `     RTS
8412  8A           .     TXA
8413  48           H     PHA
8414  A2 04        ..    LDX #&04
8416  A9 02        ..    LDA #&02
8418  2C 3E 0D     ,>.   BIT &0D3E
841B  D0 2B        .+    BNE &8448
841D  AD 34 FE     .4.   LDA acccon
8420  48           H     PHA
8421  A5 97        ..    LDA &97
8423  8D 34 FE     .4.   STA acccon
8426  A4 A2        ..    LDY &A2
8428  BD 2E 0D     ...   LDA &0D2E,X
842B  91 A4        ..    STA (&A4),Y
842D  C8           .     INY
842E  D0 06        ..    BNE &8436
8430  E6 A5        ..    INC &A5
8432  C6 A3        ..    DEC &A3
8434  F0 59        .Y    BEQ &848F
8436  E8           .     INX
8437  84 A2        ..    STY &A2
8439  E0 0C        ..    CPX #&0C
843B  D0 EB        ..    BNE &8428
843D  68           h     PLA
843E  8D 34 FE     .4.   STA acccon
8441  68           h     PLA
8442  AA           .     TAX
8443  4C A7 83     L..   JMP &83A7
8446  B0 B2        ..    BCS &83FA
8448  BD 2E 0D     ...   LDA &0D2E,X
844B  8D E5 FE     ...   STA tubedat
844E  20 50 85      P.   JSR &8550
8451  F0 3E        .>    BEQ &8491
8453  E8           .     INX
8454  E0 0C        ..    CPX #&0C
8456  D0 F0        ..    BNE &8448
8458  F0 E7        ..    BEQ &8441
845A  24 99        $.    BIT &99
845C  30 05        0.    BMI &8463
845E  A9 82        ..    LDA #&82                 ; We'll use ID 2 for releasing the tube
8460  20 06 04      ..   JSR tubecontrol          ; Release the TUBE
8463  46 99        F.    LSR &99
8465  60           `     RTS
8466  AC 30 0D     .0.   LDY &0D30
8469  C0 81        ..    CPY #&81
846B  90 2E        ..    BCC &849B
846D  C0 89        ..    CPY #&89
846F  B0 2A        .*    BCS &849B
8471  C0 87        ..    CPY #&87
8473  B0 0F        ..    BCS &8484
8475  98           .     TYA
8476  D8           .     CLD
8477  38           8     SEC
8478  E9 81        ..    SBC #&81
847A  A8           .     TAY
847B  AD 68 0D     .h.   LDA &0D68               ; Get protection mask
847E  6A           j     ROR A
847F  88           .     DEY
8480  10 FC        ..    BPL &847E
8482  B0 C2        ..    BCS &8446
8484  AC 30 0D     .0.   LDY &0D30
8487  A9 84        ..    LDA #&84
8489  48           H     PHA
848A  B9 94 84     ...   LDA &8494,Y
848D  48           H     PHA
848E  60           `     RTS
848F  E6 A2        ..    INC &A2
8491  68           h     PLA
8492  8D 34 FE     .4.   STA acccon
8495  E0 0B        ..    CPX #&0B
8497  F0 A8        ..    BEQ &8441
8499  68           h     PLA
849A  AA           .     TAX
849B  4C 18 82     L..   JMP &8218
849E  A9 00        ..    LDA #&00
84A0  85 A4        ..    STA &A4
84A2  A9 82        ..    LDA #&82
84A4  85 A2        ..    STA &A2
84A6  A9 01        ..    LDA #&01
84A8  85 A3        ..    STA &A3
84AA  A5 9D        ..    LDA &9D
84AC  85 A5        ..    STA &A5
84AE  A0 01        ..    LDY #&01
84B0  B9 32 0D     .2.   LDA &0D32,Y
84B3  99 66 0D     .f.   STA &0D66,Y
84B6  88           .     DEY
84B7  10 F7        ..    BPL &84B0
84B9  4C AA 81     L..   JMP &81AA
84BC  A9 2E        ..    LDA #&2E
84BE  85 A6        ..    STA &A6
84C0  A9 0D        ..    LDA #&0D
84C2  85 A7        ..    STA &A7
84C4  4C 98 81     L..   JMP &8198
84C7  A9 2E        ..    LDA #&2E
84C9  85 A6        ..    STA &A6
84CB  A9 0D        ..    LDA #&0D
84CD  85 A7        ..    STA &A7
84CF  A9 02        ..    LDA #&02
84D1  8D 40 0D     .@.   STA &0D40
84D4  20 AF 85      ..   JSR &85AF
84D7  90 74        .t    BCC &854D
84D9  AD 3E 0D     .>.   LDA &0D3E
84DC  09 80        ..    ORA #&80
84DE  8D 3E 0D     .>.   STA &0D3E
84E1  A9 44        .D    LDA #%01000100
84E3  8D A0 FE     ...   STA adlc_control1
84E6  A9 A7        ..    LDA #%10100111
84E8  8D A1 FE     ...   STA adlc_control23
84EB  A9 33        .3    LDA #&33
84ED  A0 85        ..    LDY #&85
84EF  4C 08 83     L..   JMP &8308
84F2  A9 01        ..    LDA #&01
84F4  85 A3        ..    STA &A3
84F6  A9 FC        ..    LDA #&FC
84F8  85 A2        ..    STA &A2
84FA  A0 02        ..    LDY #&02
84FC  B9 27 80     .'.   LDA &8027,Y
84FF  99 37 0D     .7.   STA &0D37,Y
8502  88           .     DEY
8503  10 F7        ..    BPL &84FC
8505  AD 71 0D     .q.   LDA &0D71
8508  8D 36 0D     .6.   STA &0D36
850B  A9 3A        .:    LDA #&3A
850D  85 A4        ..    STA &A4
850F  A9 0C        ..    LDA #&0C
8511  85 A5        ..    STA &A5
8513  D0 C4        ..    BNE &84D9
8515  C6 BB        ..    DEC &BB
8517  9D 9D 9D     ...   STA &9D9D,X
851A  E0 E0        ..    CPX #&E0
851C  F1 A5        ..    SBC (&A5),Y
851E  A2 18        ..    LDX #&18
8520  69 80        i.    ADC #&80
8522  A0 7F        ..    LDY #&7F
8524  91 9C        ..    STA (&9C),Y
8526  A0 80        ..    LDY #&80
8528  AD 2E 0D     ...   LDA &0D2E
852B  91 9C        ..    STA (&9C),Y
852D  C8           .     INY
852E  AD 2F 0D     ./.   LDA &0D2F
8531  91 9C        ..    STA (&9C),Y
8533  AD 30 0D     .0.   LDA &0D30
8536  8D 65 0D     .e.   STA &0D65
8539  C9 86        ..    CMP #&86
853B  B0 0B        ..    BCS &8548
853D  AD 68 0D     .h.   LDA &0D68               ; Get protection mask
8540  8D 69 0D     .i.   STA &0D69
8543  09 1C        ..    ORA #&1C
8545  8D 68 0D     .h.   STA &0D68               ; Set protection mask
8548  A9 80        ..    LDA #&80
854A  0C 34 FE     .4.   TSB acccon
854D  4C FA 83     L..   JMP &83FA
8550  E6 A2        ..    INC &A2
8552  D0 0A        ..    BNE &855E
8554  E6 A3        ..    INC &A3
8556  D0 06        ..    BNE &855E
8558  E6 A4        ..    INC &A4
855A  D0 02        ..    BNE &855E
855C  E6 A5        ..    INC &A5
855E  60           `     RTS
855F  63            c     ...
8560  6C 7A 86     lz.   JMP (&867A)
8563  9D A9 85     ...   STA &85A9,X
8566  48           H     PHA
8567  A9 A5        ..    LDA #&A5
8569  48           H     PHA
856A  6C 66 0D     lf.   JMP (&0D66)
856D  AE 66 0D     .f.   LDX &0D66
8570  AD 67 0D     .g.   LDA &0D67
8573  A0 08        ..    LDY #&08
8575  20 BF FF      ..   JSR oseven
8578  4C A6 85     L..   JMP &85A6
857B  AE 66 0D     .f.   LDX &0D66
857E  AC 67 0D     .g.   LDY &0D67
8581  20 75 8E      u.   JSR &8E75
8584  4C A6 85     L..   JMP &85A6
8587  A9 04        ..    LDA #&04
8589  2C 61 0D     ,a.   BIT &0D61
858C  D0 18        ..    BNE &85A6
858E  0D 61 0D     .a.   ORA &0D61
8591  8D 61 0D     .a.   STA &0D61
8594  A9 04        ..    LDA #&04
8596  58           X     CLI
8597  2C 61 0D     ,a.   BIT &0D61
859A  D0 FB        ..    BNE &8597
859C  F0 08        ..    BEQ &85A6
859E  AD 61 0D     .a.   LDA &0D61
85A1  29 FB        ).    AND #&FB
85A3  8D 61 0D     .a.   STA &0D61
85A6  68           h     PLA
85A7  A8           .     TAY
85A8  68           h     PLA
85A9  AA           .     TAX
85AA  A9 00        ..    LDA #&00
85AC  85 A9        ..    STA &A9
85AE  60           `     RTS
85AF  D8           .     CLD
85B0  AD 34 FE     .4.   LDA acccon
85B3  09 08        ..    ORA #&08
85B5  85 97        ..    STA &97
85B7  A0 07        ..    LDY #&07
85B9  B1 A6        ..    LDA (&A6),Y
85BB  C9 FF        ..    CMP #&FF
85BD  D0 15        ..    BNE &85D4
85BF  88           .     DEY
85C0  B1 A6        ..    LDA (&A6),Y
85C2  C9 FE        ..    CMP #&FE
85C4  90 0E        ..    BCC &85D4
85C6  D0 0A        ..    BNE &85D2
85C8  AD 34 FE     .4.   LDA acccon
85CB  6A           j     ROR A
85CC  90 04        ..    BCC &85D2
85CE  A9 04        ..    LDA #&04
85D0  04 97        ..    TSB &97
85D2  80 44        .D    BRA &8618
85D4  AD 63 0D     .c.   LDA &0D63
85D7  F0 3F        .?    BEQ &8618
85D9  AD 3E 0D     .>.   LDA &0D3E
85DC  09 02        ..    ORA #&02
85DE  8D 3E 0D     .>.   STA &0D3E
85E1  38           8     SEC
85E2  08           .     PHP
85E3  A0 04        ..    LDY #&04
85E5  B1 A6        ..    LDA (&A6),Y
85E7  C8           .     INY
85E8  C8           .     INY
85E9  C8           .     INY
85EA  C8           .     INY
85EB  28           (     PLP
85EC  F1 A6        ..    SBC (&A6),Y
85EE  99 9A 00     ...   STA &009A,Y
85F1  88           .     DEY
85F2  88           .     DEY
85F3  88           .     DEY
85F4  08           .     PHP
85F5  C0 08        ..    CPY #&08
85F7  90 EC        ..    BCC &85E5
85F9  28           (     PLP
85FA  8A           .     TXA
85FB  48           H     PHA
85FC  A9 04        ..    LDA #&04
85FE  18           .     CLC
85FF  65 A6        e.    ADC &A6
8601  AA           .     TAX
8602  A4 A7        ..    LDY &A7
8604  A9 C2        ..    LDA #&C2                 ; We'll use ID 2 for claiming the tube
8606  20 06 04      ..   JSR tubecontrol          ; Claim the TUBE
8609  90 0A        ..    BCC &8615
860B  AD 40 0D     .@.   LDA &0D40
860E  20 06 04      ..   JSR tubecontrol
8611  20 5A 84      Z.   JSR &845A
8614  38           8     SEC
8615  68           h     PLA
8616  AA           .     TAX
8617  60           `     RTS
8618  A0 04        ..    LDY #&04
861A  B1 A6        ..    LDA (&A6),Y
861C  A0 08        ..    LDY #&08
861E  38           8     SEC
861F  F1 A6        ..    SBC (&A6),Y
8621  85 A2        ..    STA &A2
8623  A0 05        ..    LDY #&05
8625  B1 A6        ..    LDA (&A6),Y
8627  E9 00        ..    SBC #&00
8629  85 A5        ..    STA &A5
862B  A0 08        ..    LDY #&08
862D  B1 A6        ..    LDA (&A6),Y
862F  85 A4        ..    STA &A4
8631  A0 09        ..    LDY #&09
8633  B1 A6        ..    LDA (&A6),Y
8635  38           8     SEC
8636  E5 A5        ..    SBC &A5
8638  85 A3        ..    STA &A3
863A  38           8     SEC
863B  60           `     RTS
863C  0E 0E 0A     ...   ASL &0A0E
863F  0A           .     ASL A
8640  0A           .     ASL A
8641  06 06        ..    ASL &06
8643  0A           .     ASL A
8644  81 00        ..    STA (&00,X)
8646  00           .     BRK
8647  00           .     BRK
8648  00           .     BRK
8649  01 01        ..    ORA (&01,X)
864B  81 8A        ..    STA (&8A,X)

; -----------------------------------------------------------------------------
; 
; -----------------------------------------------------------------------------
.
864C  8A           .     TXA
864D  48           H     PHA
864E  A0 02        ..    LDY #&02
8650  B1 A0        ..    LDA (&A0),Y
8652  8D 20 0D     . .   STA &0D20                         ; Destination network
8655  C8           .     INY
8656  B1 A0        ..    LDA (&A0),Y
8658  8D 21 0D     .!.   STA &0D21                         ; Destination station
865B  A0 00        ..    LDY #&00
865D  B1 A0        ..    LDA (&A0),Y                       ; Control byte
865F  30 03        0.    BMI &8664
8661  4C F8 86     L..   JMP &86F8
.
8664  8D 24 0D     .$.   STA &0D24
8667  AA           .     TAX                               ; X = control byte
8668  C8           .     INY
8669  B1 A0        ..    LDA (&A0),Y                       ; Port
866B  8D 25 0D     .%.   STA &0D25
866E  D0 33        .3    BNE &86A3                         ; Jump if
8670  E0 83        ..    CPX #&83                          ; Is port number > &83?
8672  B0 1B        ..    BCS &868F
8674  38           8     SEC
8675  08           .     PHP
8676  A0 08        ..    LDY #&08
.
8678  B1 A0        ..    LDA (&A0),Y
867A  88           .     DEY
867B  88           .     DEY
867C  88           .     DEY
867D  88           .     DEY
867E  28           (     PLP
867F  F1 A0        ..    SBC (&A0),Y
8681  99 26 0D     .&.   STA &0D26,Y
8684  C8           .     INY
8685  C8           .     INY
8686  C8           .     INY
8687  C8           .     INY
8688  C8           .     INY
8689  08           .     PHP
868A  C0 0C        ..    CPY #&0C
868C  90 EA        ..    BCC &8678
868E  28           (     PLP
.
868F  E0 81        ..    CPX #&81                          ; Is control byte < &81
8691  90 65        .e    BCC &86F8
8693  E0 89        ..    CPX #&89                          ; Is control byte >= &89
8695  B0 61        .a    BCS &86F8
8697  A0 0C        ..    LDY #&0C
.
8699  B1 A0        ..    LDA (&A0),Y
869B  99 1A 0D     ...   STA &0D1A,Y                       ; Data bytes of the packet
869E  C8           .     INY
869F  C0 10        ..    CPY #&10                          ; 4 bytes of data in the packet
86A1  90 F6        ..    BCC &8699
86A3  A9 20        .     LDA #%00100000
86A5  2C A1 FE     ,..   BIT adlc_status2
86A8  D0 5E        .^    BNE &8708
86AA  A9 FD        ..    LDA #&FD
86AC  48           H     PHA
86AD  A9 06        ..    LDA #&06
86AF  8D 3F 0D     .?.   STA &0D3F
86B2  A9 00        ..    LDA #&00
86B4  8D 41 0D     .A.   STA &0D41
86B7  48           H     PHA
86B8  48           H     PHA
86B9  A0 E7        ..    LDY #&E7
86BB  08           .     PHP
86BC  78           x     SEI
86BD  A9 40        .@    LDA #&40
86BF  8D 1C 0D     ...   STA &0D1C
86C2  2C 38 FE     ,8.   BIT intoff
86C5  A9 04        ..    LDA #00000100
86C7  2C A1 FE     ,..   BIT adlc_status2
86CA  F0 11        ..    BEQ &86DD
86CC  AD A0 FE     ...   LDA adlc_status
86CF  30 0C        0.    BMI &86DD
86D1  A9 67        .g    LDA #%01100111
86D3  8D A1 FE     ...   STA adlc_control23
86D6  A9 10        ..    LDA #%00010000
86D8  2C A0 FE     ,..   BIT adlc_status
86DB  D0 39        .9    BNE &8716
86DD  A9 2C        .,    LDA #&2C
86DF  8D 1C 0D     ...   STA &0D1C
86E2  2C 3C FE     ,<.   BIT inton
86E5  28           (     PLP
86E6  BA           .     TSX
86E7  FE 01 01     ...   INC &0101,X
86EA  D0 CF        ..    BNE &86BB
86EC  FE 02 01     ...   INC &0102,X
86EF  D0 CA        ..    BNE &86BB
86F1  FE 03 01     ...   INC &0103,X
86F4  D0 C5        ..    BNE &86BB
86F6  F0 04        ..    BEQ &86FC
.
86F8  A9 44        .D    LDA #&44
86FA  D0 0E        ..    BNE &870A
86FC  A9 07        ..    LDA #%00000111
86FE  8D A1 FE     ...   STA adlc_control23
8701  68           h     PLA
8702  68           h     PLA
8703  68           h     PLA
8704  A9 40        .@    LDA #&40
8706  D0 02        ..    BNE &870A
.
8708  A9 43        .C    LDA #&43
870A  A0 00        ..    LDY #&00
870C  91 A0        ..    STA (&A0),Y
870E  A9 80        ..    LDA #&80
8710  8D 60 0D     .`.   STA &0D60
8713  68           h     PLA
8714  AA           .     TAX
8715  60           `     RTS
.
8716  8C A1 FE     ...   STY adlc_control23
8719  A2 44        .D    LDX #%01000100
871B  8E A0 FE     ...   STX adlc_control1
871E  A2 B8        ..    LDX #&B8
8720  A0 87        ..    LDY #&87
8722  8E 0C 0D     ...   STX &0D0C
8725  8C 0D 0D     ...   STY &0D0D
8728  38           8     SEC
8729  66 99        f.    ROR &99
872B  A9 2C        .,    LDA #&2C
872D  8D 1C 0D     ...   STA &0D1C
8730  2C 3C FE     ,<.   BIT inton
8733  AD 25 0D     .%.   LDA &0D25
8736  D0 3A        .:    BNE &8772
8738  AC 24 0D     .$.   LDY &0D24
873B  B9 C3 85     ...   LDA &85C3,Y
873E  8D 3E 0D     .>.   STA &0D3E
8741  B9 BB 85     ...   LDA &85BB,Y
8744  8D 3F 0D     .?.   STA &0D3F
8747  A9 87        ..    LDA #&87
8749  48           H     PHA
874A  B9 2F 87     ./.   LDA &872F,Y
874D  48           H     PHA
874E  60           `     RTS
874F  A9 03        ..    LDA #&03
8751  D0 48        .H    BNE &879B
8753  A9 03        ..    LDA #&03
8755  D0 02        ..    BNE &8759
8757  A9 02        ..    LDA #&02
8759  8D 40 0D     .@.   STA &0D40
875C  18           .     CLC
875D  08           .     PHP
875E  A0 0C        ..    LDY #&0C
8760  B9 1E 0D     ...   LDA &0D1E,Y
8763  28           (     PLP
8764  71 A0        q.    ADC (&A0),Y
8766  99 1E 0D     ...   STA &0D1E,Y
8769  C8           .     INY
876A  08           .     PHP
876B  C0 10        ..    CPY #&10
876D  90 F1        ..    BCC &8760
876F  28           (     PLP
8770  D0 2C        .,    BNE &879E
8772  AD 20 0D     . .   LDA &0D20
8775  2D 21 0D     -!.   AND &0D21
8778  C9 FF        ..    CMP #&FF
877A  D0 18        ..    BNE &8794
877C  A9 0E        ..    LDA #&0E
877E  8D 3F 0D     .?.   STA &0D3F
8781  A9 40        .@    LDA #&40
8783  8D 3E 0D     .>.   STA &0D3E
8786  A0 04        ..    LDY #&04
8788  B1 A0        ..    LDA (&A0),Y
878A  99 22 0D     .".   STA &0D22,Y
878D  C8           .     INY
878E  C0 0C        ..    CPY #&0C
8790  90 F6        ..    BCC &8788
8792  B0 15        ..    BCS &87A9
8794  A9 00        ..    LDA #&00
8796  8D 3E 0D     .>.   STA &0D3E
8799  A9 02        ..    LDA #&02
879B  8D 40 0D     .@.   STA &0D40
879E  A5 A0        ..    LDA &A0
87A0  85 A6        ..    STA &A6
87A2  A5 A1        ..    LDA &A1
87A4  85 A7        ..    STA &A7
87A6  20 AF 85      ..   JSR &85AF
87A9  28           (     PLP
87AA  68           h     PLA
87AB  68           h     PLA
87AC  68           h     PLA
87AD  68           h     PLA
87AE  AA           .     TAX
87AF  60           `     RTS
87B0  52 56        RV    EOR (&56)
87B2  98           .     TYA
87B3  98           .     TYA
87B4  98           .     TYA
87B5  A8           .     TAY
87B6  A8           .     TAY
87B7  4E AC 41     N.A   LSR &41AC
87BA  0D 2C A0     .,.   ORA &A02C
87BD  FE 50 22     .P"   INC &2250,X
87C0  B9 20 0D     . .   LDA &0D20,Y
87C3  8D A2 FE     ...   STA adlc_transmitc
87C6  C8           .     INY
87C7  B9 20 0D     . .   LDA &0D20,Y
87CA  C8           .     INY
87CB  8C 41 0D     .A.   STY &0D41
87CE  8D A2 FE     ...   STA adlc_transmitc
87D1  CC 3F 0D     .?.   CPY &0D3F
87D4  B0 1E        ..    BCS &87F4
87D6  2C A0 FE     ,..   BIT adlc_status
87D9  30 E3        0.    BMI &87BE
87DB  4C 14 0D     L..   JMP &0D14
87DE  A9 42        .B    LDA #&42
87E0  D0 07        ..    BNE &87E9
87E2  A9 67        .g    LDA #%01100111
87E4  8D A1 FE     ...   STA adlc_control23
87E7  A9 41        .A    LDA #&41
87E9  AC 22 0D     .".   LDY &0D22
87EC  48           H     PHA
87ED  68           h     PLA
87EE  C8           .     INY
87EF  D0 FB        ..    BNE &87EC
87F1  4C B5 89     L..   JMP &89B5
87F4  A9 3F        .?    LDA #%00111111
87F6  8D A1 FE     ...   STA adlc_control23
87F9  A9 FE        ..    LDA #&FE
87FB  4C 11 0D     L..   JMP &0D11
87FE  A9 82        ..    LDA #%10000010
8800  8D A0 FE     ...   STA adlc_control1
8803  2C 3E 0D     ,>.   BIT &0D3E
8806  50 03        P.    BVC &880B
8808  4C AF 89     L..   JMP &89AF
880B  A9 01        ..    LDA #&01
880D  2C 3E 0D     ,>.   BIT &0D3E
8810  F0 03        ..    BEQ &8815
8812  4C 57 89     LW.   JMP &8957
8815  A9 1C        ..    LDA #&1C
8817  A0 88        ..    LDY #&88
8819  4C 0E 0D     L..   JMP &0D0E
881C  A9 01        ..    LDA #%00000001
881E  2C A1 FE     ,..   BIT adlc_status2
8821  F0 BB        ..    BEQ &87DE
8823  AD A2 FE     ...   LDA adlc_receive
8826  CD 22 0D     .".   CMP &0D22
8829  D0 19        ..    BNE &8844
882B  A9 30        .0    LDA #&30
882D  4C 11 0D     L..   JMP &0D11
8830  2C A1 FE     ,..   BIT adlc_status2
8833  10 0F        ..    BPL &8844
8835  AD A2 FE     ...   LDA adlc_receive
8838  D0 0A        ..    BNE &8844
883A  A9 47        .G    LDA #%01000111
883C  2C A0 FE     ,..   BIT adlc_status
883F  30 06        0.    BMI &8847
8841  4C 11 0D     L..   JMP &0D11
8844  4C B3 89     L..   JMP &89B3
8847  2C A1 FE     ,..   BIT adlc_status2
884A  10 F8        ..    BPL &8844
884C  AD A2 FE     ...   LDA adlc_receive
884F  CD 20 0D     . .   CMP &0D20
8852  D0 F0        ..    BNE &8844
8854  AD A2 FE     ...   LDA adlc_receive
8857  CD 21 0D     .!.   CMP &0D21
885A  D0 E8        ..    BNE &8844
885C  A9 02        ..    LDA #%00000010
885E  2C A1 FE     ,..   BIT adlc_status2
8861  F0 E1        ..    BEQ &8844
8863  A9 A7        ..    LDA #%10100111
8865  8D A1 FE     ...   STA adlc_control23
8868  A9 44        .D    LDA #%01000100
886A  8D A0 FE     ...   STA adlc_control1
886D  A9 57        .W    LDA #&57
886F  A0 89        ..    LDY #&89
8871  8D 43 0D     .C.   STA &0D43
8874  8C 44 0D     .D.   STY &0D44
8877  AD 20 0D     . .   LDA &0D20
887A  2C A0 FE     ,..   BIT adlc_status
887D  50 16        P.    BVC &8895
887F  8D A2 FE     ...   STA adlc_transmitc
8882  AD 21 0D     .!.   LDA &0D21
8885  8D A2 FE     ...   STA adlc_transmitc
8888  A9 8F        ..    LDA #&8F
888A  A0 88        ..    LDY #&88
888C  4C 0E 0D     L..   JMP &0D0E
888F  AD 22 0D     .".   LDA &0D22
8892  2C A0 FE     ,..   BIT adlc_status
8895  50 2C        P,    BVC &88C3
8897  8D A2 FE     ...   STA adlc_transmitc
889A  A9 00        ..    LDA #&00
889C  8D A2 FE     ...   STA adlc_transmitc
889F  A9 02        ..    LDA #&02
88A1  2C 3E 0D     ,>.   BIT &0D3E
88A4  D0 07        ..    BNE &88AD
88A6  A9 BC        ..    LDA #&BC
88A8  A0 88        ..    LDY #&88
88AA  4C 0E 0D     L..   JMP &0D0E
88AD  A9 16        ..    LDA #&16
88AF  A0 89        ..    LDY #&89
88B1  4C 0E 0D     L..   JMP &0D0E
88B4  A4 A3        ..    LDY &A3
88B6  F0 44        .D    BEQ &88FC
88B8  A4 A2        ..    LDY &A2
88BA  F0 04        ..    BEQ &88C0
88BC  A4 A2        ..    LDY &A2
88BE  F0 F4        ..    BEQ &88B4
88C0  2C A0 FE     ,..   BIT adlc_status
88C3  50 54        PT    BVC &8919
88C5  AD 34 FE     .4.   LDA acccon
88C8  48           H     PHA
88C9  A5 97        ..    LDA &97
88CB  8D 34 FE     .4.   STA acccon
88CE  B1 A4        ..    LDA (&A4),Y
88D0  8D A2 FE     ...   STA adlc_transmitc
88D3  C8           .     INY
88D4  D0 06        ..    BNE &88DC
88D6  C6 A3        ..    DEC &A3
88D8  F0 1E        ..    BEQ &88F8
88DA  E6 A5        ..    INC &A5
88DC  B1 A4        ..    LDA (&A4),Y
88DE  8D A2 FE     ...   STA adlc_transmitc
88E1  C8           .     INY
88E2  84 A2        ..    STY &A2
88E4  D0 06        ..    BNE &88EC
88E6  C6 A3        ..    DEC &A3
88E8  F0 0E        ..    BEQ &88F8
88EA  E6 A5        ..    INC &A5
88EC  68           h     PLA
88ED  8D 34 FE     .4.   STA acccon
88F0  2C A0 FE     ,..   BIT adlc_status
88F3  30 CE        0.    BMI &88C3
88F5  4C 14 0D     L..   JMP &0D14
88F8  68           h     PLA
88F9  8D 34 FE     .4.   STA acccon
88FC  A9 3F        .?    LDA #%00111111
88FE  8D A1 FE     ...   STA adlc_control23
8901  AD 3E 0D     .>.   LDA &0D3E
8904  10 07        ..    BPL &890D
8906  A9 F7        ..    LDA #&F7
8908  A0 83        ..    LDY #&83
890A  4C 0E 0D     L..   JMP &0D0E
890D  AD 43 0D     .C.   LDA &0D43
8910  AC 44 0D     .D.   LDY &0D44
8913  4C 0E 0D     L..   JMP &0D0E
8916  2C A0 FE     ,..   BIT adlc_status
8919  50 34        P4    BVC &894F
891B  AD E5 FE     ...   LDA tubedat
891E  8D A2 FE     ...   STA adlc_transmitc
8921  E6 A2        ..    INC &A2
8923  D0 0C        ..    BNE &8931
8925  E6 A3        ..    INC &A3
8927  D0 08        ..    BNE &8931
8929  E6 A4        ..    INC &A4
892B  D0 04        ..    BNE &8931
892D  E6 A5        ..    INC &A5
892F  F0 CB        ..    BEQ &88FC
8931  AD E5 FE     ...   LDA tubedat
8934  8D A2 FE     ...   STA adlc_transmitc
8937  E6 A2        ..    INC &A2
8939  D0 0C        ..    BNE &8947
893B  E6 A3        ..    INC &A3
893D  D0 08        ..    BNE &8947
893F  E6 A4        ..    INC &A4
8941  D0 04        ..    BNE &8947
8943  E6 A5        ..    INC &A5
8945  F0 B5        ..    BEQ &88FC
8947  2C A0 FE     ,..   BIT adlc_status
894A  30 CD        0.    BMI &8919
894C  4C 14 0D     L..   JMP &0D14
894F  AD 3E 0D     .>.   LDA &0D3E
8952  10 5F        ._    BPL &89B3
8954  4C F7 83     L..   JMP &83F7
8957  A9 82        ..    LDA #%10000010
8959  8D A0 FE     ...   STA adlc_control1
895C  A9 63        .c    LDA #&63
895E  A0 89        ..    LDY #&89
8960  4C 0E 0D     L..   JMP &0D0E
8963  A9 01        ..    LDA #%00000001
8965  2C A1 FE     ,..   BIT adlc_status2
8968  F0 49        .I    BEQ &89B3
896A  AD A2 FE     ...   LDA adlc_receive
896D  CD 22 0D     .".   CMP &0D22
8970  D0 41        .A    BNE &89B3
8972  A9 77        .w    LDA #&77
8974  4C 11 0D     L..   JMP &0D11
8977  2C A1 FE     ,..   BIT adlc_status2
897A  10 37        .7    BPL &89B3
897C  AD A2 FE     ...   LDA adlc_receive
897F  D0 32        .2    BNE &89B3
8981  A9 8B        ..    LDA #%10001011
8983  2C A0 FE     ,..   BIT adlc_status
8986  30 03        0.    BMI &898B
8988  4C 11 0D     L..   JMP &0D11
898B  2C A1 FE     ,..   BIT adlc_status2
898E  10 23        .#    BPL &89B3
8990  AD A2 FE     ...   LDA adlc_receive
8993  CD 20 0D     . .   CMP &0D20
8996  D0 1B        ..    BNE &89B3
8998  AD A2 FE     ...   LDA adlc_receive
899B  CD 21 0D     .!.   CMP &0D21
899E  D0 13        ..    BNE &89B3
89A0  AD 3E 0D     .>.   LDA &0D3E
89A3  10 03        ..    BPL &89A8
89A5  4C FA 81     L..   JMP &81FA
89A8  A9 02        ..    LDA #%00000010
89AA  2C A1 FE     ,..   BIT adlc_status2
89AD  F0 04        ..    BEQ &89B3
89AF  A9 00        ..    LDA #&00
89B1  F0 02        ..    BEQ &89B5
89B3  A9 41        .A    LDA #&41
89B5  A0 00        ..    LDY #&00
89B7  91 A0        ..    STA (&A0),Y
89B9  A9 80        ..    LDA #&80
89BB  8D 60 0D     .`.   STA &0D60
89BE  4C F7 83     L..   JMP &83F7

; -----------------------------------------------------------------------------
; Initialize the 68B54 ADLC
; -----------------------------------------------------------------------------
.init_adlc
89C1  A9 C1        ..    LDA #%11000001
89C3  8D A0 FE     ...   STA adlc_control1
89C6  A9 1E        ..    LDA #&1E
89C8  8D A3 FE     ...   STA adlc_transmitt
89CB  A9 00        ..    LDA #%00000000
89CD  8D A1 FE     ...   STA adlc_control23
89D0  A9 82        ..    LDA #%10000010
89D2  8D A0 FE     ...   STA adlc_control1
89D5  A9 67        .g    LDA #%01100111
89D7  8D A1 FE     ...   STA adlc_control23
89DA  60           `     RTS

89DB  2C 62 0D     ,b.   BIT &0D62
89DE  10 20        .     BPL &8A00
89E0  AD 0C 0D     ...   LDA &0D0C
89E3  C9 9D        ..    CMP #&9D
89E5  D0 F9        ..    BNE &89E0
89E7  AD 0D 0D     ...   LDA &0D0D
89EA  C9 80        ..    CMP #&80
89EC  D0 F2        ..    BNE &89E0
89EE  A9 40        .@    LDA #&40
89F0  8D 1C 0D     ...   STA &0D1C
89F3  2C 38 FE     ,8.   BIT intoff
89F6  A9 00        ..    LDA #&00
89F8  8D 60 0D     .`.   STA &0D60
89FB  8D 62 0D     .b.   STA &0D62
89FE  A0 05        ..    LDY #&05
8A00  4C D0 89     L..   JMP &89D0
8A03  2C 38 FE     ,8.   BIT intoff
8A06  48           H     PHA
8A07  98           .     TYA
8A08  48           H     PHA
8A09  A9 00        ..    LDA #&00
8A0B  8D 30 FE     .0.   STA romsel
8A0E  4C 9D 80     L..   JMP &809D
8A11  8C 0D 0D     ...   STY &0D0D
8A14  8D 0C 0D     ...   STA &0D0C
8A17  A5 F4        ..    LDA &F4
8A19  8D 30 FE     .0.   STA romsel
8A1C  68           h     PLA
8A1D  A8           .     TAY
8A1E  68           h     PLA
8A1F  2C 3C FE     ,<.   BIT inton
8A22  40           @     RTI
8A23  05 0A        ..    ORA &0A
.jumptable_lsb
8A25  0C           .     DB  &0C                           ; &
8A26  89           .     DB  &89                           ; & --> &00: 
8A27  2C           ,     DB  &2C                           ; & --> &01: 
8A28  29 ED        ).    DB  &29                           ; & --> &02: 
8A29  ED           .     DB  &ED                           ; & --> &03: 
8A2A  68           h     DB  &68                           ; & --> &04: 
8A2B  29           )     DB  &29                           ; & --> &05: 
8A2C  89           .     DB  &89                           ; & --> &06: 
8A2D  F1           .     DB  &F1                           ; & --> &07: Unrecognised OSBYTE cal
8A2E  56           V     DB  &56                           ; &A857 --> &08: Unrecognised OSWORD call
8A2F  77           w     DB  &77                           ; &8C78 --> &09: *HELP instruction expansion
8a30  89           .     DB  &89
8A31  6D DA 6C     m.l   ADC &6CDA
8A34  91 02        ..    STA (&02),Y
8A36  17 09        ..    RMB1 &09
8A38  8A           .     TXA
8A39  8C A3 51     ..Q   STY &51A3
8A3C  A0 30        .0    LDY #&30
8A3E  AE 4F 50     .OP   LDX &504F
8A41  7D 9E D0     }..   ADC &D09E,X
8A44  32 06        2.    AND (&06)
8A46  44            D     ...
8A47  06 4C        .L    ASL &4C
8A49  79 F8 89     y..   ADC &89F8,Y
8A4C  32 8B        2.    AND (&8B)
8A4E  F1 0F        ..    SBC (&0F),Y
8A50  EA           .     NOP
8A51  FA           .     PLX
8A52  4D 06 53     M.S   EOR &5306
8A55  14 1A        ..    TRB &1A
8A57  2A           *     ROL A
.jumptable_msb
8A58  11 8E        ..    ORA (&8E),Y
8A5A  8D 8F 8C     ...   STA &8C8F
8A5D  8C 80 8E     ...   STY &8E80
8A60  8E A8 8C     ...   STX &8CA8
8A63  8E 80 89     ...   STX &8980
8A66  8B            .     ...
8A67  96 8F        ..    STX &8F,Y
8A69  8F 8F        ..    BBS0 &89FA
8A6B  8E 8E 8E     ...   STX &8E8E
8A6E  8F 95        ..    BBS0 &8A05
8A70  96 98        ..    STX &98,Y
8A72  98           .     TYA
8A73  B0 98        ..    BCS &8A0D
8A75  98           .     TYA
8A76  A0 A1        ..    LDY #&A1
8A78  A5 A4        ..    LDA &A4
8A7A  A5 B1        ..    LDA &B1
8A7C  90 93        ..    BCC &8A11
8A7E  8E B1 B3     ...   STX &B3B1
8A81  A4 B3        ..    LDY &B3
8A83  A6 A6        ..    LDX &A6
8A85  A6 A5        ..    LDX &A5
8A87  A6 A4        ..    LDX &A4
8A89  A4 A4        ..    LDY &A4
8A8B  8B            .     ...

; -----------------------------------------------------------------------------
; Service entry
; -----------------------------------------------------------------------------
.service
8A8C  48           H     PHA
8A8D  C9 0F        ..    CMP #&0F                 ; Service call &0F: vectors claimed
8A8F  D0 36        .6    BNE &8AC7
8A91  5A           Z     PHY
8A92  A9 00        ..    LDA #&00
8A94  A2 01        ..    LDX #&01
8A96  20 F4 FF      ..   JSR osbyte               ; OSBYTE &00: Identify Operating System version
8A99  BD 20 8A     . .   LDA &8A20,X
8A9C  8D 71 0D     .q.   STA &0D71
8A9F  E0 03        ..    CPX #&03
8AA1  B0 21        .!    BCS &8AC4
8AA3  8A           .     TXA
8AA4  08           .     PHP
8AA5  20 6C 92      l.   JSR &926C
8AA8  0D 42 61     .Ba   DB  &0D, "Bad ROM "
8AAB  64 20        d R
8AAE  52 4F        OM 
8AB1  A5 F4        ..    LDA &F4
8AB3  20 5C B3      \.   JSR &B35C
8AB6  20 04 92      ..   JSR &9204
8AB9  A6 F4        ..    LDX &F4
8ABB  28           (     PLP
8ABC  F0 01        ..    BEQ &8ABF
8ABE  E8           .     INX
8ABF  A9 00        ..    LDA #&00
8AC1  9D A0 02     ...   STA &02A0,X
8AC4  A6 F4        ..    LDX &F4
8AC6  7A           z     PLY
8AC7  68           h     PLA
8AC8  48           H     PHA
8AC9  BD F0 0D     ...   LDA &0DF0,X
8ACC  0A           .     ASL A
8ACD  68           h     PLA
8ACE  90 01        ..    BCC &8AD1
8AD0  60           `     RTS
8AD1  AA           .     TAX
8AD2  A5 A9        ..    LDA &A9
8AD4  48           H     PHA
8AD5  8A           .     TXA
8AD6  85 A9        ..    STA &A9
8AD8  C9 0D        ..    CMP #&0D
8ADA  90 1C        ..    BCC &8AF8
8ADC  E9 05        ..    SBC #&05
8ADE  C9 0D        ..    CMP #&0D
8AE0  F0 16        ..    BEQ &8AF8
8AE2  90 12        ..    BCC &8AF6
8AE4  E9 05        ..    SBC #&05
8AE6  C9 0E        ..    CMP #&0E
8AE8  F0 0E        ..    BEQ &8AF8
8AEA  90 0A        ..    BCC &8AF6
8AEC  E9 08        ..    SBC #&08
8AEE  C9 0F        ..    CMP #&0F
8AF0  90 04        ..    BCC &8AF6
8AF2  C9 18        ..    CMP #&18
8AF4  90 02        ..    BCC &8AF8
.
8AF6  A9 00        ..    LDA #&00
.
8AF8  AA           .     TAX
8AF9  F0 0E        ..    BEQ &8B09
8AFB  A5 A8        ..    LDA &A8
8AFD  48           H     PHA
8AFE  84 A8        ..    STY &A8
8B00  98           .     TYA
8B01  A0 00        ..    LDY #&00
8B03  20 7B 8E      {.   JSR &8E7B
8B06  68           h     PLA
8B07  85 A8        ..    STA &A8
.
8B09  A6 A9        ..    LDX &A9
8B0B  68           h     PLA
8B0C  85 A9        ..    STA &A9
8B0E  8A           .     TXA
8B0F  A6 F4        ..    LDX &F4
8B11  60           `     RTS

8B12  A0 00        ..    LDY #&00
8B14  B1 9C        ..    LDA (&9C),Y
8B16  F0 21        .!    BEQ &8B39
8B18  A9 00        ..    LDA #&00
8B1A  AA           .     TAX
8B1B  91 9C        ..    STA (&9C),Y
8B1D  A8           .     TAY
8B1E  A9 C9        ..    LDA #&C9
8B20  20 F4 FF      ..   JSR osbyte
8B23  A9 0A        ..    LDA #&0A
8B25  20 62 AD      b.   JSR &AD62
8B28  86 9E        ..    STX &9E
8B2A  A9 CE        ..    LDA #&CE
8B2C  A6 9E        ..    LDX &9E
8B2E  A0 7F        ..    LDY #&7F
8B30  20 F4 FF      ..   JSR osbyte
8B33  69 01        i.    ADC #&01
8B35  C9 D0        ..    CMP #&D0
8B37  F0 F3        ..    BEQ &8B2C
8B39  A9 00        ..    LDA #&00
8B3B  85 A9        ..    STA &A9
8B3D  85 9E        ..    STA &9E
8B3F  60           `     RTS
8B40  48           H     PHA
8B41  A5 F2        ..    LDA &F2
8B43  85 BE        ..    STA &BE
8B45  A5 F3        ..    LDA &F3
8B47  85 BF        ..    STA &BF
8B49  68           h     PLA
8B4A  60           `     RTS
8B4B  20 D4 8C      ..   JSR &8CD4
8B4E  85 B1        ..    STA &B1
8B50  A9 00        ..    LDA #&00
8B52  85 B0        ..    STA &B0
8B54  18           .     CLC
8B55  A0 76        .v    LDY #&76
8B57  71 B0        q.    ADC (&B0),Y
8B59  88           .     DEY
8B5A  10 FB        ..    BPL &8B57
8B5C  A0 77        .w    LDY #&77
8B5E  51 B0        Q.    EOR (&B0),Y
8B60  60           `     RTS

; -----------------------------------------------------------------------------
; *NET handler
; -----------------------------------------------------------------------------
.star_net
8B61  A9 20        .     LDA #%00100000
8B63  2C A1 FE     ,..   BIT adlc_status2
8B66  F0 12        ..    BEQ &8B7A
8B68  A9 03        ..    LDA #&03
8B6A  4C 89 99     L..   JMP &9989
8B6D  C0 05        ..    CPY #&05
8B6F  D0 D9        ..    BNE &8B4A
8B71  A9 00        ..    LDA #&00
8B73  85 A9        ..    STA &A9
.
8B75  2C 6C 0D     ,l.   BIT &0D6C
8B78  30 D0        0.    BMI &8B4A
8B7A  20 4B 8B      K.   JSR &8B4B
8B7D  F0 03        ..    BEQ &8B82
8B7F  4C BE 90     L..   JMP &90BE
8B82  A5 F1        ..    LDA &F1
8B84  48           H     PHA
8B85  A5 F0        ..    LDA &F0
8B87  48           H     PHA
8B88  20 21 8D      !.   JSR &8D21
8B8B  A0 09        ..    LDY #&09
8B8D  B1 9C        ..    LDA (&9C),Y
8B8F  99 FE BF     ...   STA &BFFE,Y
8B92  88           .     DEY
8B93  C0 01        ..    CPY #&01
8B95  D0 F6        ..    BNE &8B8D
8B97  2E 6C 0D     .l.   ROL &0D6C
8B9A  18           .     CLC
8B9B  6E 6C 0D     nl.   ROR &0D6C
8B9E  A0 0D        ..    LDY #&0D
8BA0  B9 C1 8E     ...   LDA &8EC1,Y
8BA3  99 12 02     ...   STA &0212,Y
8BA6  88           .     DEY
8BA7  10 F7        ..    BPL &8BA0
8BA9  20 45 90      E.   JSR &9045
8BAC  A0 1B        ..    LDY #&1B
8BAE  A2 07        ..    LDX #&07
8BB0  20 58 90      X.   JSR &9058
8BB3  A9 00        ..    LDA #&00
8BB5  8D 07 C0     ...   STA &C007
8BB8  8D C9 C2     ...   STA &C2C9
8BBB  8D 71 C2     .q.   STA &C271
8BBE  20 52 BD      R.   JSR &BD52
8BC1  8D 08 C0     ...   STA &C008
8BC4  20 E4 8C      ..   JSR &8CE4
8BC7  20 0E B8      ..   JSR &B80E
8BCA  A0 77        .w    LDY #&77
8BCC  B1 CC        ..    LDA (&CC),Y
8BCE  99 00 C2     ...   STA &C200,Y
8BD1  88           .     DEY
8BD2  10 F8        ..    BPL &8BCC
8BD4  A9 80        ..    LDA #&80
8BD6  0C 6C 0D     .l.   TSB &0D6C
8BD9  20 26 8D      &.   JSR &8D26
8BDC  68           h     PLA
8BDD  85 F0        ..    STA &F0
8BDF  68           h     PLA
8BE0  85 F1        ..    STA &F1
8BE2  60           `     RTS
8BE3  A2 35        .5    LDX #&35
8BE5  20 EE 8B      ..   JSR &8BEE
8BE8  A2 00        ..    LDX #&00
8BEA  F0 02        ..    BEQ &8BEE
8BEC  A2 35        .5    LDX #&35
8BEE  50 0A        P.    BVC &8BFA
8BF0  DA           .     PHX
8BF1  5A           Z     PHY
8BF2  20 BA 8C      ..   JSR &8CBA
8BF5  7A           z     PLY
8BF6  FA           .     PLX
8BF7  B8           .     CLV
8BF8  50 03        P.    BVC &8BFD
8BFA  20 E7 FF      ..   JSR osnewl
8BFD  5A           Z     PHY
8BFE  08           .     PHP
8BFF  BD 82 A7     ...   LDA &A782,X
8C02  10 03        ..    BPL &8C07
8C04  4C 4C 8C     LL.   JMP &8C4C
8C07  20 6C 92      l.   JSR &926C
8C0A  20 20 A0       .   JSR &A020
8C0D  09 BD        ..    ORA #&BD
8C0F  82            .     ...
8C10  A7 20        .     SMB2 &20
8C12  E3            .     ...
8C13  FF E8        ..    BBS7 &8BFD
8C15  88           .     DEY
8C16  BD 82 A7     ...   LDA &A782,X
8C19  10 F6        ..    BPL &8C11
8C1B  A9 20        .     LDA #ASC" "
8C1D  20 E3 FF      ..   JSR osasci
8C20  88           .     DEY
8C21  10 F8        ..    BPL &8C1B
8C23  BD 82 A7     ...   LDA &A782,X
8C26  29 1F        ).    AND #&1F
8C28  A8           .     TAY
8C29  B9 F7 91     ...   LDA &91F7,Y
8C2C  A8           .     TAY
8C2D  C8           .     INY
8C2E  B9 01 91     ...   LDA &9101,Y
8C31  F0 10        ..    BEQ &8C43
8C33  C9 0D        ..    CMP #&0D
8C35  D0 06        ..    BNE &8C3D
8C37  20 50 8C      P.   JSR &8C50
8C3A  4C 2D 8C     L-.   JMP &8C2D
8C3D  20 E3 FF      ..   JSR osasci
8C40  4C 2D 8C     L-.   JMP &8C2D
8C43  20 E7 FF      ..   JSR osnewl
8C46  E8           .     INX
8C47  E8           .     INX
8C48  E8           .     INX
8C49  4C FF 8B     L..   JMP &8BFF
8C4C  28           (     PLP
8C4D  68           h     PLA
8C4E  A8           .     TAY
8C4F  60           `     RTS
8C50  AD 55 03     .U.   LDA &0355
8C53  F0 13        ..    BEQ &8C68
8C55  C9 03        ..    CMP #&03
8C57  F0 0F        ..    BEQ &8C68
8C59  5A           Z     PHY
8C5A  20 E7 FF      ..   JSR osnewl
8C5D  A0 0B        ..    LDY #&0B
8C5F  A9 20        .     LDA #ASC" "
8C61  20 E3 FF      ..   JSR osasci
8C64  88           .     DEY
8C65  10 FA        ..    BPL &8C61
8C67  7A           z     PLY
8C68  60           `     RTS
8C69  A2 00        ..    LDX #&00
8C6B  A4 A8        ..    LDY &A8
8C6D  20 40 8B      @.   JSR &8B40
8C70  20 71 A4      q.   JSR &A471
8C73  B0 16        ..    BCS &8C8B
8C75  4C 56 A4     LV.   JMP &A456

; -----------------------------------------------------------------------------
; &09: *HELP handler
; -----------------------------------------------------------------------------
.
8C78  20 48 8D      H.   JSR &8D48
8C7B  A4 A8        ..    LDY &A8
8C7D  B1 F2        ..    LDA (&F2),Y
8C7F  C9 0D        ..    CMP #&0D
8C81  D0 0B        ..    BNE &8C8E
8C83  20 BA 8C      ..   JSR &8CBA
8C86  A2 91        ..    LDX #&91
8C88  20 FD 8B      ..   JSR &8BFD
8C8B  A4 A8        ..    LDY &A8
8C8D  60           `     RTS
8C8E  2C 69 97     ,i.   BIT &9769
8C91  C9 2E        ..    CMP #&2E
8C93  D0 03        ..    BNE &8C98
8C95  4C E3 8B     L..   JMP &8BE3
8C98  20 40 8B      @.   JSR &8B40
8C9B  08           .     PHP
8C9C  A2 96        ..    LDX #&96
8C9E  20 71 A4      q.   JSR &A471
8CA1  B0 10        ..    BCS &8CB3
8CA3  28           (     PLP
8CA4  A9 8C        ..    LDA #&8C
8CA6  48           H     PHA
8CA7  A9 9A        ..    LDA #&9A
8CA9  48           H     PHA
8CAA  BD 84 A7     ...   LDA &A784,X
8CAD  48           H     PHA
8CAE  BD 83 A7     ...   LDA &A783,X
8CB1  48           H     PHA
8CB2  60           `     RTS
8CB3  28           (     PLP
8CB4  C9 0D        ..    CMP #&0D
8CB6  D0 E3        ..    BNE &8C9B
8CB8  F0 D1        ..    BEQ &8C8B
8CBA  20 6C 92      l.   JSR &926C
8CBD  0D 41 64     .Ad   ORA &6441
8CC0  76 61        va    ROR &61,X
8CC2  6E 63 65     nce   ROR &6563
8CC5  64 20        d     STZ &20
8CC7  4E 46 53     NFS   LSR &5346
8CCA  20 34 2E      4.   JSR &2E34
8CCD  32 35        25    AND (&35)
8CCF  0D EA 4C     ..L   ORA &4CEA
8CD2  D0 90        ..    BNE &8C64
8CD4  A4 F4        ..    LDY &F4
8CD6  B9 F0 0D     ...   LDA &0DF0,Y
8CD9  A8           .     TAY
8CDA  2A           *     ROL A
8CDB  08           .     PHP
8CDC  6A           j     ROR A
8CDD  28           (     PLP
8CDE  10 02        ..    BPL &8CE2
8CE0  09 80        ..    ORA #&80
8CE2  A8           .     TAY
8CE3  60           `     RTS
8CE4  20 D4 8C      ..   JSR &8CD4
8CE7  84 CD        ..    STY &CD
8CE9  A9 00        ..    LDA #&00
8CEB  85 CC        ..    STA &CC
8CED  60           `     RTS
.
8CEE  A9 7A        .z    LDA #&7A
8CF0  20 F4 FF      ..   JSR osbyte
8CF3  8A           .     TXA
8CF4  30 0E        0.    BMI &8D04
8CF6  C9 19        ..    CMP #&19
8CF8  F0 04        ..    BEQ &8CFE
8CFA  49 55        IU    EOR #&55
8CFC  D0 8D        ..    BNE &8C8B
8CFE  A8           .     TAY
8CFF  A9 78        .x    LDA #&78
8D01  20 F4 FF      ..   JSR osbyte
8D04  20 7A 8B      z.   JSR &8B7A
8D07  20 D0 90      ..   JSR &90D0
8D0A  20 E7 FF      ..   JSR osnewl
8D0D  A9 00        ..    LDA #&00
8D0F  85 A9        ..    STA &A9
8D11  A6 A8        ..    LDX &A8
8D13  D0 D8        ..    BNE &8CED
8D15  A9 04        ..    LDA #&04
8D17  0C 71 C2     .q.   TSB &C271
8D1A  A2 40        .@    LDX #&40
8D1C  A0 8D        ..    LDY #&8D
8D1E  4C F7 FF     L..   JMP oscli
8D21  A9 06        ..    LDA #&06
8D23  6C 1E 02     l..   JMP (fscv)
8D26  A2 0F        ..    LDX #&0F
8D28  A9 8F        ..    LDA #&8F
8D2A  4C F4 FF     L..   JMP osbyte
8D2D  5A           Z     PHY
8D2E  A2 11        ..    LDX #&11
8D30  20 B4 8E      ..   JSR &8EB4
8D33  98           .     TYA
8D34  7A           z     PLY
8D35  29 01        ).    AND #&01
8D37  F0 06        ..    BEQ &8D3F
8D39  C0 10        ..    CPY #&10
8D3B  B0 02        ..    BCS &8D3F
8D3D  A0 10        ..    LDY #&10
8D3F  60           `     RTS
8D40  69 20        i     ADC #&20
8D42  2E 42 6F     .Bo   ROL &6F42
8D45  6F 74        ot    BBR6 &8DBB
8D47  0D A4 A8     ...   ORA &A8A4

; -----------------------------------------------------------------------------
; * HELP authors easteregg
; -----------------------------------------------------------------------------
.
8D48  A4 A8        ..    LDY &A8
8D4A  A2 05        ..    LDX #&05
8D4C  B1 F2        ..    LDA (&F2),Y
8D4E  DD 5E 8D     .^.   CMP &8D5E,X
8D51  D0 04        ..    BNE &8D57
8D53  C8           .     INY
8D54  E8           .     INX
8D55  D0 F5        ..    BNE &8D4C
8D57  E0 0C        ..    CPX #&0C
8D59  D0 45        .E    BNE &8DA0
8D5B  20 6C 92      l.   JSR &926C
8D5E  0D 54 68     .Th   ORA &6854
8D61  65 20        e     ADC &20
8D63  61 75        au    ADC (&75,X)
8D65  74 68        th    STZ &68,X
8D67  6F 72        or    BBR6 &8DDB
8D69  73            s     ...
8D6A  20 6F 66      of   JSR &666F
8D6D  20 41 4E      AN   JSR &4E41
8D70  46 53        FS    LSR &53
8D72  20 61 72      ar   JSR &7261
8D75  65 3B        e;    ADC &3B
8D77  0D 42 20     .B    ORA &2042
8D7A  43            C     ...
8D7B  6F 63        oc    BBR6 &8DE0
8D7D  6B            k     ...
8D7E  62            b     ...
8D7F  75 72        ur    ADC &72,X
8D81  6E 0D 4A     n.J   ROR &4A0D
8D84  20 44 75      Du   JSR &7544
8D87  6E 6E 0D     nn.   ROR &0D6E
8D8A  42            B     ...
8D8B  20 52 6F      Ro   JSR &6F52
8D8E  62            b     ...
8D8F  65 72        er    ADC &72
8D91  74 73        ts    STZ &73,X
8D93  6F 6E        on    BBR6 &8E03
8D95  0D 4A 20     .J    ORA &204A
8D98  57 69        Wi    RMB5 &69
8D9A  6C 6C 73     lls   JMP (&736C)
8D9D  0D 0D EA     ...   ORA &EA0D
.
8DA0  60           `     RTS

; -----------------------------------------------------------------------------
; *I AM handler
; -----------------------------------------------------------------------------
.i_am
8DA1  5A           Z     PHY
8DA2  A5 BD        ..    LDA &BD
8DA4  A6 BB        ..    LDX &BB
8DA6  A4 BC        ..    LDY &BC
8DA8  48           H     PHA
8DA9  DA           .     PHX
8DAA  5A           Z     PHY
8DAB  A9 77        .w    LDA #&77
8DAD  8D 07 C0     ...   STA &C007
8DB0  20 F4 FF      ..   JSR osbyte                        ; Close any *SPOOL or *EXEC files
8DB3  A0 00        ..    LDY #&00
8DB5  84 B4        ..    STY &B4
8DB7  20 6A BB      j.   JSR &BB6A
8DBA  9C 07 C0     ...   STZ &C007
8DBD  7A           z     PLY
8DBE  FA           .     PLX
8DBF  68           h     PLA
8DC0  20 DE 93      ..   JSR &93DE
8DC3  7A           z     PLY
8DC4  B1 BB        ..    LDA (&BB),Y
8DC6  20 A1 93      ..   JSR &93A1
8DC9  90 24        .$    BCC &8DEF
8DCB  20 BD 92      ..   JSR &92BD
8DCE  B0 0A        ..    BCS &8DDA
8DD0  8D 01 C0     ...   STA &C001
8DD3  20 3B 8E      ;.   JSR &8E3B
8DD6  C8           .     INY
8DD7  20 BD 92      ..   JSR &92BD
8DDA  F0 13        ..    BEQ &8DEF
8DDC  8D 00 C0     ...   STA &C000
8DDF  A2 FF        ..    LDX #&FF
8DE1  E8           .     INX
8DE2  BD DF A7     ...   LDA &A7DF,X
8DE5  9D 05 C1     ...   STA &C105,X
8DE8  10 F7        ..    BPL &8DE1
8DEA  20 D8 B2      ..   JSR &B2D8
8DED  F0 03        ..    BEQ &8DF2
8DEF  20 D4 B2      ..   JSR &B2D4
8DF2  A0 FF        ..    LDY #&FF
8DF4  C8           .     INY
8DF5  B9 05 C1     ...   LDA &C105,Y
8DF8  C9 0D        ..    CMP #&0D
8DFA  F0 31        .1    BEQ &8E2D
8DFC  C9 3A        .:    CMP #&3A
8DFE  D0 F4        ..    BNE &8DF4
8E00  20 0C 92      ..   JSR &920C
8E03  84 B4        ..    STY &B4
8E05  A9 FF        ..    LDA #&FF
8E07  85 98        ..    STA &98
8E09  20 8F 98      ..   JSR &988F
8E0C  20 E0 FF      ..   JSR osrdch
8E0F  C9 15        ..    CMP #&15
8E11  D0 0B        ..    BNE &8E1E
8E13  A4 B4        ..    LDY &B4
8E15  D0 EE        ..    BNE &8E05
8E17  C4 B4        ..    CPY &B4
8E19  F0 EA        ..    BEQ &8E05
8E1B  88           .     DEY
8E1C  D0 E7        ..    BNE &8E05
8E1E  C9 7F        ..    CMP #&7F
8E20  F0 F5        ..    BEQ &8E17
8E22  99 05 C1     ...   STA &C105,Y
8E25  C8           .     INY
8E26  C9 0D        ..    CMP #&0D
8E28  D0 DB        ..    BNE &8E05
8E2A  20 04 92      ..   JSR &9204
8E2D  98           .     TYA
8E2E  48           H     PHA
8E2F  20 4B 97      K.   JSR &974B
8E32  20 81 9B      ..   JSR &9B81
8E35  FA           .     PLX
8E36  E8           .     INX
8E37  A0 00        ..    LDY #&00
8E39  F0 1B        ..    BEQ &8E56
8E3B  20 0B AC      ..   JSR &AC0B
8E3E  4D 01 C0     M..   EOR &C001
8E41  D0 03        ..    BNE &8E46
8E43  8D 01 C0     ...   STA &C001
8E46  60           `     RTS
8E47  A0 00        ..    LDY #&00
8E49  B1 BE        ..    LDA (&BE),Y
8E4B  C9 26        .&    CMP #&26
8E4D  D0 03        ..    BNE &8E52
8E4F  4C 07 A5     L..   JMP &A507
8E52  20 D4 B2      ..   JSR &B2D4
8E55  A8           .     TAY
8E56  20 8A 97      ..   JSR &978A
8E59  AE 03 C1     ...   LDX &C103
8E5C  F0 2C        .,    BEQ &8E8A
8E5E  AD 05 C1     ...   LDA &C105
8E61  A0 25        .%    LDY #&25
8E63  D0 16        ..    BNE &8E7B
8E65  20 DE 93      ..   JSR &93DE
8E68  C9 0C        ..    CMP #&0C
8E6A  B0 1E        ..    BCS &8E8A
8E6C  AA           .     TAX
8E6D  20 04 B3      ..   JSR &B304
8E70  98           .     TYA
8E71  A0 1D        ..    LDY #&1D
8E73  D0 06        ..    BNE &8E7B
8E75  E0 05        ..    CPX #&05
8E77  B0 11        ..    BCS &8E8A
8E79  A0 18        ..    LDY #&18
8E7B  E8           .     INX
8E7C  88           .     DEY
8E7D  10 FC        ..    BPL &8E7B
8E7F  A8           .     TAY
8E80  BD 58 8A     .X.   LDA &8A58,X
8E83  48           H     PHA
8E84  BD 25 8A     .%.   LDA &8A25,X
8E87  48           H     PHA
8E88  A6 BB        ..    LDX &BB
8E8A  60           `     RTS
8E8B  88           .     DEY
8E8C  60           `     RTS
8E8D  A2 0A        ..    LDX #&0A
8E8F  BD 99 8E     ...   LDA &8E99,X
8E92  91 F2        ..    STA (&F2),Y
8E94  C8           .     INY
8E95  CA           .     DEX
8E96  10 F7        ..    BPL &8E8F
8E98  60           `     RTS
8E99  05 2F        ./    ORA &2F
8E9B  20 20 20           JSR &2020
8E9E  20 20 20           JSR &2020
8EA1  54            T     ...
8EA2  45 4E        EN    EOR &4E
8EA4  2C 6C 0D     ,l.   BIT &0D6C
8EA7  50 EF        P.    BVC &8E98
8EA9  20 75 8B      u.   JSR &8B75
8EAC  A9 00        ..    LDA #&00
8EAE  A8           .     TAY
8EAF  4C 57 A0     LW.   JMP &A057
8EB2  A2 00        ..    LDX #&00
8EB4  A9 A1        ..    LDA #&A1
8EB6  4C F4 FF     L..   JMP osbyte
8EB9  50 52        PR    BVC &8F0D
8EBB  49 4E        IN    EOR #&4E
8EBD  54            T     ...
8EBE  20 01 00      ..   JSR &0001
8EC1  1B            .     ...
8EC2  FF 1E        ..    BBS7 &8EE2
8EC4  FF 21        .!    BBS7 &8EE7
8EC6  FF 24        .$    BBS7 &8EEC
8EC8  FF 27        .'    BBS7 &8EF1
8ECA  FF 2A        .*    BBS7 &8EF6
8ECC  FF 2D        .-    BBS7 &8EFB
8ECE  FF 22        ."    BBS7 &8EF2
8ED0  9C 4A AB     .J.   STZ &AB4A
8ED3  9E 44 9A     .D.   STZ &9A44,X
8ED6  BB            .     ...
8ED7  57 19        W.    RMB5 &19
8ED9  BC 42 74     .Bt   LDY &7442,X
8EDC  A1 41        .A    LDA (&41,X)
8EDE  57 A0        W.    RMB5 &A0
8EE0  52 65        Re    EOR (&65)
8EE2  8E A2 00     ...   STX &00A2
8EE5  A0 FF        ..    LDY #&FF
8EE7  4C F4 FF     L..   JMP osbyte
8EEA  1E AD A2     ...   ASL &A2AD,Y
8EED  00           .     BRK
8EEE  A0 00        ..    LDY #&00
8EF0  F0 F5        ..    BEQ &8EE7
8EF2  A5 EF        ..    LDA &EF
8EF4  E9 31        .1    SBC #&31
8EF6  C9 04        ..    CMP #&04
8EF8  B0 0F        ..    BCS &8F09
8EFA  AA           .     TAX
8EFB  64 A9        d.    STZ &A9
8EFD  98           .     TYA
8EFE  A0 2F        ./    LDY #&2F
8F00  4C 7B 8E     L{.   JMP &8E7B
8F03  C0 C8        ..    CPY #&C8
8F05  B0 02        ..    BCS &8F09
8F07  A0 C8        ..    LDY #&C8
8F09  60           `     RTS
8F0A  98           .     TYA
8F0B  48           H     PHA
8F0C  C9 D3        ..    CMP #&D3
8F0E  90 02        ..    BCC &8F12
8F10  A9 D3        ..    LDA #&D3
8F12  A0 0B        ..    LDY #&0B
8F14  91 9C        ..    STA (&9C),Y
8F16  7A           z     PLY
8F17  60           `     RTS
8F18  98           .     TYA
8F19  A4 F4        ..    LDY &F4
8F1B  48           H     PHA
8F1C  29 7F        ).    AND #&7F
8F1E  99 F0 0D     ...   STA &0DF0,Y
8F21  AC 2B FE     .+.   LDY fdc_data
8F24  AC 28 FE     .(.   LDY fdc_status
8F27  7A           z     PLY
8F28  C8           .     INY
8F29  60           `     RTS
8F2A  5A           Z     PHY
8F2B  A2 11        ..    LDX #&11
8F2D  20 B4 8E      ..   JSR &8EB4
8F30  98           .     TYA
8F31  29 04        ).    AND #&04
8F33  D0 04        ..    BNE &8F39
8F35  A9 0B        ..    LDA #&0B
8F37  80 05        ..    BRA &8F3E
8F39  7A           z     PLY
8F3A  98           .     TYA
8F3B  C8           .     INY
8F3C  C8           .     INY
8F3D  5A           Z     PHY
8F3E  85 9D        ..    STA &9D
8F40  1A           .     INC A
8F41  85 9F        ..    STA &9F
8F43  A9 00        ..    LDA #&00
8F45  85 9C        ..    STA &9C
8F47  85 9E        ..    STA &9E
8F49  20 D4 8C      ..   JSR &8CD4
8F4C  C0 DC        ..    CPY #&DC
8F4E  7A           z     PLY
8F4F  B0 C7        ..    BCS &8F18
8F51  60           `     RTS
8F52  A9 00        ..    LDA #&00
8F54  85 A8        ..    STA &A8
8F56  8D 60 0D     .`.   STA &0D60
8F59  A0 00        ..    LDY #&00
8F5B  91 9C        ..    STA (&9C),Y
8F5D  AD 8D 02     ...   LDA &028D
8F60  D0 07        ..    BNE &8F69
8F62  A9 10        ..    LDA #&10
8F64  2C 6C 0D     ,l.   BIT &0D6C
8F67  F0 70        .p    BEQ &8FD9
8F69  20 E4 8C      ..   JSR &8CE4
8F6C  8D 6C 0D     .l.   STA &0D6C
8F6F  A0 21        .!    LDY #&21
8F71  91 9E        ..    STA (&9E),Y
8F73  A8           .     TAY
8F74  91 CC        ..    STA (&CC),Y
8F76  C8           .     INY
8F77  D0 FB        ..    BNE &8F74
8F79  20 10 B4      ..   JSR &B410
8F7C  A2 01        ..    LDX #&01
8F7E  20 B4 8E      ..   JSR &8EB4
8F81  8C 00 C0     ...   STY &C000
8F84  A2 02        ..    LDX #&02
8F86  20 B4 8E      ..   JSR &8EB4
8F89  8C 01 C0     ...   STY &C001
8F8C  A2 03        ..    LDX #&03
8F8E  20 B4 8E      ..   JSR &8EB4
8F91  98           .     TYA
8F92  A0 02        ..    LDY #&02
8F94  91 9E        ..    STA (&9E),Y
8F96  A2 04        ..    LDX #&04
8F98  20 B4 8E      ..   JSR &8EB4
8F9B  98           .     TYA
8F9C  A0 03        ..    LDY #&03
8F9E  91 9E        ..    STA (&9E),Y
8FA0  A2 03        ..    LDX #&03
8FA2  BD 23 B1     .#.   LDA &B123,X
8FA5  9D 6C 0D     .l.   STA &0D6C,X
8FA8  CA           .     DEX
8FA9  D0 F7        ..    BNE &8FA2
8FAB  8E 06 C0     ...   STX &C006
8FAE  8E 05 C0     ...   STX &C005
8FB1  20 86 AE      ..   JSR &AE86
8FB4  CA           .     DEX
8FB5  8E 72 0D     .r.   STX &0D72
8FB8  A2 11        ..    LDX #&11
8FBA  20 B4 8E      ..   JSR &8EB4
8FBD  98           .     TYA
8FBE  29 40        )@    AND #&40
8FC0  F0 02        ..    BEQ &8FC4
8FC2  A9 FF        ..    LDA #&FF
8FC4  20 DD AA      ..   JSR &AADD
8FC7  A5 A8        ..    LDA &A8
8FC9  20 FF A3      ..   JSR &A3FF
8FCC  B0 08        ..    BCS &8FD6
8FCE  A9 3F        .?    LDA #&3F
8FD0  91 9E        ..    STA (&9E),Y
8FD2  E6 A8        ..    INC &A8
8FD4  D0 F1        ..    BNE &8FC7
8FD6  20 6D 90      m.   JSR &906D
8FD9  20 B2 8E      ..   JSR &8EB2
8FDC  98           .     TYA
8FDD  D0 29        .)    BNE &9008
8FDF  20 6C 92      l.   JSR &926C
8FE2  42            B     ...
8FE3  61 64        ad    ADC (&64,X)
8FE5  6C 79 20     ly    JMP (&2079)
8FE8  63            c     ...
8FE9  6F 6E        on    BBR6 &9059
8FEB  66 69        fi    ROR &69
8FED  67 75        gu    RMB6 &75
8FEF  72 65        re    ADC (&65)
8FF1  64 20        d     STZ &20
8FF3  73            s     ...
8FF4  74 61        ta    STZ &61,X
8FF6  74 69        ti    STZ &69,X
8FF8  6F 6E        on    BBR6 &9068
8FFA  20 6E 75      nu   JSR &756E
8FFD  6D 62 65     mbe   ADC &6562
9000  72 07        r.    ADC (&07)
9002  0D 0D A9     ...   ORA &A90D
9005  01 80        ..    ORA (&80,X)
9007  05 C8        ..    ORA &C8
9009  F0 D4        ..    BEQ &8FDF
900B  80 00        ..    BRA &900D
900D  A0 01        ..    LDY #&01
900F  91 9C        ..    STA (&9C),Y
9011  A2 40        .@    LDX #&40
9013  8E 61 0D     .a.   STX &0D61
9016  20 4B 8B      K.   JSR &8B4B
9019  F0 08        ..    BEQ &9023
901B  A9 10        ..    LDA #&10
901D  0D 6C 0D     .l.   ORA &0D6C
9020  8D 6C 0D     .l.   STA &0D6C
9023  20 45 90      E.   JSR &9045
9026  A9 03        ..    LDA #&03
9028  20 BF AE      ..   JSR &AEBF
902B  20 0B AC      ..   JSR &AC0B
902E  48           H     PHA
902F  4D 01 C0     M..   EOR &C001
9032  D0 07        ..    BNE &903B
9034  8D 01 C0     ...   STA &C001
9037  A0 03        ..    LDY #&03
9039  91 9C        ..    STA (&9C),Y
903B  68           h     PLA
903C  A0 03        ..    LDY #&03
903E  51 9E        Q.    EOR (&9E),Y
9040  D0 02        ..    BNE &9044
9042  91 9E        ..    STA (&9E),Y
9044  60           `     RTS
9045  20 52 80      R.   JSR &8052
9048  A9 A8        ..    LDA #&A8
904A  20 E3 8E      ..   JSR &8EE3
904D  86 B8        ..    STX &B8
904F  84 B9        ..    STY &B9
9051  A0 36        .6    LDY #&36
9053  8C 24 02     .$.   STY &0224
9056  A2 01        ..    LDX #&01
9058  B9 B4 8E     ...   LDA &8EB4,Y
905B  91 B8        ..    STA (&B8),Y
905D  C8           .     INY
905E  B9 B4 8E     ...   LDA &8EB4,Y
9061  91 B8        ..    STA (&B8),Y
9063  C8           .     INY
9064  A5 F4        ..    LDA &F4
9066  91 B8        ..    STA (&B8),Y
9068  C8           .     INY
9069  CA           .     DEX
906A  D0 EC        ..    BNE &9058
906C  60           `     RTS
906D  A0 09        ..    LDY #&09
906F  B9 FE BF     ...   LDA &BFFE,Y
9072  91 9C        ..    STA (&9C),Y
9074  88           .     DEY
9075  C0 01        ..    CPY #&01
9077  D0 F6        ..    BNE &906F
9079  60           `     RTS
907A  2C 6C 0D     ,l.   BIT &0D6C
907D  10 27        .'    BPL &90A6
907F  A0 00        ..    LDY #&00
9081  20 6A BB      j.   JSR &BB6A
9084  20 6D 90      m.   JSR &906D
9087  A0 76        .v    LDY #&76
9089  A9 00        ..    LDA #&00
908B  18           .     CLC
908C  79 00 C2     y..   ADC &C200,Y
908F  88           .     DEY
9090  10 FA        ..    BPL &908C
9092  A0 77        .w    LDY #&77
9094  10 03        ..    BPL &9099
9096  B9 00 C2     ...   LDA &C200,Y
9099  91 CC        ..    STA (&CC),Y
909B  88           .     DEY
909C  10 F8        ..    BPL &9096
909E  AD 6C 0D     .l.   LDA &0D6C
90A1  29 7F        ).    AND #&7F
90A3  8D 6C 0D     .l.   STA &0D6C
90A6  60           `     RTS
90A7  08           .     PHP
90A8  48           H     PHA
90A9  5A           Z     PHY
90AA  A0 76        .v    LDY #&76
90AC  A9 00        ..    LDA #&00
90AE  18           .     CLC
90AF  71 CC        q.    ADC (&CC),Y
90B1  88           .     DEY
90B2  10 FB        ..    BPL &90AF
90B4  A0 77        .w    LDY #&77
90B6  D1 CC        ..    CMP (&CC),Y
90B8  D0 04        ..    BNE &90BE
90BA  7A           z     PLY
90BB  68           h     PLA
90BC  28           (     PLP
90BD  60           `     RTS
90BE  A9 AA        ..    LDA #&AA
90C0  20 A7 99      ..   JSR &99A7
90C3  6E 65 74     net   ROR &7465
90C6  20 63 68      ch   JSR &6863
90C9  65 63        ec    ADC &63
90CB  6B            k     ...
90CC  73            s     ...
90CD  75 6D        um    ADC &6D,X
90CF  00           .     BRK
90D0  20 6C 92      l.   JSR &926C
90D3  45 63        Ec    EOR &63
90D5  6F 6E        on    BBR6 &9145
90D7  65 74        et    ADC &74
90D9  20 53 74      St   JSR &7453
90DC  61 74        at    ADC (&74,X)
90DE  69 6F        io    ADC #&6F
90E0  6E 20 A0     n .   ROR &A020
90E3  01 B1        ..    ORA (&B1,X)
90E5  9C 20 5C     . \   STZ &5C20
90E8  B3            .     ...
90E9  A9 20        .     LDA #%00100000
90EB  2C A1 FE     ,..   BIT adlc_status2
90EE  F0 0D        ..    BEQ &90FD
90F0  20 6C 92      l.   JSR &926C
90F3  20 4E 6F      No   JSR &6F4E
90F6  20 43 6C      Cl   JSR &6C43
90F9  6F 63        oc    BBR6 &915E
90FB  6B            k     ...
90FC  EA           .     NOP
90FD  20 E7 FF      ..   JSR osnewl
9100  60           `     RTS
9101  28           (     PLP
9102  3C 64 69     <di   BIT &6964,X
9105  72 3E        r>    ADC (&3E)
9107  29 00        ).    AND #&00
9109  28           (     PLP
910A  3C 73 74     <st   BIT &7473,X
910D  6E 2E 20     n.    ROR &202E
9110  69 64        id    ADC #&64
9112  2E 3E 29     .>)   ROL &293E
9115  20 3C 75      <u   JSR &753C
9118  73            s     ...
9119  65 72        er    ADC &72
911B  20 69 64      id   JSR &6469
911E  2E 3E 20     .>    ROL &203E
9121  0D 28 28     .((   ORA &2828
9124  3A           :     DEC A
9125  3C 43 52     <CR   BIT &5243,X
9128  3E 29 3C     >)<   ROL &3C29,X
912B  70 61        pa    BCS &918E
912D  73            s     ...
912E  73            s     ...
912F  77 6F        wo    RMB7 &6F
9131  72 64        rd    ADC (&64)
9133  3E 29 00     >).   ROL &0029,X
9136  3C 6F 62     <ob   BIT &626F,X
9139  6A           j     ROR A
913A  65 63        ec    ADC &63
913C  74 3E        t>    STZ &3E,X
913E  00           .     BRK
913F  3C 66 69     <fi   BIT &6966,X
9142  6C 65 6E     len   JMP (&6E65)
9145  61 6D        am    ADC (&6D,X)
9147  65 3E        e>    ADC &3E
9149  20 28 3C      (<   JSR &3C28
914C  6F 66        of    BBR6 &91B4
914E  66 73        fs    ROR &73
9150  65 74        et    ADC &74
9152  3E 20 0D     > .   ROL &0D20,X
9155  28           (     PLP
9156  3C 61 64     <ad   BIT &6461,X
9159  64 72        dr    STZ &72
915B  65 73        es    ADC &73
915D  73            s     ...
915E  3E 29 29     >))   ROL &2929,X
9161  00           .     BRK
9162  3C 64 69     <di   BIT &6964,X
9165  72 3E        r>    ADC (&3E)
9167  00           .     BRK
9168  3C 64 69     <di   BIT &6964,X
916B  72 3E        r>    ADC (&3E)
916D  20 28 3C      (<   JSR &3C28
9170  6E 75 6D     num   ROR &6D75
9173  62            b     ...
9174  65 72        er    ADC &72
9176  3E 29 00     >).   ROL &0029,X
9179  28           (     PLP
917A  3A           :     DEC A
917B  3C 43 52     <CR   BIT &5243,X
917E  3E 29 20     >)    ROL &2029,X
9181  3C 70 61     <pa   BIT &6170,X
9184  73            s     ...
9185  73            s     ...
9186  77 6F        wo    RMB7 &6F
9188  72 64        rd    ADC (&64)
918A  3E 20 0D     > .   ROL &0D20,X
918D  3C 6E 65     <ne   BIT &656E,X
9190  77 20        w     RMB7 &20
9192  70 61        pa    BCS &91F5
9194  73            s     ...
9195  73            s     ...
9196  77 6F        wo    RMB7 &6F
9198  72 64        rd    ADC (&64)
919A  3E 00 28     >.(   ROL &2800,X
919D  3C 70 73     <ps   BIT &7370,X
91A0  20 74 79      ty   JSR &7974
91A3  70 65        pe    BCS &920A
91A5  3E 29 7C     >)|   ROL &7C29,X
91A8  28           (     PLP
91A9  3C 73 74     <st   BIT &7473,X
91AC  6E 2E 20     n.    ROR &202E
91AF  69 64        id    ADC #&64
91B1  2E 3E 29     .>)   ROL &293E
91B4  00           .     BRK
91B5  3C 6F 62     <ob   BIT &626F,X
91B8  6A           j     ROR A
91B9  65 63        ec    ADC &63
91BB  74 3E        t>    STZ &3E,X
91BD  20 28 4C      (L   JSR &4C28
91C0  29 28        )(    AND #&28
91C2  57 29        W)    RMB5 &29
91C4  28           (     PLP
91C5  52 29        R)    EOR (&29)
91C7  28           (     PLP
91C8  2F 28        /(    BBR2 &91F2
91CA  57 29        W)    RMB5 &29
91CC  28           (     PLP
91CD  52 29        R)    EOR (&29)
91CF  29 00        ).    AND #&00
91D1  3C 66 69     <fi   BIT &6966,X
91D4  6C 65 6E     len   JMP (&6E65)
91D7  61 6D        am    ADC (&6D,X)
91D9  65 3E        e>    ADC &3E
91DB  20 3C 6E      <n   JSR &6E3C
91DE  65 77        ew    ADC &77
91E0  20 66 69      fi   JSR &6966
91E3  6C 65 6E     len   JMP (&6E65)
91E6  61 6D        am    ADC (&6D,X)
91E8  65 3E        e>    ADC &3E
91EA  00           .     BRK
91EB  28           (     PLP
91EC  3C 70 73     <ps   BIT &7370,X
91EF  20 74 79      ty   JSR &7974
91F2  70 65        pe    BCS &9259
91F4  3E 29 00     >).   ROL &0029,X
91F7  06 FF        ..    ASL &FF
91F9  07 34        .4    RMB0 &34
91FB  3D 60 66     =`f   ORA &6660,X
91FE  77 9A        w.    RMB7 &9A
9200  B3            .     ...
9201  CF A6        ..    BBS4 &91A9
9203  E9 A9        ..    SBC #&A9
9205  0D 08 2C     ..,   ORA &2C08
9208  69 97        i.    ADC #&97
920A  70 02        p.    BCS &920E
920C  08           .     PHP
920D  B8           .     CLV
920E  DA           .     PHX
920F  5A           Z     PHY
9210  48           H     PHA
9211  08           .     PHP
9212  A9 C7        ..    LDA #&C7
9214  A2 00        ..    LDX #&00
9216  A0 00        ..    LDY #&00
9218  20 F4 FF      ..   JSR osbyte
921B  E0 20        .     CPX #&20
921D  90 09        ..    BCC &9228
921F  E0 30        .0    CPX #&30
9221  B0 05        ..    BCS &9228
9223  20 F4 FF      ..   JSR osbyte
9226  A2 00        ..    LDX #&00
9228  28           (     PLP
9229  68           h     PLA
922A  48           H     PHA
922B  50 05        P.    BVC &9232
922D  20 E3 FF      ..   JSR osasci
9230  80 03        ..    BRA &9235
9232  20 EE FF      ..   JSR oswrch
9235  A9 C7        ..    LDA #&C7
9237  A0 FF        ..    LDY #&FF
9239  20 F4 FF      ..   JSR osbyte
923C  68           h     PLA
923D  7A           z     PLY
923E  FA           .     PLX
923F  28           (     PLP
9240  60           `     RTS
9241  48           H     PHA
9242  4A           J     LSR A
9243  4A           J     LSR A
9244  4A           J     LSR A
9245  4A           J     LSR A
9246  20 4A 92      J.   JSR &924A
9249  68           h     PLA
924A  29 0F        ).    AND #&0F
924C  C9 0A        ..    CMP #&0A
924E  90 02        ..    BCC &9252
9250  69 06        i.    ADC #&06
9252  69 30        i0    ADC #&30
9254  4C E3 FF     L..   JMP osasci
9257  48           H     PHA
9258  4A           J     LSR A
9259  4A           J     LSR A
925A  4A           J     LSR A
925B  4A           J     LSR A
925C  20 60 92      `.   JSR &9260
925F  68           h     PLA
9260  29 0F        ).    AND #&0F
9262  C9 0A        ..    CMP #&0A
9264  90 02        ..    BCC &9268
9266  69 06        i.    ADC #&06
9268  69 30        i0    ADC #&30
926A  80 9A        ..    BRA &9206
926C  68           h     PLA
926D  85 B8        ..    STA &B8
926F  68           h     PLA
9270  85 B9        ..    STA &B9
9272  A0 00        ..    LDY #&00
9274  E6 B8        ..    INC &B8
9276  D0 02        ..    BNE &927A
9278  E6 B9        ..    INC &B9
927A  B1 B8        ..    LDA (&B8),Y
927C  30 14        0.    BMI &9292
927E  A5 B8        ..    LDA &B8
9280  48           H     PHA
9281  A5 B9        ..    LDA &B9
9283  48           H     PHA
9284  B1 B8        ..    LDA (&B8),Y
9286  20 E3 FF      ..   JSR osasci
9289  68           h     PLA
928A  85 B9        ..    STA &B9
928C  68           h     PLA
928D  85 B8        ..    STA &B8
928F  4C 74 92     Lt.   JMP &9274
9292  6C B8 00     l..   JMP (&00B8)
9295  68           h     PLA
9296  85 B8        ..    STA &B8
9298  68           h     PLA
9299  85 B9        ..    STA &B9
929B  A0 00        ..    LDY #&00
929D  E6 B8        ..    INC &B8
929F  D0 02        ..    BNE &92A3
92A1  E6 B9        ..    INC &B9
92A3  B1 B8        ..    LDA (&B8),Y
92A5  30 13        0.    BMI &92BA
92A7  A5 B8        ..    LDA &B8
92A9  48           H     PHA
92AA  A5 B9        ..    LDA &B9
92AC  48           H     PHA
92AD  B1 B8        ..    LDA (&B8),Y
92AF  20 06 92      ..   JSR &9206
92B2  68           h     PLA
92B3  85 B9        ..    STA &B9
92B5  68           h     PLA
92B6  85 B8        ..    STA &B8
92B8  80 E3        ..    BRA &929D
92BA  6C B8 00     l..   JMP (&00B8)
92BD  64 B2        d.    STZ &B2
92BF  B1 BE        ..    LDA (&BE),Y
92C1  C9 26        .&    CMP #&26
92C3  D0 36        .6    BNE &92FB
92C5  C8           .     INY
92C6  B1 BE        ..    LDA (&BE),Y
92C8  B0 0B        ..    BCS &92D5
92CA  C8           .     INY
92CB  B1 BE        ..    LDA (&BE),Y
92CD  C9 2E        ..    CMP #&2E
92CF  F0 77        .w    BEQ &9348
92D1  C9 21        .!    CMP #&21
92D3  90 52        .R    BCC &9327
92D5  C9 30        .0    CMP #&30
92D7  90 0C        ..    BCC &92E5
92D9  C9 3A        .:    CMP #&3A
92DB  90 0A        ..    BCC &92E7
92DD  29 5F        )_    AND #&5F
92DF  69 B8        i.    ADC #&B8
92E1  B0 72        .r    BCS &9355
92E3  C9 FA        ..    CMP #&FA
92E5  90 6E        .n    BCC &9355
92E7  29 0F        ).    AND #&0F
92E9  85 B3        ..    STA &B3
92EB  A5 B2        ..    LDA &B2
92ED  C9 10        ..    CMP #&10
92EF  B0 6D        .m    BCS &935E
92F1  0A           .     ASL A
92F2  0A           .     ASL A
92F3  0A           .     ASL A
92F4  0A           .     ASL A
92F5  65 B3        e.    ADC &B3
92F7  85 B2        ..    STA &B2
92F9  90 CF        ..    BCC &92CA
92FB  B1 BE        ..    LDA (&BE),Y
92FD  C9 2E        ..    CMP #&2E
92FF  F0 47        .G    BEQ &9348
9301  C9 21        .!    CMP #&21
9303  90 22        ."    BCC &9327
9305  20 A9 93      ..   JSR &93A9
9308  90 6C        .l    BCC &9376
930A  29 0F        ).    AND #&0F
930C  85 B3        ..    STA &B3
930E  06 B2        ..    ASL &B2
9310  B0 4C        .L    BCS &935E
9312  A5 B2        ..    LDA &B2
9314  0A           .     ASL A
9315  B0 47        .G    BCS &935E
9317  0A           .     ASL A
9318  B0 44        .D    BCS &935E
931A  65 B2        e.    ADC &B2
931C  B0 40        .@    BCS &935E
931E  65 B3        e.    ADC &B3
9320  B0 3C        .<    BCS &935E
9322  85 B2        ..    STA &B2
9324  C8           .     INY
9325  D0 D4        ..    BNE &92FB
9327  A5 B4        ..    LDA &B4
9329  10 05        ..    BPL &9330
932B  A5 B2        ..    LDA &B2
932D  F0 53        .S    BEQ &9382
932F  60           `     RTS
9330  A5 B2        ..    LDA &B2
9332  C9 FF        ..    CMP #&FF
9334  F0 2C        .,    BEQ &9362
9336  A5 B2        ..    LDA &B2
9338  D0 0C        ..    BNE &9346
933A  A5 B4        ..    LDA &B4
933C  F0 24        .$    BEQ &9362
933E  88           .     DEY
933F  B1 BE        ..    LDA (&BE),Y
9341  C8           .     INY
9342  49 2E        I.    EOR #&2E
9344  D0 1C        ..    BNE &9362
9346  38           8     SEC
9347  60           `     RTS
9348  A5 B4        ..    LDA &B4
934A  D0 2A        .*    BNE &9376
934C  E6 B4        ..    INC &B4
934E  A5 B2        ..    LDA &B2
9350  C9 FF        ..    CMP #&FF
9352  F0 3D        .=    BEQ &9391
9354  60           `     RTS
9355  A9 F1        ..    LDA #&F1
9357  20 A7 99      ..   JSR &99A7
935A  68           h     PLA
935B  65 78        ex    ADC &78
935D  00           .     BRK
935E  24 B4        $.    BIT &B4
9360  30 20        0     BMI &9382
9362  A9 D0        ..    LDA #&D0
9364  20 A7 99      ..   JSR &99A7
9367  73            s     ...
9368  74 61        ta    STZ &61,X
936A  74 69        ti    STZ &69,X
936C  6F 6E        on    BBR6 &93DC
936E  20 6E 75      nu   JSR &756E
9371  6D 62 65     mbe   ADC &6562
9374  72 00        r.    ADC (&00)
9376  A9 F0        ..    LDA #&F0
9378  20 A7 99      ..   JSR &99A7
937B  6E 75 6D     num   ROR &6D75
937E  62            b     ...
937F  65 72        er    ADC &72
9381  00           .     BRK
9382  A9 94        ..    LDA #&94
9384  20 A7 99      ..   JSR &99A7
9387  70 61        pa    BCS &93EA
9389  72 61        ra    ADC (&61)
938B  6D 65 74     met   ADC &7465
938E  65 72        er    ADC &72
9390  00           .     BRK
9391  A9 D1        ..    LDA #&D1
9393  20 A7 99      ..   JSR &99A7
9396  6E 65 74     net   ROR &7465
9399  20 6E 75      nu   JSR &756E
939C  6D 62 65     mbe   ADC &6562
939F  72 00        r.    ADC (&00)
93A1  C9 26        .&    CMP #&26
93A3  F0 0A        ..    BEQ &93AF
93A5  C9 2E        ..    CMP #&2E
93A7  F0 06        ..    BEQ &93AF
93A9  C9 3A        .:    CMP #&3A
93AB  B0 03        ..    BCS &93B0
93AD  C9 30        .0    CMP #&30
93AF  60           `     RTS
93B0  18           .     CLC
93B1  60           `     RTS
93B2  A0 0E        ..    LDY #&0E
93B4  B1 BB        ..    LDA (&BB),Y
93B6  29 3F        )?    AND #&3F
93B8  A2 04        ..    LDX #&04
93BA  D0 04        ..    BNE &93C0
93BC  29 1F        ).    AND #&1F
93BE  A2 FF        ..    LDX #&FF
93C0  85 B8        ..    STA &B8
93C2  A9 00        ..    LDA #&00
93C4  E8           .     INX
93C5  46 B8        F.    LSR &B8
93C7  90 03        ..    BCC &93CC
93C9  1D CF 93     ...   ORA &93CF,X
93CC  D0 F6        ..    BNE &93C4
93CE  60           `     RTS
93CF  50 20        P     BVC &93F1
93D1  05 02        ..    ORA &02
93D3  88           .     DEY
93D4  04 08        ..    TSB &08
93D6  80 10        ..    BRA &93E8
93D8  01 02        ..    ORA (&02,X)
93DA  86 F2        ..    STX &F2
93DC  84 F3        ..    STY &F3
93DE  85 BD        ..    STA &BD
93E0  86 BE        ..    STX &BE
93E2  84 BF        ..    STY &BF
93E4  86 BB        ..    STX &BB
93E6  84 BC        ..    STY &BC
93E8  08           .     PHP
93E9  46 98        F.    LSR &98
93EB  28           (     PLP
93EC  60           `     RTS
93ED  A2 04        ..    LDX #&04
93EF  B5 AF        ..    LDA &AF,X
93F1  55 B3        U.    EOR &B3,X
93F3  D0 03        ..    BNE &93F8
93F5  CA           .     DEX
93F6  D0 F7        ..    BNE &93EF
93F8  60           `     RTS
93F9  A2 20        .     LDX #&20
93FB  A0 2F        ./    LDY #&2F
93FD  60           `     RTS
93FE  08           .     PHP
93FF  48           H     PHA
9400  DA           .     PHX
9401  BA           .     TSX
9402  BD 02 01     ...   LDA &0102,X
9405  20 30 B8      0.   JSR &B830
9408  30 1E        0.    BMI &9428
940A  A9 40        .@    LDA #&40
940C  1D 60 C2     .`.   ORA &C260,X
940F  9D 60 C2     .`.   STA &C260,X
9412  D0 14        ..    BNE &9428
9414  08           .     PHP
9415  48           H     PHA
9416  DA           .     PHX
9417  BA           .     TSX
9418  BD 02 01     ...   LDA &0102,X
941B  20 30 B8      0.   JSR &B830
941E  30 08        0.    BMI &9428
9420  A9 BF        ..    LDA #&BF
9422  3D 60 C2     =`.   ORA &C260,X
9425  9D 60 C2     .`.   STA &C260,X
9428  FA           .     PLX
9429  68           h     PLA
942A  28           (     PLP
942B  60           `     RTS
942C  20 6A 94      j.   JSR &946A
942F  DA           .     PHX
9430  20 8A 94      ..   JSR &948A
9433  20 64 B2      d.   JSR &B264
9436  FA           .     PLX
9437  20 4D 94      M.   JSR &944D
943A  C9 0D        ..    CMP #&0D
943C  D0 17        ..    BNE &9455
943E  A9 CC        ..    LDA #&CC
9440  20 A7 99      ..   JSR &99A7
9443  66 69        fi    ROR &69
9445  6C 65 20     le    JMP (&2065)
9448  6E 61 6D     nam   ROR &6D61
944B  65 00        e.    ADC &00
944D  AD 30 C0     .0.   LDA &C030
9450  C9 26        .&    CMP #&26
9452  F0 EA        ..    BEQ &943E
9454  60           `     RTS
9455  20 4D 94      M.   JSR &944D
9458  9D 05 C1     ...   STA &C105,X
945B  E8           .     INX
945C  C9 0D        ..    CMP #&0D
945E  F0 05        ..    BEQ &9465
9460  20 86 B2      ..   JSR &B286
9463  80 F0        ..    BRA &9455
9465  A0 00        ..    LDY #&00
9467  4C 56 8E     LV.   JMP &8E56
946A  5A           Z     PHY
946B  CA           .     DEX
946C  BD 82 A7     ...   LDA &A782,X
946F  10 FA        ..    BPL &946B
9471  E8           .     INX
9472  A0 00        ..    LDY #&00
9474  BD 82 A7     ...   LDA &A782,X
9477  30 07        0.    BMI &9480
9479  99 05 C1     ...   STA &C105,Y
947C  E8           .     INX
947D  C8           .     INY
947E  D0 F4        ..    BNE &9474
9480  A9 20        .     LDA #&20
9482  99 05 C1     ...   STA &C105,Y
9485  C8           .     INY
9486  98           .     TYA
9487  AA           .     TAX
9488  7A           z     PLY
9489  60           `     RTS
948A  A9 00        ..    LDA #&00
948C  AA           .     TAX
948D  8D D8 C2     ...   STA &C2D8
9490  B1 BE        ..    LDA (&BE),Y
9492  C9 20        .     CMP #&20
9494  D0 03        ..    BNE &9499
9496  C8           .     INY
9497  D0 F7        ..    BNE &9490
9499  C9 22        ."    CMP #&22
949B  D0 07        ..    BNE &94A4
949D  C8           .     INY
949E  4D D8 C2     M..   EOR &C2D8
94A1  8D D8 C2     ...   STA &C2D8
94A4  B1 BE        ..    LDA (&BE),Y
94A6  C9 22        ."    CMP #&22
94A8  D0 08        ..    BNE &94B2
94AA  4D D8 C2     M..   EOR &C2D8
94AD  8D D8 C2     ...   STA &C2D8
94B0  A9 20        .     LDA #&20
94B2  9D 30 C0     .0.   STA &C030,X
94B5  C8           .     INY
94B6  E8           .     INX
94B7  C9 0D        ..    CMP #&0D
94B9  D0 E9        ..    BNE &94A4
94BB  AD D8 C2     ...   LDA &C2D8
94BE  F0 C9        ..    BEQ &9489
94C0  A5 FD        ..    LDA &FD
94C2  20 A7 99      ..   JSR &99A7
94C5  73            s     ...
94C6  74 72        tr    STZ &72,X
94C8  69 6E        in    ADC #&6E
94CA  67 00        g.    RMB6 &00
94CC  20 6A 94      j.   JSR &946A
94CF  DA           .     PHX
94D0  20 04 B3      ..   JSR &B304
94D3  20 8A 94      ..   JSR &948A
94D6  20 64 B2      d.   JSR &B264
94D9  FA           .     PLX
94DA  AD 30 C0     .0.   LDA &C030
94DD  C9 0D        ..    CMP #&0D
94DF  D0 0C        ..    BNE &94ED
94E1  A9 B0        ..    LDA #&B0
94E3  20 A7 99      ..   JSR &99A7
94E6  72 65        re    ADC (&65)
94E8  6E 61 6D     nam   ROR &6D61
94EB  65 00        e.    ADC &00
94ED  9D 05 C1     ...   STA &C105,X
94F0  E8           .     INX
94F1  C9 20        .     CMP #&20
94F3  F0 05        ..    BEQ &94FA
94F5  20 86 B2      ..   JSR &B286
94F8  80 E0        ..    BRA &94DA
94FA  20 86 B2      ..   JSR &B286
94FD  AD 30 C0     .0.   LDA &C030
9500  C9 20        .     CMP #&20
9502  F0 F6        ..    BEQ &94FA
9504  AD 71 C2     .q.   LDA &C271
9507  48           H     PHA
9508  20 04 B3      ..   JSR &B304
950B  DA           .     PHX
950C  20 64 B2      d.   JSR &B264
950F  FA           .     PLX
9510  68           h     PLA
9511  CD 71 C2     .q.   CMP &C271
9514  D0 CB        ..    BNE &94E1
9516  4C 55 94     LU.   JMP &9455
9519  B1 BE        ..    LDA (&BE),Y
951B  C9 26        .&    CMP #&26
951D  D0 7F        ..    BNE &959E
951F  C8           .     INY
9520  B1 BE        ..    LDA (&BE),Y
9522  C9 0D        ..    CMP #&0D
9524  F0 04        ..    BEQ &952A
9526  C9 20        .     CMP #&20
9528  D0 17        ..    BNE &9541
952A  A0 FF        ..    LDY #&FF
952C  C8           .     INY
952D  B1 BE        ..    LDA (&BE),Y
952F  99 05 C1     ...   STA &C105,Y
9532  C9 26        .&    CMP #&26
9534  D0 F6        ..    BNE &952C
9536  A9 0D        ..    LDA #&0D
9538  99 05 C1     ...   STA &C105,Y
953B  C8           .     INY
953C  98           .     TYA
953D  AA           .     TAX
953E  4C 65 94     Le.   JMP &9465
9541  C9 2E        ..    CMP #&2E
9543  F0 03        ..    BEQ &9548
9545  4C 3E 94     L>.   JMP &943E
9548  C8           .     INY
9549  84 B0        ..    STY &B0
954B  A9 04        ..    LDA #&04
954D  8D 05 C1     ...   STA &C105
9550  AD 71 C2     .q.   LDA &C271
9553  09 40        .@    ORA #&40
9555  8D 71 C2     .q.   STA &C271
9558  A2 01        ..    LDX #&01
955A  20 D8 B2      ..   JSR &B2D8
955D  A0 12        ..    LDY #&12
955F  20 8A 97      ..   JSR &978A
9562  AD 05 C1     ...   LDA &C105
9565  C9 02        ..    CMP #&02
9567  F0 0F        ..    BEQ &9578
9569  A9 D6        ..    LDA #&D6
956B  20 C0 99      ..   JSR &99C0
956E  4E 6F 74     Not   LSR &746F
9571  20 66 6F      fo   JSR &6F66
9574  75 6E        un    ADC &6E,X
9576  64 00        d.    STZ &00
9578  AD 03 C0     ...   LDA &C003
957B  8D 05 C1     ...   STA &C105
957E  A2 01        ..    LDX #&01
9580  A0 07        ..    LDY #&07
9582  20 8A 97      ..   JSR &978A
9585  A2 01        ..    LDX #&01
9587  8E 05 C1     ...   STX &C105
958A  8E 06 C1     ...   STX &C106
958D  E8           .     INX
958E  A4 B0        ..    LDY &B0
9590  20 D8 B2      ..   JSR &B2D8
9593  A0 06        ..    LDY #&06
9595  20 8A 97      ..   JSR &978A
9598  AC 05 C1     ...   LDY &C105
959B  4C 4E A6     LN.   JMP &A64E
959E  4C 47 8E     LG.   JMP &8E47
95A1  B1 F2        ..    LDA (&F2),Y
95A3  C9 0D        ..    CMP #&0D
95A5  D0 43        .C    BNE &95EA
95A7  20 C9 95      ..   JSR &95C9
95AA  20 DB 95      ..   JSR &95DB
95AD  20 C2 95      ..   JSR &95C2
95B0  20 DB 95      ..   JSR &95DB
95B3  20 59 96      Y.   JSR &9659
95B6  20 6C 92      l.   JSR &926C
95B9  4E 6F EA     No.   LSR &EA6F
95BC  20 59 96      Y.   JSR &9659
95BF  4C 8B 8C     L..   JMP &8C8B
95C2  20 6C 92      l.   JSR &926C
95C5  50 B8        P.    BVC &957F
95C7  50 05        P.    BVC &95CE
95C9  20 6C 92      l.   JSR &926C
95CC  46 EA        F.    LSR &EA
95CE  20 6C 92      l.   JSR &926C
95D1  53            S     ...
95D2  20 20 20           JSR &2020
95D5  20 20 20           JSR &2020
95D8  20 EA 60      .`   JSR &60EA
95DB  20 6C 92      l.   JSR &926C
95DE  5B            [     ...
95DF  3C 44 3E     <D>   BIT &3E44,X
95E2  2E 5D 3C     .]<   ROL &3C5D
95E5  44            D     ...
95E6  3E 0D EA     >..   ROL &EA0D,X
95E9  60           `     RTS
95EA  A2 A5        ..    LDX #&A5
95EC  4C 6D 8C     Lm.   JMP &8C6D
95EF  BD 82 A7     ...   LDA &A782,X
95F2  29 3F        )?    AND #&3F
95F4  AA           .     TAX
95F5  DA           .     PHX
95F6  5A           Z     PHY
95F7  DA           .     PHX
95F8  20 B4 8E      ..   JSR &8EB4
95FB  84 B5        ..    STY &B5
95FD  FA           .     PLX
95FE  E8           .     INX
95FF  20 B4 8E      ..   JSR &8EB4
9602  84 B6        ..    STY &B6
9604  7A           z     PLY
9605  20 DA A3      ..   JSR &A3DA
9608  FA           .     PLX
9609  DA           .     PHX
960A  A4 B5        ..    LDY &B5
960C  20 13 96      ..   JSR &9613
960F  FA           .     PLX
9610  E8           .     INX
9611  A4 B7        ..    LDY &B7
9613  A9 A2        ..    LDA #&A2
9615  20 F4 FF      ..   JSR osbyte
9618  80 A5        ..    BRA &95BF
961A  A2 11        ..    LDX #&11
961C  20 B4 8E      ..   JSR &8EB4
961F  98           .     TYA
9620  09 01        ..    ORA #&01
9622  80 08        ..    BRA &962C
9624  A2 11        ..    LDX #&11
9626  20 B4 8E      ..   JSR &8EB4
9629  98           .     TYA
962A  29 FE        ).    AND #&FE
962C  A8           .     TAY
962D  A2 11        ..    LDX #&11
962F  80 E2        ..    BRA &9613
9631  B1 F2        ..    LDA (&F2),Y
9633  C9 0D        ..    CMP #&0D
9635  D0 4E        .N    BNE &9685
9637  20 C9 95      ..   JSR &95C9
963A  20 68 96      h.   JSR &9668
963D  20 C2 95      ..   JSR &95C2
9640  20 64 96      d.   JSR &9664
9643  A2 11        ..    LDX #&11
9645  20 B4 8E      ..   JSR &8EB4
9648  98           .     TYA
9649  29 01        ).    AND #&01
964B  D0 07        ..    BNE &9654
964D  20 6C 92      l.   JSR &926C
9650  4E 6F 20     No    LSR &206F
9653  EA           .     NOP
9654  20 59 96      Y.   JSR &9659
9657  80 29        .)    BRA &9682
9659  20 6C 92      l.   JSR &926C
965C  53            S     ...
965D  70 61        pa    BCS &96C0
965F  63            c     ...
9660  65 0D        e.    ADC &0D
9662  EA           .     NOP
9663  60           `     RTS
9664  A2 04        ..    LDX #&04
9666  80 02        ..    BRA &966A
9668  A2 02        ..    LDX #&02
966A  DA           .     PHX
966B  20 B4 8E      ..   JSR &8EB4
966E  98           .     TYA
966F  20 5C B3      \.   JSR &B35C
9672  20 6C 92      l.   JSR &926C
9675  2E FA CA     ...   ROL &CAFA
9678  20 B4 8E      ..   JSR &8EB4
967B  98           .     TYA
967C  20 5C B3      \.   JSR &B35C
967F  20 E7 FF      ..   JSR osnewl
9682  4C 8B 8C     L..   JMP &8C8B
9685  A2 C2        ..    LDX #&C2
9687  4C 6D 8C     Lm.   JMP &8C6D
968A  21 48        !H    AND (&48,X)
968C  65 6C        el    ADC &6C
968E  70 2E        p.    BCS &96BE
9690  2A           *     ROL A
9691  0D 5A 2C     .Z,   ORA &2C5A
9694  6C 0D 50     l.P   JMP (&500D)
9697  19 A5 F2     ...   ORA &F2A5,Y
969A  85 AE        ..    STA &AE
969C  A5 F3        ..    LDA &F3
969E  85 AF        ..    STA &AF
96A0  B1 AE        ..    LDA (&AE),Y
96A2  49 4F        IO    EOR #&4F
96A4  29 5F        )_    AND #&5F
96A6  D0 09        ..    BNE &96B1
96A8  C8           .     INY
96A9  B1 AE        ..    LDA (&AE),Y
96AB  49 4E        IN    EOR #&4E
96AD  29 5F        )_    AND #&5F
96AF  F0 02        ..    BEQ &96B3
96B1  7A           z     PLY
96B2  60           `     RTS
96B3  5A           Z     PHY
96B4  20 75 8B      u.   JSR &8B75
96B7  7A           z     PLY
96B8  C8           .     INY
96B9  B1 AE        ..    LDA (&AE),Y
96BB  2C 69 97     ,i.   BIT &9769
96BE  C9 20        .     CMP #&20
96C0  90 03        ..    BCC &96C5
96C2  F0 F4        ..    BEQ &96B8
96C4  B8           .     CLV
96C5  8C 05 C1     ...   STY &C105
96C8  8C 06 C1     ...   STY &C106
96CB  A2 01        ..    LDX #&01
96CD  E8           .     INX
96CE  BD 88 96     ...   LDA &9688,X
96D1  9D 05 C1     ...   STA &C105,X
96D4  50 07        P.    BVC &96DD
96D6  C9 0D        ..    CMP #&0D
96D8  D0 F3        ..    BNE &96CD
96DA  C8           .     INY
96DB  80 17        ..    BRA &96F4
96DD  C9 2E        ..    CMP #&2E
96DF  D0 EC        ..    BNE &96CD
96E1  E8           .     INX
96E2  B1 AE        ..    LDA (&AE),Y
96E4  C8           .     INY
96E5  9D 05 C1     ...   STA &C105,X
96E8  C9 0D        ..    CMP #&0D
96EA  F0 08        ..    BEQ &96F4
96EC  C9 20        .     CMP #&20
96EE  D0 F1        ..    BNE &96E1
96F0  A9 0D        ..    LDA #&0D
96F2  80 F1        ..    BRA &96E5
96F4  5A           Z     PHY
96F5  E8           .     INX
96F6  AD 71 C2     .q.   LDA &C271
96F9  29 3F        )?    AND #&3F
96FB  09 80        ..    ORA #&80
96FD  8D 71 C2     .q.   STA &C271
9700  A9 40        .@    LDA #&40
9702  85 BD        ..    STA &BD
9704  20 16 A0      ..   JSR &A016
9707  A8           .     TAY
9708  F0 0D        ..    BEQ &9717
970A  20 D7 FF      ..   JSR osbget
970D  90 16        ..    BCC &9725
970F  A9 00        ..    LDA #&00
9711  20 CE FF      ..   JSR osfind
9714  20 E7 FF      ..   JSR osnewl
9717  7A           z     PLY
9718  88           .     DEY
9719  88           .     DEY
971A  C8           .     INY
971B  B1 AE        ..    LDA (&AE),Y
971D  C9 20        .     CMP #&20
971F  90 90        ..    BCC &96B1
9721  F0 F7        ..    BEQ &971A
9723  80 9F        ..    BRA &96C4
9725  24 FF        $.    BIT &FF
9727  10 03        ..    BPL &972C
9729  4C 5F BD     L_.   JMP &BD5F
972C  20 EE FF      ..   JSR oswrch
972F  C9 0D        ..    CMP #&0D
9731  D0 D7        ..    BNE &970A
9733  AE 6A 02     .j.   LDX &026A
9736  D0 D2        ..    BNE &970A
9738  20 E7 FF      ..   JSR osnewl
973B  80 CD        ..    BRA &970A
973D  A9 90        ..    LDA #&90
973F  20 4B 97      K.   JSR &974B
9742  85 C1        ..    STA &C1
9744  A9 03        ..    LDA #&03
9746  85 C4        ..    STA &C4
9748  C6 C0        ..    DEC &C0
974A  60           `     RTS
974B  48           H     PHA
974C  A0 0B        ..    LDY #&0B
974E  B9 63 97     .c.   LDA &9763,Y
9751  99 C0 00     ...   STA &00C0,Y
9754  C0 02        ..    CPY #&02
9756  10 06        ..    BPL &975E
9758  B9 00 C0     ...   LDA &C000,Y
975B  99 C2 00     ...   STA &00C2,Y
975E  88           .     DEY
975F  10 ED        ..    BPL &974E
9761  68           h     PLA
9762  60           `     RTS
9763  80 99        ..    BRA &96FE
9765  00           .     BRK
9766  00           .     BRK
9767  00           .     BRK
9768  C1 FF        ..    CMP (&FF,X)
976A  FF FF        ..    BBS7 &976B
976C  C1 FF        ..    CMP (&FF,X)
976E  FF 48        .H    BBS7 &97B8
9770  38           8     SEC
9771  B0 1F        ..    BCS &9792
9773  B8           .     CLV
9774  50 1B        P.    BVC &9791
9776  A0 00        ..    LDY #&00
9778  20 6A BB      j.   JSR &BB6A
977B  A9 77        .w    LDA #&77
977D  20 F4 FF      ..   JSR osbyte
9780  A9 40        .@    LDA #&40
9782  1C 6C 0D     .l.   TRB &0D6C
9785  20 2A B9      *.   JSR &B92A
9788  A0 17        ..    LDY #&17
978A  B8           .     CLV
978B  AD 02 C0     ...   LDA &C002
978E  8D 02 C1     ...   STA &C102
9791  18           .     CLC
9792  08           .     PHP
9793  8C 01 C1     ...   STY &C101
9796  A0 01        ..    LDY #&01
9798  B9 03 C0     ...   LDA &C003,Y
979B  99 03 C1     ...   STA &C103,Y
979E  88           .     DEY
979F  10 F7        ..    BPL &9798
97A1  2C 71 C2     ,q.   BIT &C271
97A4  70 0A        p.    BCS &97B0
97A6  10 0E        ..    BPL &97B6
97A8  AD 04 C0     ...   LDA &C004
97AB  8D 03 C1     ...   STA &C103
97AE  50 06        P.    BVC &97B6
97B0  AD 02 C0     ...   LDA &C002
97B3  8D 03 C1     ...   STA &C103
97B6  28           (     PLP
97B7  08           .     PHP
97B8  A9 90        ..    LDA #&90
97BA  8D 00 C1     ...   STA &C100
97BD  20 4B 97      K.   JSR &974B
97C0  8A           .     TXA
97C1  69 05        i.    ADC #&05
97C3  85 C8        ..    STA &C8
97C5  28           (     PLP
97C6  B0 1A        ..    BCS &97E2
97C8  08           .     PHP
97C9  20 24 9B      $.   JSR &9B24
97CC  28           (     PLP
97CD  08           .     PHP
97CE  20 3D 97      =.   JSR &973D
97D1  20 BE 98      ..   JSR &98BE
97D4  28           (     PLP
97D5  C8           .     INY
97D6  B1 C4        ..    LDA (&C4),Y
97D8  AA           .     TAX
97D9  F0 06        ..    BEQ &97E1
97DB  50 02        P.    BVC &97DF
97DD  69 2A        i*    ADC #&2A
97DF  D0 0A        ..    BNE &97EB
97E1  60           `     RTS
97E2  68           h     PLA
97E3  A2 C0        ..    LDX #&C0
97E5  C8           .     INY
97E6  20 DD AF      ..   JSR &AFDD
97E9  90 EA        ..    BCC &97D5
97EB  8E 09 C0     ...   STX &C009
97EE  AD 07 C0     ...   LDA &C007
97F1  08           .     PHP
97F2  D0 04        ..    BNE &97F8
97F4  E0 BF        ..    CPX #&BF
97F6  D0 39        .9    BNE &9831
97F8  A9 40        .@    LDA #&40
97FA  48           H     PHA
97FB  1C 6C 0D     .l.   TRB &0D6C
97FE  A2 F0        ..    LDX #&F0
9800  68           h     PLA
9801  1D C8 C1     ...   ORA &C1C8,X
9804  48           H     PHA
9805  BD C8 C1     ...   LDA &C1C8,X
9808  29 C0        ).    AND #&C0
980A  9D C8 C1     ...   STA &C1C8,X
980D  E8           .     INX
980E  30 F0        0.    BMI &9800
9810  8E 07 C0     ...   STX &C007
9813  20 2A B9      *.   JSR &B92A
9816  68           h     PLA
9817  6A           j     ROR A
9818  90 0D        ..    BCC &9827
981A  20 95 92      ..   JSR &9295
981D  44            D     ...
981E  61 74        at    ADC (&74,X)
9820  61 20        a     ADC (&20,X)
9822  4C 6F 73     Los   JMP &736F
9825  74 0D        t.    STZ &0D,X
9827  AE 09 C0     ...   LDX &C009
982A  28           (     PLP
982B  F0 04        ..    BEQ &9831
982D  68           h     PLA
982E  68           h     PLA
982F  68           h     PLA
9830  60           `     RTS
9831  A0 01        ..    LDY #&01
9833  E0 A8        ..    CPX #&A8
9835  B0 04        ..    BCS &983B
9837  A9 A8        ..    LDA #&A8
9839  91 C4        ..    STA (&C4),Y
983B  A0 FF        ..    LDY #&FF
983D  C8           .     INY
983E  B1 C4        ..    LDA (&C4),Y
9840  99 00 01     ...   STA &0100,Y
9843  49 0D        I.    EOR #&0D
9845  D0 F6        ..    BNE &983D
9847  99 00 01     ...   STA &0100,Y
984A  88           .     DEY
984B  98           .     TYA
984C  AA           .     TAX
984D  4C DF 99     L..   JMP &99DF
9850  A0 00        ..    LDY #&00
9852  B1 9C        ..    LDA (&9C),Y
9854  F0 03        ..    BEQ &9859
9856  4C 96 B0     L..   JMP &B096
9859  09 09        ..    ORA #&09
985B  91 9C        ..    STA (&9C),Y
985D  A2 80        ..    LDX #&80
985F  A0 80        ..    LDY #&80
9861  B1 9C        ..    LDA (&9C),Y
9863  48           H     PHA
9864  C8           .     INY
9865  B1 9C        ..    LDA (&9C),Y
9867  A0 0F        ..    LDY #&0F
9869  91 9E        ..    STA (&9E),Y
986B  88           .     DEY
986C  68           h     PLA
986D  91 9E        ..    STA (&9E),Y
986F  20 28 8B      (.   JSR &8B28
9872  20 29 AE      ).   JSR &AE29
9875  A2 01        ..    LDX #&01
9877  A0 00        ..    LDY #&00
9879  A9 C9        ..    LDA #&C9
987B  20 F4 FF      ..   JSR osbyte
987E  20 96 B0      ..   JSR &B096
9881  A9 00        ..    LDA #&00
9883  20 C0 99      ..   JSR &99C0
9886  52 65        Re    EOR (&65)
9888  6D 6F 74     mot   ADC &746F
988B  65 64        ed    ADC &64
988D  07 00        ..    RMB0 &00
988F  A5 FF        ..    LDA &FF
9891  25 98        %.    AND &98
9893  10 6A        .j    BPL &98FF
9895  A9 7E        .~    LDA #&7E
9897  20 F4 FF      ..   JSR osbyte
989A  A9 06        ..    LDA #&06
989C  4C 3D 99     L=.   JMP &993D
989F  A0 00        ..    LDY #&00
98A1  B1 9C        ..    LDA (&9C),Y
98A3  F0 B4        ..    BEQ &9859
98A5  A0 80        ..    LDY #&80
98A7  B1 9C        ..    LDA (&9C),Y
98A9  A0 0E        ..    LDY #&0E
98AB  D1 9E        ..    CMP (&9E),Y
98AD  D0 A7        ..    BNE &9856
98AF  A0 82        ..    LDY #&82
98B1  B1 9C        ..    LDA (&9C),Y
98B3  A8           .     TAY
98B4  A2 00        ..    LDX #&00
98B6  20 96 B0      ..   JSR &B096
98B9  A9 99        ..    LDA #&99
98BB  4C F4 FF     L..   JMP osbyte
98BE  AD 6E 0D     .n.   LDA &0D6E
98C1  48           H     PHA
98C2  AD 61 0D     .a.   LDA &0D61
98C5  48           H     PHA
98C6  A5 9B        ..    LDA &9B
98C8  D0 05        ..    BNE &98CF
98CA  09 80        ..    ORA #&80
98CC  8D 61 0D     .a.   STA &0D61
98CF  A9 00        ..    LDA #&00
98D1  48           H     PHA
98D2  48           H     PHA
98D3  A8           .     TAY
98D4  BA           .     TSX
98D5  B1 9A        ..    LDA (&9A),Y
98D7  30 1D        0.    BMI &98F6
98D9  DE 01 01     ...   DEC &0101,X
98DC  D0 F7        ..    BNE &98D5
98DE  DE 02 01     ...   DEC &0102,X
98E1  D0 F2        ..    BNE &98D5
98E3  DE 04 01     ...   DEC &0104,X
98E6  D0 ED        ..    BNE &98D5
98E8  AD 6E 0D     .n.   LDA &0D6E
98EB  D0 09        ..    BNE &98F6
98ED  A5 FF        ..    LDA &FF
98EF  30 A4        0.    BMI &9895
98F1  FE 04 01     ...   INC &0104,X
98F4  D0 DF        ..    BNE &98D5
98F6  68           h     PLA
98F7  68           h     PLA
98F8  68           h     PLA
98F9  8D 61 0D     .a.   STA &0D61
98FC  68           h     PLA
98FD  F0 0A        ..    BEQ &9909
98FF  60           `     RTS
9900  2C 6C 0D     ,l.   BIT &0D6C
9903  10 03        ..    BPL &9908
9905  8D 09 C0     ...   STA &C009
9908  60           `     RTS
9909  A2 08        ..    LDX #&08
990B  BC 9A 9A     ...   LDY &9A9A,X
990E  A2 00        ..    LDX #&00
9910  8E 00 01     ...   STX &0100
9913  B9 A6 9A     ...   LDA &9AA6,Y
9916  20 00 99      ..   JSR &9900
9919  B9 A6 9A     ...   LDA &9AA6,Y
991C  9D 01 01     ...   STA &0101,X
991F  F0 04        ..    BEQ &9925
9921  E8           .     INX
9922  C8           .     INY
9923  D0 F4        ..    BNE &9919
9925  20 3A 9A      :.   JSR &9A3A
9928  A9 00        ..    LDA #&00
992A  9D 01 01     ...   STA &0101,X
992D  4C DF 99     L..   JMP &99DF
9930  A1 9A        ..    LDA (&9A,X)
9932  C9 41        .A    CMP #&41
9934  D0 02        ..    BNE &9938
9936  A9 42        .B    LDA #&42
9938  B8           .     CLV
9939  50 05        P.    BVC &9940
993B  A1 9A        ..    LDA (&9A,X)
993D  2C 69 97     ,i.   BIT &9769
9940  29 07        ).    AND #&07
9942  48           H     PHA
9943  C9 02        ..    CMP #&02
9945  D0 42        .B    BNE &9989
9947  08           .     PHP
9948  AA           .     TAX
9949  BC 9A 9A     ...   LDY &9A9A,X
994C  B9 A6 9A     ...   LDA &9AA6,Y
994F  20 00 99      ..   JSR &9900
9952  A2 00        ..    LDX #&00
9954  8E 00 01     ...   STX &0100
9957  B9 A6 9A     ...   LDA &9AA6,Y
995A  9D 01 01     ...   STA &0101,X
995D  F0 04        ..    BEQ &9963
995F  C8           .     INY
9960  E8           .     INX
9961  D0 F4        ..    BNE &9957
9963  20 3A 9A      :.   JSR &9A3A
9966  28           (     PLP
9967  70 0C        p.    BCS &9975
9969  A9 A4        ..    LDA #&A4
996B  20 00 99      ..   JSR &9900
996E  8D 01 01     ...   STA &0101
9971  A0 0B        ..    LDY #&0B
9973  D0 02        ..    BNE &9977
9975  A0 09        ..    LDY #&09
9977  B9 9A 9A     ...   LDA &9A9A,Y
997A  A8           .     TAY
997B  B9 A6 9A     ...   LDA &9AA6,Y
997E  9D 01 01     ...   STA &0101,X
9981  F0 04        ..    BEQ &9987
9983  C8           .     INY
9984  E8           .     INX
9985  D0 F4        ..    BNE &997B
9987  F0 15        ..    BEQ &999E
9989  AA           .     TAX
998A  BC 9A 9A     ...   LDY &9A9A,X
998D  A2 00        ..    LDX #&00
998F  8E 00 01     ...   STX &0100
9992  B9 A6 9A     ...   LDA &9AA6,Y
9995  20 00 99      ..   JSR &9900
9998  B9 A6 9A     ...   LDA &9AA6,Y
999B  9D 01 01     ...   STA &0101,X
999E  F0 3F        .?    BEQ &99DF
99A0  C8           .     INY
99A1  E8           .     INX
99A2  D0 F4        ..    BNE &9998
99A4  42            B     ...
99A5  61 64        ad    ADC (&64,X)
99A7  20 00 99      ..   JSR &9900
99AA  A8           .     TAY
99AB  68           h     PLA
99AC  85 B0        ..    STA &B0
99AE  68           h     PLA
99AF  85 B1        ..    STA &B1
99B1  A2 00        ..    LDX #&00
99B3  E8           .     INX
99B4  BD A3 99     ...   LDA &99A3,X
99B7  9D 01 01     ...   STA &0101,X
99BA  C9 20        .     CMP #&20
99BC  D0 F5        ..    BNE &99B3
99BE  F0 0C        ..    BEQ &99CC
99C0  20 00 99      ..   JSR &9900
99C3  A8           .     TAY
99C4  68           h     PLA
99C5  85 B0        ..    STA &B0
99C7  68           h     PLA
99C8  85 B1        ..    STA &B1
99CA  A2 00        ..    LDX #&00
99CC  8C 01 01     ...   STY &0101
99CF  98           .     TYA
99D0  48           H     PHA
99D1  A0 00        ..    LDY #&00
99D3  8C 00 01     ...   STY &0100
99D6  E8           .     INX
99D7  C8           .     INY
99D8  B1 B0        ..    LDA (&B0),Y
99DA  9D 01 01     ...   STA &0101,X
99DD  D0 F7        ..    BNE &99D6
99DF  20 4D BD      M.   JSR &BD4D
99E2  D0 08        ..    BNE &99EC
99E4  68           h     PLA
99E5  C9 DE        ..    CMP #&DE
99E7  F0 44        .D    BEQ &9A2D
99E9  4C 00 01     L..   JMP &0100
99EC  8D 08 C0     ...   STA &C008
99EF  48           H     PHA
99F0  8A           .     TXA
99F1  48           H     PHA
99F2  20 4D BD      M.   JSR &BD4D
99F5  85 B0        ..    STA &B0
99F7  A9 00        ..    LDA #&00
99F9  91 9C        ..    STA (&9C),Y
99FB  A9 C6        ..    LDA #&C6
99FD  20 E3 8E      ..   JSR &8EE3
9A00  C4 B0        ..    CPY &B0
9A02  F0 09        ..    BEQ &9A0D
9A04  E4 B0        ..    CPX &B0
9A06  D0 11        ..    BNE &9A19
9A08  48           H     PHA
9A09  A9 C6        ..    LDA #&C6
9A0B  D0 03        ..    BNE &9A10
9A0D  5A           Z     PHY
9A0E  A9 C7        ..    LDA #&C7
9A10  20 EC 8E      ..   JSR &8EEC
9A13  7A           z     PLY
9A14  A9 00        ..    LDA #&00
9A16  20 CE FF      ..   JSR osfind
9A19  68           h     PLA
9A1A  AA           .     TAX
9A1B  A0 0A        ..    LDY #&0A
9A1D  B9 9A 9A     ...   LDA &9A9A,Y
9A20  A8           .     TAY
9A21  B9 A6 9A     ...   LDA &9AA6,Y
9A24  9D 01 01     ...   STA &0101,X
9A27  F0 04        ..    BEQ &9A2D
9A29  E8           .     INX
9A2A  C8           .     INY
9A2B  D0 F4        ..    BNE &9A21
9A2D  86 B2        ..    STX &B2
9A2F  68           h     PLA
9A30  20 5E 9A      ^.   JSR &9A5E
9A33  A9 00        ..    LDA #&00
9A35  9D 02 01     ...   STA &0102,X
9A38  F0 AF        ..    BEQ &99E9
9A3A  A9 20        .     LDA #&20
9A3C  9D 01 01     ...   STA &0101,X
9A3F  E8           .     INX
9A40  86 B2        ..    STX &B2
9A42  A0 03        ..    LDY #&03
9A44  B1 9A        ..    LDA (&9A),Y
9A46  F0 0C        ..    BEQ &9A54
9A48  20 69 9A      i.   JSR &9A69
9A4B  A6 B2        ..    LDX &B2
9A4D  A9 2E        ..    LDA #&2E
9A4F  9D 01 01     ...   STA &0101,X
9A52  E6 B2        ..    INC &B2
9A54  A0 02        ..    LDY #&02
9A56  B1 9A        ..    LDA (&9A),Y
9A58  20 69 9A      i.   JSR &9A69
9A5B  A6 B2        ..    LDX &B2
9A5D  60           `     RTS
9A5E  A8           .     TAY
9A5F  A9 20        .     LDA #&20
9A61  A6 B2        ..    LDX &B2
9A63  9D 01 01     ...   STA &0101,X
9A66  E6 B2        ..    INC &B2
9A68  98           .     TYA
9A69  A8           .     TAY
9A6A  2C 69 97     ,i.   BIT &9769
9A6D  A9 64        .d    LDA #&64
9A6F  20 7A 9A      z.   JSR &9A7A
9A72  A9 0A        ..    LDA #&0A
9A74  20 7A 9A      z.   JSR &9A7A
9A77  A9 01        ..    LDA #&01
9A79  B8           .     CLV
9A7A  85 B3        ..    STA &B3
9A7C  98           .     TYA
9A7D  A2 2F        ./    LDX #&2F
9A7F  08           .     PHP
9A80  38           8     SEC
9A81  E8           .     INX
9A82  E5 B3        ..    SBC &B3
9A84  B0 FB        ..    BCS &9A81
9A86  65 B3        e.    ADC &B3
9A88  28           (     PLP
9A89  A8           .     TAY
9A8A  8A           .     TXA
9A8B  C9 30        .0    CMP #&30
9A8D  D0 02        ..    BNE &9A91
9A8F  70 08        p.    BCS &9A99
9A91  B8           .     CLV
9A92  A6 B2        ..    LDX &B2
9A94  9D 01 01     ...   STA &0101,X
9A97  E6 B2        ..    INC &B2
9A99  60           `     RTS
9A9A  00           .     BRK
9A9B  0D 18 21     ..!   ORA &2118
9A9E  2B            +     ...
9A9F  2B            +     ...
9AA0  2B            +     ...
9AA1  33            3     ...
9AA2  3F 56        ?V    BBR3 &9AFA
9AA4  65 71        eq    ADC &71
9AA6  A0 4C        .L    LDY #&4C
9AA8  69 6E        in    ADC #&6E
9AAA  65 20        e     ADC &20
9AAC  6A           j     ROR A
9AAD  61 6D        am    ADC (&6D,X)
9AAF  6D 65 64     med   ADC &6465
9AB2  00           .     BRK
9AB3  A1 4E        .N    LDA (&4E,X)
9AB5  65 74        et    ADC &74
9AB7  20 65 72      er   JSR &7265
9ABA  72 6F        ro    ADC (&6F)
9ABC  72 00        r.    ADC (&00)
9ABE  A2 53        .S    LDX #&53
9AC0  74 61        ta    STZ &61,X
9AC2  74 69        ti    STZ &69,X
9AC4  6F 6E        on    BBR6 &9B34
9AC6  00           .     BRK
9AC7  A3            .     ...
9AC8  4E 6F 20     No    LSR &206F
9ACB  63            c     ...
9ACC  6C 6F 63     loc   JMP (&636F)
9ACF  6B            k     ...
9AD0  00           .     BRK
9AD1  11 45        .E    ORA (&45),Y
9AD3  73            s     ...
9AD4  63            c     ...
9AD5  61 70        ap    ADC (&70,X)
9AD7  65 00        e.    ADC &00
9AD9  CB            .     ...
9ADA  42            B     ...
9ADB  61 64        ad    ADC (&64,X)
9ADD  20 6F 70      op   JSR &706F
9AE0  74 69        ti    STZ &69,X
9AE2  6F 6E        on    BBR6 &9B52
9AE4  00           .     BRK
9AE5  A5 4E        .N    LDA &4E
9AE7  6F 20        o     BBR6 &9B09
9AE9  72 65        re    ADC (&65)
9AEB  70 6C        pl    BCS &9B59
9AED  79 20 66     y f   ADC &6620,Y
9AF0  72 6F        ro    ADC (&6F)
9AF2  6D 20 73     m s   ADC &7320
9AF5  74 61        ta    STZ &61,X
9AF7  74 69        ti    STZ &69,X
9AF9  6F 6E        on    BBR6 &9B69
9AFB  00           .     BRK
9AFC  20 6E 6F      no   JSR &6F6E
9AFF  74 20        t     STZ &20,X
9B01  6C 69 73     lis   JMP (&7369)
9B04  74 65        te    STZ &65,X
9B06  6E 69 6E     nin   ROR &6E69
9B09  67 00        g.    RMB6 &00
9B0B  20 6F 6E      on   JSR &6E6F
9B0E  20 63 68      ch   JSR &6863
9B11  61 6E        an    ADC (&6E,X)
9B13  6E 65 6C     nel   ROR &6C65
9B16  00           .     BRK
9B17  20 6E 6F      no   JSR &6F6E
9B1A  74 20        t     STZ &20,X
9B1C  70 72        pr    BCS &9B90
9B1E  65 73        es    ADC &73
9B20  65 6E        en    ADC &6E
9B22  74 00        t.    STZ &00,X
9B24  A2 C0        ..    LDX #&C0
9B26  86 9A        ..    STX &9A
9B28  A2 00        ..    LDX #&00
9B2A  86 9B        ..    STX &9B
9B2C  AD 6D 0D     .m.   LDA &0D6D
9B2F  D0 02        ..    BNE &9B33
9B31  A9 FF        ..    LDA #&FF
9B33  A0 60        .`    LDY #&60
9B35  48           H     PHA
9B36  98           .     TYA
9B37  48           H     PHA
9B38  A2 00        ..    LDX #&00
9B3A  A1 9A        ..    LDA (&9A,X)
9B3C  81 9A        ..    STA (&9A,X)
9B3E  48           H     PHA
9B3F  20 B6 9B      ..   JSR &9BB6
9B42  0A           .     ASL A
9B43  10 2A        .*    BPL &9B6F
9B45  0A           .     ASL A
9B46  F0 23        .#    BEQ &9B6B
9B48  20 8F 98      ..   JSR &988F
9B4B  68           h     PLA
9B4C  AA           .     TAX
9B4D  68           h     PLA
9B4E  A8           .     TAY
9B4F  68           h     PLA
9B50  F0 0E        ..    BEQ &9B60
9B52  E9 01        ..    SBC #&01
9B54  48           H     PHA
9B55  98           .     TYA
9B56  48           H     PHA
9B57  8A           .     TXA
9B58  CA           .     DEX
9B59  D0 FD        ..    BNE &9B58
9B5B  88           .     DEY
9B5C  D0 FA        ..    BNE &9B58
9B5E  F0 DC        ..    BEQ &9B3C
9B60  CD 6D 0D     .m.   CMP &0D6D
9B63  D0 06        ..    BNE &9B6B
9B65  A9 80        ..    LDA #&80
9B67  85 98        ..    STA &98
9B69  D0 E7        ..    BNE &9B52
9B6B  AA           .     TAX
9B6C  4C 3B 99     L;.   JMP &993B
9B6F  68           h     PLA
9B70  68           h     PLA
9B71  68           h     PLA
9B72  4C E8 93     L..   JMP &93E8
9B75  88           .     DEY
9B76  00           .     BRK
9B77  FD FD 3A     ..:   SBC &3AFD,X
9B7A  0D FF FF     ...   ORA &FFFF
9B7D  3E 0D FF     >..   ROL &FF0D,X
9B80  FF A0        ..    BBS7 &9B22
9B82  C0 84        ..    CPY #&84
9B84  9A           .     TXS
9B85  A0 00        ..    LDY #&00
9B87  84 9B        ..    STY &9B
9B89  A0 0B        ..    LDY #&0B
9B8B  BE 75 9B     .u.   LDX &9B75,Y
9B8E  E0 FD        ..    CPX #&FD
9B90  F0 06        ..    BEQ &9B98
9B92  B1 9A        ..    LDA (&9A),Y
9B94  48           H     PHA
9B95  8A           .     TXA
9B96  91 9A        ..    STA (&9A),Y
9B98  88           .     DEY
9B99  10 F0        ..    BPL &9B8B
9B9B  AD 6F 0D     .o.   LDA &0D6F
9B9E  48           H     PHA
9B9F  98           .     TYA
9BA0  48           H     PHA
9BA1  A2 00        ..    LDX #&00
9BA3  A1 9A        ..    LDA (&9A,X)
9BA5  81 9A        ..    STA (&9A,X)
9BA7  48           H     PHA
9BA8  20 B6 9B      ..   JSR &9BB6
9BAB  0A           .     ASL A
9BAC  10 32        .2    BPL &9BE0
9BAE  0A           .     ASL A
9BAF  D0 1A        ..    BNE &9BCB
9BB1  A2 00        ..    LDX #&00
9BB3  4C 30 99     L0.   JMP &9930
.
9BB6  0E 60 0D     .`.   ASL &0D60
9BB9  90 FB        ..    BCC &9BB6
9BBB  A5 9A        ..    LDA &9A
9BBD  85 A0        ..    STA &A0                           ; LSB of frame
9BBF  A5 9B        ..    LDA &9B
9BC1  85 A1        ..    STA &A1                           ; MSB of frame
9BC3  20 4C 86      L.   JSR &864C
9BC6  A1 9A        ..    LDA (&9A,X)
9BC8  30 FC        0.    BMI &9BC6
9BCA  60           `     RTS
9BCB  68           h     PLA
9BCC  AA           .     TAX
9BCD  68           h     PLA
9BCE  A8           .     TAY
9BCF  68           h     PLA
9BD0  F0 DF        ..    BEQ &9BB1
9BD2  E9 01        ..    SBC #&01
9BD4  48           H     PHA
9BD5  98           .     TYA
9BD6  48           H     PHA
9BD7  8A           .     TXA
9BD8  CA           .     DEX
9BD9  D0 FD        ..    BNE &9BD8
9BDB  88           .     DEY
9BDC  D0 FA        ..    BNE &9BD8
9BDE  F0 C5        ..    BEQ &9BA5
9BE0  68           h     PLA
9BE1  68           h     PLA
9BE2  68           h     PLA
9BE3  A0 00        ..    LDY #&00
9BE5  BE 75 9B     .u.   LDX &9B75,Y
9BE8  E0 FD        ..    CPX #&FD
9BEA  F0 03        ..    BEQ &9BEF
9BEC  68           h     PLA
9BED  91 9A        ..    STA (&9A),Y
9BEF  C8           .     INY
9BF0  C0 0C        ..    CPY #&0C
9BF2  D0 F1        ..    BNE &9BE5
9BF4  60           `     RTS
9BF5  A0 01        ..    LDY #&01
9BF7  B1 BB        ..    LDA (&BB),Y
9BF9  99 F2 00     ...   STA &00F2,Y
9BFC  88           .     DEY
9BFD  10 F8        ..    BPL &9BF7
9BFF  C8           .     INY
9C00  A2 FF        ..    LDX #&FF
9C02  18           .     CLC
9C03  20 C2 FF      ..   JSR gsinit
9C06  F0 0B        ..    BEQ &9C13
9C08  20 C5 FF      ..   JSR gsread
9C0B  B0 06        ..    BCS &9C13
9C0D  E8           .     INX
9C0E  9D 30 C0     .0.   STA &C030,X
9C11  90 F5        ..    BCC &9C08
9C13  E8           .     INX
9C14  A9 0D        ..    LDA #&0D
9C16  9D 30 C0     .0.   STA &C030,X
9C19  A9 30        .0    LDA #&30
9C1B  85 BE        ..    STA &BE
9C1D  A9 C0        ..    LDA #&C0
9C1F  85 BF        ..    STA &BF
9C21  60           `     RTS
9C22  20 DE 93      ..   JSR &93DE
9C25  20 F5 9B      ..   JSR &9BF5
9C28  20 04 B3      ..   JSR &B304
9C2B  20 64 B2      d.   JSR &B264
9C2E  A5 BD        ..    LDA &BD
9C30  10 7E        .~    BPL &9CB0
9C32  C9 FF        ..    CMP #&FF
9C34  F0 03        ..    BEQ &9C39
9C36  4C DC 9F     L..   JMP &9FDC
9C39  20 D4 B2      ..   JSR &B2D4
9C3C  A0 02        ..    LDY #&02
9C3E  A9 92        ..    LDA #&92
9C40  85 98        ..    STA &98
9C42  8D 02 C1     ...   STA &C102
9C45  20 73 97      s.   JSR &9773
9C48  A0 06        ..    LDY #&06
9C4A  B1 BB        ..    LDA (&BB),Y
9C4C  D0 08        ..    BNE &9C56
9C4E  20 5F 9D      _.   JSR &9D5F
9C51  20 71 9D      q.   JSR &9D71
9C54  90 06        ..    BCC &9C5C
9C56  20 71 9D      q.   JSR &9D71
9C59  20 5F 9D      _.   JSR &9D5F
9C5C  A0 04        ..    LDY #&04
9C5E  B5 B0        ..    LDA &B0,X
9C60  95 C8        ..    STA &C8,X
9C62  7D 0D C1     }..   ADC &C10D,X
9C65  95 B4        ..    STA &B4,X
9C67  E8           .     INX
9C68  88           .     DEY
9C69  D0 F3        ..    BNE &9C5E
9C6B  38           8     SEC
9C6C  ED 10 C1     ...   SBC &C110
9C6F  85 B7        ..    STA &B7
9C71  20 82 9E      ..   JSR &9E82
9C74  20 85 9C      ..   JSR &9C85
9C77  A2 02        ..    LDX #&02
9C79  BD 10 C1     ...   LDA &C110,X
9C7C  9D 05 C1     ...   STA &C105,X
9C7F  CA           .     DEX
9C80  10 F7        ..    BPL &9C79
9C82  4C 0C 9D     L..   JMP &9D0C
9C85  20 ED 93      ..   JSR &93ED
9C88  F0 25        .%    BEQ &9CAF
9C8A  A9 92        ..    LDA #&92
9C8C  85 C1        ..    STA &C1
9C8E  A2 03        ..    LDX #&03
9C90  B5 C8        ..    LDA &C8,X
9C92  95 C4        ..    STA &C4,X
9C94  B5 B4        ..    LDA &B4,X
9C96  95 C8        ..    STA &C8,X
9C98  CA           .     DEX
9C99  10 F5        ..    BPL &9C90
9C9B  A9 7F        ..    LDA #&7F
9C9D  85 C0        ..    STA &C0
9C9F  20 BE 98      ..   JSR &98BE
9CA2  A0 03        ..    LDY #&03
9CA4  B9 C8 00     ...   LDA &00C8,Y
9CA7  59 B4 00     Y..   EOR &00B4,Y
9CAA  D0 E2        ..    BNE &9C8E
9CAC  88           .     DEY
9CAD  10 F5        ..    BPL &9CA4
9CAF  60           `     RTS
9CB0  F0 03        ..    BEQ &9CB5
9CB2  4C DC 9D     L..   JMP &9DDC
9CB5  A2 04        ..    LDX #&04
9CB7  A0 0E        ..    LDY #&0E
9CB9  38           8     SEC
9CBA  B1 BB        ..    LDA (&BB),Y
9CBC  99 A6 00     ...   STA &00A6,Y
9CBF  20 7E 9D      ~.   JSR &9D7E
9CC2  F1 BB        ..    SBC (&BB),Y
9CC4  99 03 C1     ...   STA &C103,Y
9CC7  48           H     PHA
9CC8  B1 BB        ..    LDA (&BB),Y
9CCA  99 A6 00     ...   STA &00A6,Y
9CCD  68           h     PLA
9CCE  91 BB        ..    STA (&BB),Y
9CD0  20 6B 9D      k.   JSR &9D6B
9CD3  CA           .     DEX
9CD4  D0 E4        ..    BNE &9CBA
9CD6  A0 09        ..    LDY #&09
9CD8  B1 BB        ..    LDA (&BB),Y
9CDA  99 03 C1     ...   STA &C103,Y
9CDD  88           .     DEY
9CDE  D0 F8        ..    BNE &9CD8
9CE0  A9 91        ..    LDA #&91
9CE2  85 98        ..    STA &98
9CE4  8D 02 C1     ...   STA &C102
9CE7  85 B8        ..    STA &B8
9CE9  A2 0B        ..    LDX #&0B
9CEB  20 D6 B2      ..   JSR &B2D6
9CEE  A0 01        ..    LDY #&01
9CF0  A5 BD        ..    LDA &BD
9CF2  C9 07        ..    CMP #&07
9CF4  08           .     PHP
9CF5  D0 02        ..    BNE &9CF9
9CF7  A0 1D        ..    LDY #&1D
9CF9  20 73 97      s.   JSR &9773
9CFC  20 82 9E      ..   JSR &9E82
9CFF  28           (     PLP
9D00  D0 04        ..    BNE &9D06
9D02  A2 00        ..    LDX #&00
9D04  F0 09        ..    BEQ &9D0F
9D06  AD 05 C1     ...   LDA &C105
9D09  20 87 9D      ..   JSR &9D87
9D0C  20 CD 97      ..   JSR &97CD
9D0F  8E 08 C1     ...   STX &C108
9D12  A0 0E        ..    LDY #&0E
9D14  AD 05 C1     ...   LDA &C105
9D17  20 BC 93      ..   JSR &93BC
9D1A  F0 03        ..    BEQ &9D1F
9D1C  B9 F7 C0     ...   LDA &C0F7,Y
9D1F  91 BB        ..    STA (&BB),Y
9D21  C8           .     INY
9D22  C0 12        ..    CPY #&12
9D24  D0 F6        ..    BNE &9D1C
9D26  AC 06 C0     ...   LDY &C006
9D29  F0 45        .E    BEQ &9D70
9D2B  A0 F4        ..    LDY #&F4
9D2D  B9 FF C1     ...   LDA &C1FF,Y
9D30  20 06 92      ..   JSR &9206
9D33  C8           .     INY
9D34  D0 F7        ..    BNE &9D2D
9D36  A0 05        ..    LDY #&05
9D38  20 4F 9D      O.   JSR &9D4F
9D3B  20 44 9D      D.   JSR &9D44
9D3E  20 04 92      ..   JSR &9204
9D41  4C DC 9F     L..   JMP &9FDC
9D44  A0 09        ..    LDY #&09
9D46  20 4F 9D      O.   JSR &9D4F
9D49  A0 0C        ..    LDY #&0C
9D4B  A2 03        ..    LDX #&03
9D4D  D0 02        ..    BNE &9D51
9D4F  A2 04        ..    LDX #&04
9D51  B1 BB        ..    LDA (&BB),Y
9D53  20 57 92      W.   JSR &9257
9D56  88           .     DEY
9D57  CA           .     DEX
9D58  D0 F7        ..    BNE &9D51
9D5A  A9 20        .     LDA #&20
9D5C  4C 06 92     L..   JMP &9206
9D5F  A0 05        ..    LDY #&05
9D61  B1 BB        ..    LDA (&BB),Y
9D63  99 AE 00     ...   STA &00AE,Y
9D66  88           .     DEY
9D67  C0 02        ..    CPY #&02
9D69  B0 F6        ..    BCS &9D61
9D6B  C8           .     INY
9D6C  C8           .     INY
9D6D  C8           .     INY
9D6E  C8           .     INY
9D6F  C8           .     INY
9D70  60           `     RTS
9D71  A0 0D        ..    LDY #&0D
9D73  8A           .     TXA
9D74  91 BB        ..    STA (&BB),Y
9D76  B9 02 C1     ...   LDA &C102,Y
9D79  88           .     DEY
9D7A  C0 02        ..    CPY #&02
9D7C  B0 F6        ..    BCS &9D74
9D7E  88           .     DEY
9D7F  88           .     DEY
9D80  88           .     DEY
9D81  88           .     DEY
9D82  60           `     RTS
9D83  68           h     PLA
9D84  A4 BC        ..    LDY &BC
9D86  60           `     RTS
9D87  48           H     PHA
9D88  20 ED 93      ..   JSR &93ED
9D8B  F0 F6        ..    BEQ &9D83
9D8D  A2 00        ..    LDX #&00
9D8F  A0 04        ..    LDY #&04
9D91  8E 08 C1     ...   STX &C108
9D94  8E 09 C1     ...   STX &C109
9D97  18           .     CLC
9D98  B5 B0        ..    LDA &B0,X
9D9A  95 C4        ..    STA &C4,X
9D9C  7D 06 C1     }..   ADC &C106,X
9D9F  95 C8        ..    STA &C8,X
9DA1  95 B0        ..    STA &B0,X
9DA3  E8           .     INX
9DA4  88           .     DEY
9DA5  D0 F1        ..    BNE &9D98
9DA7  B0 0D        ..    BCS &9DB6
9DA9  38           8     SEC
9DAA  B9 B0 00     ...   LDA &00B0,Y
9DAD  F9 B4 00     ...   SBC &00B4,Y
9DB0  C8           .     INY
9DB1  CA           .     DEX
9DB2  D0 F6        ..    BNE &9DAA
9DB4  90 09        ..    BCC &9DBF
9DB6  A2 03        ..    LDX #&03
9DB8  B5 B4        ..    LDA &B4,X
9DBA  95 C8        ..    STA &C8,X
9DBC  CA           .     DEX
9DBD  10 F9        ..    BPL &9DB8
9DBF  68           h     PLA
9DC0  48           H     PHA
9DC1  08           .     PHP
9DC2  85 C1        ..    STA &C1
9DC4  A9 80        ..    LDA #&80
9DC6  85 C0        ..    STA &C0
9DC8  20 24 9B      $.   JSR &9B24
9DCB  A5 B8        ..    LDA &B8
9DCD  20 3F 97      ?.   JSR &973F
9DD0  28           (     PLP
9DD1  B0 B0        ..    BCS &9D83
9DD3  A9 91        ..    LDA #&91
9DD5  85 C1        ..    STA &C1
9DD7  20 BE 98      ..   JSR &98BE
9DDA  D0 B1        ..    BNE &9D8D
9DDC  8D 05 C1     ...   STA &C105
9DDF  C9 07        ..    CMP #&07
9DE1  90 05        ..    BCC &9DE8
9DE3  D0 4F        .O    BNE &9E34
9DE5  4C B5 9C     L..   JMP &9CB5
9DE8  C9 06        ..    CMP #&06
9DEA  F0 3D        .=    BEQ &9E29
9DEC  C9 05        ..    CMP #&05
9DEE  F0 53        .S    BEQ &9E43
9DF0  C9 04        ..    CMP #&04
9DF2  F0 45        .E    BEQ &9E39
9DF4  C9 01        ..    CMP #&01
9DF6  F0 15        ..    BEQ &9E0D
9DF8  0A           .     ASL A
9DF9  0A           .     ASL A
9DFA  A8           .     TAY
9DFB  20 7F 9D      ..   JSR &9D7F
9DFE  A2 03        ..    LDX #&03
9E00  B1 BB        ..    LDA (&BB),Y
9E02  9D 06 C1     ...   STA &C106,X
9E05  88           .     DEY
9E06  CA           .     DEX
9E07  10 F7        ..    BPL &9E00
9E09  A2 05        ..    LDX #&05
9E0B  D0 15        ..    BNE &9E22
9E0D  20 B2 93      ..   JSR &93B2
9E10  8D 0E C1     ...   STA &C10E
9E13  A0 09        ..    LDY #&09
9E15  A2 08        ..    LDX #&08
9E17  B1 BB        ..    LDA (&BB),Y
9E19  9D 05 C1     ...   STA &C105,X
9E1C  88           .     DEY
9E1D  CA           .     DEX
9E1E  D0 F7        ..    BNE &9E17
9E20  A2 0A        ..    LDX #&0A
9E22  20 D6 B2      ..   JSR &B2D6
9E25  A0 13        ..    LDY #&13
9E27  D0 05        ..    BNE &9E2E
9E29  20 D4 B2      ..   JSR &B2D4
9E2C  A0 14        ..    LDY #&14
9E2E  2C 69 97     ,i.   BIT &9769
9E31  20 8B 97      ..   JSR &978B
9E34  B0 49        .I    BCS &9E7F
9E36  4C DC 9F     L..   JMP &9FDC
9E39  20 B2 93      ..   JSR &93B2
9E3C  8D 06 C1     ...   STA &C106
9E3F  A2 02        ..    LDX #&02
9E41  D0 DF        ..    BNE &9E22
9E43  A2 01        ..    LDX #&01
9E45  20 D6 B2      ..   JSR &B2D6
9E48  A0 12        ..    LDY #&12
9E4A  20 8A 97      ..   JSR &978A
9E4D  AD 11 C1     ...   LDA &C111
9E50  8E 11 C1     ...   STX &C111
9E53  8E 14 C1     ...   STX &C114
9E56  20 BC 93      ..   JSR &93BC
9E59  AE 05 C1     ...   LDX &C105
9E5C  F0 20        .     BEQ &9E7E
9E5E  A0 0E        ..    LDY #&0E
9E60  91 BB        ..    STA (&BB),Y
9E62  88           .     DEY
9E63  A2 0C        ..    LDX #&0C
9E65  BD 05 C1     ...   LDA &C105,X
9E68  91 BB        ..    STA (&BB),Y
9E6A  88           .     DEY
9E6B  CA           .     DEX
9E6C  D0 F7        ..    BNE &9E65
9E6E  E8           .     INX
9E6F  E8           .     INX
9E70  A0 11        ..    LDY #&11
9E72  BD 12 C1     ...   LDA &C112,X
9E75  91 BB        ..    STA (&BB),Y
9E77  88           .     DEY
9E78  CA           .     DEX
9E79  10 F7        ..    BPL &9E72
9E7B  AE 05 C1     ...   LDX &C105
9E7E  8A           .     TXA
9E7F  4C DE 9F     L..   JMP &9FDE
9E82  A0 00        ..    LDY #&00
9E84  AE 03 C1     ...   LDX &C103
9E87  D0 19        ..    BNE &9EA2
9E89  B1 BE        ..    LDA (&BE),Y
9E8B  C9 21        .!    CMP #&21
9E8D  90 06        ..    BCC &9E95
9E8F  99 F3 C2     ...   STA &C2F3,Y
9E92  C8           .     INY
9E93  D0 F4        ..    BNE &9E89
9E95  A9 20        .     LDA #&20
9E97  99 F3 C2     ...   STA &C2F3,Y
9E9A  C8           .     INY
9E9B  C0 0C        ..    CPY #&0C
9E9D  90 F6        ..    BCC &9E95
9E9F  60           `     RTS
9EA0  E8           .     INX
9EA1  C8           .     INY
9EA2  BD 05 C1     ...   LDA &C105,X
9EA5  99 F3 C2     ...   STA &C2F3,Y
9EA8  10 F6        ..    BPL &9EA0
9EAA  60           `     RTS
9EAB  20 A7 90      ..   JSR &90A7
9EAE  85 BD        ..    STA &BD
9EB0  20 E4 93      ..   JSR &93E4
9EB3  09 00        ..    ORA #&00
9EB5  10 2E        ..    BPL &9EE5
9EB7  0A           .     ASL A
9EB8  F0 03        ..    BEQ &9EBD
9EBA  4C D9 9F     L..   JMP &9FD9
9EBD  98           .     TYA
9EBE  C9 20        .     CMP #&20
9EC0  B0 03        ..    BCS &9EC5
9EC2  4C 47 B8     LG.   JMP &B847
9EC5  C9 30        .0    CMP #&30
9EC7  B0 F9        ..    BCS &9EC2
9EC9  20 6A BB      j.   JSR &BB6A
9ECC  98           .     TYA
9ECD  48           H     PHA
9ECE  AA           .     TAX
9ECF  A0 00        ..    LDY #&00
9ED1  84 BD        ..    STY &BD
9ED3  84 BC        ..    STY &BC
9ED5  BD 10 C2     ...   LDA &C210,X
9ED8  91 BB        ..    STA (&BB),Y
9EDA  20 EC BF      ..   JSR &BFEC                         ; X += 8
9EDD  C8           .     INY
9EDE  C0 04        ..    CPY #&04
9EE0  D0 F3        ..    BNE &9ED5
9EE2  68           h     PLA
9EE3  85 BC        ..    STA &BC
9EE5  C9 05        ..    CMP #&05
9EE7  B0 4D        .M    BCS &9F36
9EE9  C0 00        ..    CPY #&00
9EEB  D0 03        ..    BNE &9EF0
9EED  4C EA 9F     L..   JMP &9FEA
9EF0  48           H     PHA
9EF1  DA           .     PHX
9EF2  98           .     TYA
9EF3  48           H     PHA
9EF4  20 B7 B8      ..   JSR &B8B7
9EF7  68           h     PLA
9EF8  20 52 BD      R.   JSR &BD52
9EFB  BD 30 C2     .0.   LDA &C230,X
9EFE  8D 05 C1     ...   STA &C105
9F01  FA           .     PLX
9F02  68           h     PLA
9F03  4A           J     LSR A
9F04  F0 4F        .O    BEQ &9F55
9F06  08           .     PHP
9F07  48           H     PHA
9F08  A6 BB        ..    LDX &BB
9F0A  A4 BC        ..    LDY &BC
9F0C  20 6A BB      j.   JSR &BB6A
9F0F  B9 10 C2     ...   LDA &C210,Y
9F12  8D 05 C1     ...   STA &C105
9F15  68           h     PLA
9F16  8D 06 C1     ...   STA &C106
9F19  28           (     PLP
9F1A  98           .     TYA
9F1B  48           H     PHA
9F1C  90 1B        ..    BCC &9F39
9F1E  A0 03        ..    LDY #&03
9F20  B5 03        ..    LDA &03,X
9F22  99 07 C1     ...   STA &C107,Y
9F25  CA           .     DEX
9F26  88           .     DEY
9F27  10 F7        ..    BPL &9F20
9F29  A0 0D        ..    LDY #&0D
9F2B  A2 05        ..    LDX #&05
9F2D  20 8A 97      ..   JSR &978A
9F30  86 BD        ..    STX &BD
9F32  68           h     PLA
9F33  20 FE 93      ..   JSR &93FE
9F36  4C DC 9F     L..   JMP &9FDC
9F39  A0 0C        ..    LDY #&0C
9F3B  A2 02        ..    LDX #&02
9F3D  20 8A 97      ..   JSR &978A
9F40  85 BD        ..    STA &BD
9F42  A6 BB        ..    LDX &BB
9F44  A0 02        ..    LDY #&02
9F46  95 03        ..    STA &03,X
9F48  B9 05 C1     ...   LDA &C105,Y
9F4B  95 02        ..    STA &02,X
9F4D  CA           .     DEX
9F4E  88           .     DEY
9F4F  10 F7        ..    BPL &9F48
9F51  68           h     PLA
9F52  4C DC 9F     L..   JMP &9FDC
9F55  B0 20        .     BCS &9F77
9F57  A5 BC        ..    LDA &BC
9F59  20 30 B8      0.   JSR &B830
9F5C  A4 BB        ..    LDY &BB
9F5E  BD 00 C2     ...   LDA &C200,X
9F61  99 00 00     ...   STA &0000,Y
9F64  BD 10 C2     ...   LDA &C210,X
9F67  99 01 00     ...   STA &0001,Y
9F6A  BD 20 C2     . .   LDA &C220,X
9F6D  99 02 00     ...   STA &0002,Y
9F70  A9 00        ..    LDA #&00
9F72  99 03 00     ...   STA &0003,Y
9F75  F0 65        .e    BEQ &9FDC
9F77  8D 06 C1     ...   STA &C106
9F7A  8A           .     TXA
9F7B  48           H     PHA
9F7C  A0 03        ..    LDY #&03
9F7E  B5 03        ..    LDA &03,X
9F80  99 07 C1     ...   STA &C107,Y
9F83  CA           .     DEX
9F84  88           .     DEY
9F85  10 F7        ..    BPL &9F7E
9F87  A5 BC        ..    LDA &BC
9F89  20 30 B8      0.   JSR &B830
9F8C  AD 0A C1     ...   LDA &C10A
9F8F  D0 20        .     BNE &9FB1
9F91  BD 20 C2     . .   LDA &C220,X
9F94  CD 09 C1     ...   CMP &C109
9F97  90 18        ..    BCC &9FB1
9F99  D0 12        ..    BNE &9FAD
9F9B  BD 10 C2     ...   LDA &C210,X
9F9E  CD 08 C1     ...   CMP &C108
9FA1  90 0E        ..    BCC &9FB1
9FA3  D0 08        ..    BNE &9FAD
9FA5  BD 00 C2     ...   LDA &C200,X
9FA8  CD 07 C1     ...   CMP &C107
9FAB  90 04        ..    BCC &9FB1
9FAD  A2 00        ..    LDX #&00
9FAF  F0 07        ..    BEQ &9FB8
9FB1  A0 0D        ..    LDY #&0D
9FB3  A2 05        ..    LDX #&05
9FB5  20 8A 97      ..   JSR &978A
9FB8  86 BD        ..    STX &BD
9FBA  68           h     PLA
9FBB  A8           .     TAY
9FBC  A5 BC        ..    LDA &BC
9FBE  20 14 94      ..   JSR &9414
9FC1  20 30 B8      0.   JSR &B830
9FC4  B9 00 00     ...   LDA &0000,Y
9FC7  9D 00 C2     ...   STA &C200,X
9FCA  B9 01 00     ...   LDA &0001,Y
9FCD  9D 10 C2     ...   STA &C210,X
9FD0  B9 02 00     ...   LDA &0002,Y
9FD3  9D 20 C2     . .   STA &C220,X
9FD6  4C DC 9F     L..   JMP &9FDC
9FD9  20 6A BB      j.   JSR &BB6A
9FDC  A5 BD        ..    LDA &BD
9FDE  48           H     PHA
9FDF  A9 00        ..    LDA #&00
9FE1  20 52 BD      R.   JSR &BD52
9FE4  68           h     PLA
9FE5  A6 BB        ..    LDX &BB
9FE7  A4 BC        ..    LDY &BC
9FE9  60           `     RTS
9FEA  C9 02        ..    CMP #&02
9FEC  B0 07        ..    BCS &9FF5
9FEE  A8           .     TAY
9FEF  D0 04        ..    BNE &9FF5
9FF1  A9 05        ..    LDA #&05
9FF3  D0 E9        ..    BNE &9FDE
9FF5  F0 02        ..    BEQ &9FF9
9FF7  A9 00        ..    LDA #&00
9FF9  4A           J     LSR A
9FFA  10 E2        ..    BPL &9FDE
9FFC  29 3F        )?    AND #&3F
9FFE  D0 F7        ..    BNE &9FF7
A000  8A           .     TXA
A001  20 07 B9      ..   JSR &B907
A004  49 80        I.    EOR #&80
A006  0A           .     ASL A
A007  8D 05 C1     ...   STA &C105
A00A  2A           *     ROL A
A00B  8D 06 C1     ...   STA &C106
A00E  20 5F B2      _.   JSR &B25F
A011  A2 02        ..    LDX #&02
A013  20 D6 B2      ..   JSR &B2D6
A016  A0 06        ..    LDY #&06
A018  2C 69 97     ,i.   BIT &9769
A01B  38           8     SEC
A01C  66 98        f.    ROR &98
A01E  20 8B 97      ..   JSR &978B
A021  B0 6D        .m    BCS &A090
A023  A9 FF        ..    LDA #&FF
A025  20 52 BD      R.   JSR &BD52
A028  AD 05 C1     ...   LDA &C105
A02B  48           H     PHA
A02C  A9 04        ..    LDA #&04
A02E  8D 05 C1     ...   STA &C105
A031  A2 01        ..    LDX #&01
A033  BD 06 C1     ...   LDA &C106,X
A036  9D 05 C1     ...   STA &C105,X
A039  E8           .     INX
A03A  C9 0D        ..    CMP #&0D
A03C  D0 F5        ..    BNE &A033
A03E  A0 12        ..    LDY #&12
A040  20 8A 97      ..   JSR &978A
A043  A5 BD        ..    LDA &BD
A045  29 BF        ).    AND #&BF
A047  0D 05 C1     ...   ORA &C105
A04A  09 01        ..    ORA #&01
A04C  A8           .     TAY
A04D  29 02        ).    AND #&02
A04F  F0 23        .#    BEQ &A074
A051  68           h     PLA
A052  20 D3 B8      ..   JSR &B8D3
A055  D0 33        .3    BNE &A08A
A057  20 A7 90      ..   JSR &90A7
A05A  20 DE 93      ..   JSR &93DE
A05D  AA           .     TAX
A05E  20 04 B3      ..   JSR &B304
A061  8A           .     TXA
A062  F0 2F        ./    BEQ &A093
A064  20 A8 B3      ..   JSR &B3A8
A067  AC 70 C2     .p.   LDY &C270
A06A  F0 90        ..    BEQ &9FFC
A06C  98           .     TYA
A06D  A2 00        ..    LDX #&00
A06F  8E 70 C2     .p.   STX &C270
A072  F0 1C        ..    BEQ &A090
A074  AD 06 C1     ...   LDA &C106
A077  6A           j     ROR A
A078  B0 0C        ..    BCS &A086
A07A  6A           j     ROR A
A07B  90 09        ..    BCC &A086
A07D  2C 07 C1     ,..   BIT &C107
A080  10 04        ..    BPL &A086
A082  98           .     TYA
A083  09 20        .     ORA #&20
A085  A8           .     TAY
A086  68           h     PLA
A087  20 D3 B8      ..   JSR &B8D3
A08A  AA           .     TAX
A08B  98           .     TYA
A08C  9D 40 C2     .@.   STA &C240,X
A08F  8A           .     TXA
A090  4C DE 9F     L..   JMP &9FDE
A093  20 6A BB      j.   JSR &BB6A
A096  98           .     TYA
A097  D0 13        ..    BNE &A0AC
A099  A5 BB        ..    LDA &BB
A09B  48           H     PHA
A09C  A9 77        .w    LDA #&77
A09E  20 F4 FF      ..   JSR osbyte
A0A1  68           h     PLA
A0A2  85 BB        ..    STA &BB
A0A4  A9 00        ..    LDA #&00
A0A6  85 BD        ..    STA &BD
A0A8  85 BC        ..    STA &BC
A0AA  F0 06        ..    BEQ &A0B2
A0AC  20 3F B8      ?.   JSR &B83F
A0AF  BD 30 C2     .0.   LDA &C230,X
A0B2  8D 05 C1     ...   STA &C105
A0B5  A2 01        ..    LDX #&01
A0B7  A0 07        ..    LDY #&07
A0B9  20 8A 97      ..   JSR &978A
A0BC  A4 BC        ..    LDY &BC
A0BE  D0 07        ..    BNE &A0C7
A0C0  B8           .     CLV
A0C1  20 2E B9      ..   JSR &B92E
A0C4  4C DC 9F     L..   JMP &9FDC
A0C7  A9 00        ..    LDA #&00
A0C9  99 10 C2     ...   STA &C210,Y
A0CC  99 40 C2     .@.   STA &C240,Y
A0CF  F0 F3        ..    BEQ &A0C4
A0D1  F0 0B        ..    BEQ &A0DE
A0D3  E0 04        ..    CPX #&04
A0D5  D0 04        ..    BNE &A0DB
A0D7  C0 04        ..    CPY #&04
A0D9  90 0D        ..    BCC &A0E8
A0DB  CA           .     DEX
A0DC  D0 19        ..    BNE &A0F7
A0DE  8C 06 C0     ...   STY &C006
A0E1  90 E1        ..    BCC &A0C4
A0E3  A9 07        ..    LDA #&07
A0E5  4C 3D 99     L=.   JMP &993D
A0E8  8C 05 C1     ...   STY &C105
A0EB  A0 16        ..    LDY #&16
A0ED  20 8A 97      ..   JSR &978A
A0F0  A4 BC        ..    LDY &BC
A0F2  8C 05 C0     ...   STY &C005
A0F5  10 CD        ..    BPL &A0C4
A0F7  E0 08        ..    CPX #&08
A0F9  B0 E8        ..    BCS &A0E3
A0FB  E0 04        ..    CPX #&04
A0FD  F0 04        ..    BEQ &A103
A0FF  C0 04        ..    CPY #&04
A101  90 04        ..    BCC &A107
A103  C0 02        ..    CPY #&02
A105  B0 DC        ..    BCS &A0E3
A107  5A           Z     PHY
A108  DA           .     PHX
A109  A2 11        ..    LDX #&11
A10B  20 B4 8E      ..   JSR &8EB4
A10E  FA           .     PLX
A10F  98           .     TYA
A110  3D 2B A1     =+.   ORA &A12B,X
A113  7A           z     PLY
A114  48           H     PHA
A115  BD 27 A1     .'.   LDA &A127,X
A118  AA           .     TAX
A119  98           .     TYA
A11A  0A           .     ASL A
A11B  CA           .     DEX
A11C  D0 FC        ..    BNE &A11A
A11E  85 B0        ..    STA &B0
A120  68           h     PLA
A121  05 B0        ..    ORA &B0
A123  A8           .     TAY
A124  A2 11        ..    LDX #&11
A126  20 13 96      ..   JSR &9613
A129  80 99        ..    BRA &A0C4
A12B  01 02        ..    ORA (&02,X)
A12D  04 06        ..    TSB &06
A12F  FD F3 CF     ...   SBC &CFF3,X
A132  3F 20        ?     BBR3 &A154
A134  A7 90        ..    SMB2 &90
A136  48           H     PHA
A137  A5 BC        ..    LDA &BC
A139  48           H     PHA
A13A  8E C9 C2     ...   STX &C2C9
A13D  20 01 BB      ..   JSR &BB01
A140  F0 0C        ..    BEQ &A14E
A142  B9 00 C2     ...   LDA &C200,Y
A145  DD 98 C2     ...   CMP &C298,X
A148  90 04        ..    BCC &A14E
A14A  A2 FF        ..    LDX #&FF
A14C  30 02        0.    BMI &A150
A14E  A2 00        ..    LDX #&00
A150  68           h     PLA
A151  A8           .     TAY
A152  68           h     PLA
A153  60           `     RTS
A154  A0 09        ..    LDY #&09
A156  20 5B A1      [.   JSR &A15B
A159  A0 01        ..    LDY #&01
A15B  18           .     CLC
A15C  A2 FC        ..    LDX #&FC
A15E  B1 BB        ..    LDA (&BB),Y
A160  24 B2        $.    BIT &B2
A162  30 06        0.    BMI &A16A
A164  7D 0A C0     }..   ADC &C00A,X
A167  4C 6D A1     Lm.   JMP &A16D
A16A  FD 0A C0     ...   SBC &C00A,X
A16D  91 BB        ..    STA (&BB),Y
A16F  C8           .     INY
A170  E8           .     INX
A171  D0 EB        ..    BNE &A15E
A173  60           `     RTS
A174  20 A7 90      ..   JSR &90A7
A177  20 DE 93      ..   JSR &93DE
A17A  48           H     PHA
A17B  20 04 B3      ..   JSR &B304
A17E  68           h     PLA
A17F  AA           .     TAX
A180  F0 05        ..    BEQ &A187
A182  CA           .     DEX
A183  E0 08        ..    CPX #&08
A185  90 03        ..    BCC &A18A
A187  4C DC 9F     L..   JMP &9FDC
A18A  8A           .     TXA
A18B  A0 00        ..    LDY #&00
A18D  48           H     PHA
A18E  C9 04        ..    CMP #&04
A190  90 03        ..    BCC &A195
A192  4C B5 A2     L..   JMP &A2B5
A195  B1 BB        ..    LDA (&BB),Y
A197  48           H     PHA
A198  20 B7 B8      ..   JSR &B8B7
A19B  7A           z     PLY
A19C  20 6A BB      j.   JSR &BB6A
A19F  68           h     PLA
A1A0  20 FD A1      ..   JSR &A1FD
A1A3  08           .     PHP
A1A4  A0 00        ..    LDY #&00
A1A6  B1 BB        ..    LDA (&BB),Y
A1A8  B0 05        ..    BCS &A1AF
A1AA  20 14 94      ..   JSR &9414
A1AD  10 03        ..    BPL &A1B2
A1AF  20 FE 93      ..   JSR &93FE
A1B2  8C 06 C1     ...   STY &C106
A1B5  20 F6 A1      ..   JSR &A1F6
A1B8  8D 05 C1     ...   STA &C105
A1BB  A0 0C        ..    LDY #&0C
A1BD  A2 02        ..    LDX #&02
A1BF  20 8A 97      ..   JSR &978A
A1C2  20 F2 A1      ..   JSR &A1F2
A1C5  A0 09        ..    LDY #&09
A1C7  AD 05 C1     ...   LDA &C105
A1CA  9D 00 C2     ...   STA &C200,X
A1CD  91 BB        ..    STA (&BB),Y
A1CF  C8           .     INY
A1D0  AD 06 C1     ...   LDA &C106
A1D3  9D 10 C2     ...   STA &C210,X
A1D6  91 BB        ..    STA (&BB),Y
A1D8  C8           .     INY
A1D9  AD 07 C1     ...   LDA &C107
A1DC  9D 20 C2     . .   STA &C220,X
A1DF  91 BB        ..    STA (&BB),Y
A1E1  A9 00        ..    LDA #&00
A1E3  C8           .     INY
A1E4  91 BB        ..    STA (&BB),Y
A1E6  28           (     PLP
A1E7  90 04        ..    BCC &A1ED
A1E9  A5 BD        ..    LDA &BD
A1EB  C9 03        ..    CMP #&03
A1ED  A9 00        ..    LDA #&00
A1EF  4C DE 9F     L..   JMP &9FDE
A1F2  A0 00        ..    LDY #&00
A1F4  B1 BB        ..    LDA (&BB),Y
A1F6  20 72 B8      r.   JSR &B872
A1F9  BD 30 C2     .0.   LDA &C230,X
A1FC  60           `     RTS
A1FD  48           H     PHA
A1FE  20 F2 A1      ..   JSR &A1F2
A201  8D 05 C1     ...   STA &C105
A204  DA           .     PHX
A205  A0 0B        ..    LDY #&0B
A207  A2 06        ..    LDX #&06
A209  B1 BB        ..    LDA (&BB),Y
A20B  9D 06 C1     ...   STA &C106,X
A20E  88           .     DEY
A20F  C0 08        ..    CPY #&08
A211  D0 01        ..    BNE &A214
A213  88           .     DEY
A214  CA           .     DEX
A215  D0 F2        ..    BNE &A209
A217  7A           z     PLY
A218  68           h     PLA
A219  4A           J     LSR A
A21A  48           H     PHA
A21B  90 12        ..    BCC &A22F
A21D  B9 00 C2     ...   LDA &C200,Y
A220  8D 0A C1     ...   STA &C10A
A223  B9 10 C2     ...   LDA &C210,Y
A226  8D 0B C1     ...   STA &C10B
A229  B9 20 C2     . .   LDA &C220,Y
A22C  8D 0C C1     ...   STA &C10C
A22F  8E 06 C1     ...   STX &C106
A232  A0 0B        ..    LDY #&0B
A234  A2 91        ..    LDX #&91
A236  68           h     PLA
A237  48           H     PHA
A238  F0 03        ..    BEQ &A23D
A23A  A2 92        ..    LDX #&92
A23C  88           .     DEY
A23D  8E 02 C1     ...   STX &C102
A240  86 B8        ..    STX &B8
A242  A2 08        ..    LDX #&08
A244  AD 05 C1     ...   LDA &C105
A247  20 6F 97      o.   JSR &976F
A24A  A2 00        ..    LDX #&00
A24C  A1 BB        ..    LDA (&BB,X)
A24E  AA           .     TAX
A24F  BD 40 C2     .@.   LDA &C240,X
A252  49 01        I.    EOR #&01
A254  9D 40 C2     .@.   STA &C240,X
A257  18           .     CLC
A258  A2 04        ..    LDX #&04
A25A  B1 BB        ..    LDA (&BB),Y
A25C  99 AF 00     ...   STA &00AF,Y
A25F  99 C7 00     ...   STA &00C7,Y
A262  20 6C 9D      l.   JSR &9D6C
A265  71 BB        q.    ADC (&BB),Y
A267  99 AF 00     ...   STA &00AF,Y
A26A  20 7F 9D      ..   JSR &9D7F
A26D  CA           .     DEX
A26E  D0 EA        ..    BNE &A25A
A270  E8           .     INX
A271  BD 03 C1     ...   LDA &C103,X
A274  9D 06 C1     ...   STA &C106,X
A277  CA           .     DEX
A278  10 F7        ..    BPL &A271
A27A  68           h     PLA
A27B  D0 08        ..    BNE &A285
A27D  AD 02 C1     ...   LDA &C102
A280  20 87 9D      ..   JSR &9D87
A283  B0 03        ..    BCS &A288
A285  20 85 9C      ..   JSR &9C85
A288  20 9A A2      ..   JSR &A29A
A28B  86 B2        ..    STX &B2
A28D  20 54 A1      T.   JSR &A154
A290  C6 B2        ..    DEC &B2
A292  38           8     SEC
A293  20 5C A1      \.   JSR &A15C
A296  0E 05 C1     ...   ASL &C105
A299  60           `     RTS
A29A  08           .     PHP
A29B  20 CD 97      ..   JSR &97CD
A29E  28           (     PLP
A29F  60           `     RTS
A2A0  A0 15        ..    LDY #&15
A2A2  20 8A 97      ..   JSR &978A
A2A5  AD 05 C0     ...   LDA &C005
A2A8  8D 16 C1     ...   STA &C116
A2AB  86 B0        ..    STX &B0
A2AD  86 B1        ..    STX &B1
A2AF  A9 12        ..    LDA #&12
A2B1  85 B2        ..    STA &B2
A2B3  D0 4E        .N    BNE &A303
A2B5  A0 04        ..    LDY #&04
A2B7  AD 63 0D     .c.   LDA &0D63
A2BA  F0 07        ..    BEQ &A2C3
A2BC  D1 BB        ..    CMP (&BB),Y
A2BE  D0 03        ..    BNE &A2C3
A2C0  88           .     DEY
A2C1  F1 BB        ..    SBC (&BB),Y
A2C3  85 A9        ..    STA &A9
A2C5  B1 BB        ..    LDA (&BB),Y
A2C7  99 BD 00     ...   STA &00BD,Y
A2CA  88           .     DEY
A2CB  D0 F8        ..    BNE &A2C5
A2CD  68           h     PLA
A2CE  29 03        ).    AND #&03
A2D0  F0 CE        ..    BEQ &A2A0
A2D2  4A           J     LSR A
A2D3  F0 02        ..    BEQ &A2D7
A2D5  B0 6B        .k    BCS &A342
A2D7  A8           .     TAY
A2D8  B9 03 C0     ...   LDA &C003,Y
A2DB  8D 03 C1     ...   STA &C103
A2DE  AD 04 C0     ...   LDA &C004
A2E1  8D 04 C1     ...   STA &C104
A2E4  AD 02 C0     ...   LDA &C002
A2E7  8D 02 C1     ...   STA &C102
A2EA  A2 12        ..    LDX #&12
A2EC  8E 01 C1     ...   STX &C101
A2EF  A9 0D        ..    LDA #&0D
A2F1  8D 06 C1     ...   STA &C106
A2F4  85 B2        ..    STA &B2
A2F6  4A           J     LSR A
A2F7  8D 05 C1     ...   STA &C105
A2FA  18           .     CLC
A2FB  20 B7 97      ..   JSR &97B7
A2FE  86 B1        ..    STX &B1
A300  E8           .     INX
A301  86 B0        ..    STX &B0
A303  A5 A9        ..    LDA &A9
A305  D0 11        ..    BNE &A318
A307  A6 B0        ..    LDX &B0
A309  A4 B1        ..    LDY &B1
A30B  BD 05 C1     ...   LDA &C105,X
A30E  91 BE        ..    STA (&BE),Y
A310  E8           .     INX
A311  C8           .     INY
A312  C6 B2        ..    DEC &B2
A314  D0 F5        ..    BNE &A30B
A316  F0 27        .'    BEQ &A33F
A318  20 A6 A3      ..   JSR &A3A6
A31B  A9 01        ..    LDA #&01
A31D  A6 BB        ..    LDX &BB
A31F  A4 BC        ..    LDY &BC
A321  E8           .     INX
A322  D0 01        ..    BNE &A325
A324  C8           .     INY
A325  20 06 04      ..   JSR tubecontrol
A328  A6 B0        ..    LDX &B0
A32A  BD 05 C1     ...   LDA &C105,X
A32D  8D E5 FE     ...   STA tubedat
A330  E8           .     INX
A331  A0 06        ..    LDY #&06
A333  88           .     DEY
A334  D0 FD        ..    BNE &A333
A336  C6 B2        ..    DEC &B2
A338  D0 F0        ..    BNE &A32A
A33A  A9 83        ..    LDA #&83                 ; We'll use ID 3 for releasing the tube
A33C  20 06 04      ..   JSR tubecontrol          ; Release the TUBE
A33F  4C F7 9F     L..   JMP &9FF7
A342  A0 09        ..    LDY #&09
A344  B1 BB        ..    LDA (&BB),Y
A346  8D 06 C1     ...   STA &C106
A349  A0 05        ..    LDY #&05
A34B  B1 BB        ..    LDA (&BB),Y
A34D  8D 07 C1     ...   STA &C107
A350  A2 0D        ..    LDX #&0D
A352  8E 08 C1     ...   STX &C108
A355  A0 02        ..    LDY #&02
A357  84 B0        ..    STY &B0
A359  8C 05 C1     ...   STY &C105
A35C  C8           .     INY
A35D  20 8A 97      ..   JSR &978A
A360  86 B1        ..    STX &B1
A362  AD 06 C1     ...   LDA &C106
A365  81 BB        ..    STA (&BB,X)
A367  AD 05 C1     ...   LDA &C105
A36A  A0 09        ..    LDY #&09
A36C  71 BB        q.    ADC (&BB),Y
A36E  91 BB        ..    STA (&BB),Y
A370  A5 C8        ..    LDA &C8
A372  E9 07        ..    SBC #&07
A374  8D 06 C1     ...   STA &C106
A377  85 B2        ..    STA &B2
A379  F0 03        ..    BEQ &A37E
A37B  20 03 A3      ..   JSR &A303
A37E  A2 02        ..    LDX #&02
A380  9D 07 C1     ...   STA &C107,X
A383  CA           .     DEX
A384  10 FA        ..    BPL &A380
A386  20 59 A1      Y.   JSR &A159
A389  38           8     SEC
A38A  C6 B2        ..    DEC &B2
A38C  AD 05 C1     ...   LDA &C105
A38F  8D 06 C1     ...   STA &C106
A392  20 5C A1      \.   JSR &A15C
A395  A2 03        ..    LDX #&03
A397  A0 05        ..    LDY #&05
A399  38           8     SEC
A39A  B1 BB        ..    LDA (&BB),Y
A39C  D0 05        ..    BNE &A3A3
A39E  C8           .     INY
A39F  CA           .     DEX
A3A0  10 F8        ..    BPL &A39A
A3A2  18           .     CLC
A3A3  4C 3F A3     L?.   JMP &A33F

; -----------------------------------------------------------------------------
; Claim the TUBE
; -----------------------------------------------------------------------------
.claimtube
A3A6  A9 C3        ..    LDA #&C3                 ; We'll use ID 3 for claiming the tube
A3A8  20 06 04      ..   JSR tubecontrol
A3AB  90 F9        ..    BCC claimtube
A3AD  60           `     RTS

; -----------------------------------------------------------------------------
; *FS handler
; -----------------------------------------------------------------------------
.fs
A3AE  AD 00 C0     ...   LDA &C000
A3B1  85 B5        ..    STA &B5
A3B3  AD 01 C0     ...   LDA &C001
A3B6  85 B6        ..    STA &B6
A3B8  B1 BE        ..    LDA (&BE),Y
A3BA  C9 0D        ..    CMP #&0D
A3BC  F0 10        ..    BEQ &A3CE
A3BE  20 DA A3      ..   JSR &A3DA
A3C1  A9 01        ..    LDA #&01                          ; Function code &01: Write file server number
A3C3  85 B4        ..    STA &B4
A3C5  A9 13        ..    LDA #&13                          ; OSWORD &13: Read/write station information
A3C7  A2 B4        ..    LDX #&B4
A3C9  A0 00        ..    LDY #&00
A3CB  4C F1 FF     L..   JMP osword
.
A3CE  20 C0 B4      ..   JSR &B4C0
A3D1  2C 69 97     ,i.   BIT &9769
A3D4  20 93 B5      ..   JSR &B593
A3D7  4C E7 FF     L..   JMP osnewl
.
A3DA  DA           .     PHX
A3DB  A9 00        ..    LDA #&00
A3DD  85 B4        ..    STA &B4
A3DF  20 BD 92      ..   JSR &92BD
A3E2  B0 13        ..    BCS &A3F7
A3E4  85 B7        ..    STA &B7
A3E6  5A           Z     PHY
A3E7  20 0B AC      ..   JSR &AC0B
A3EA  45 B2        E.    EOR &B2
A3EC  F0 02        ..    BEQ &A3F0
A3EE  A5 B2        ..    LDA &B2
A3F0  85 B6        ..    STA &B6
A3F2  7A           z     PLY
A3F3  C8           .     INY
A3F4  20 BD 92      ..   JSR &92BD
A3F7  F0 02        ..    BEQ &A3FB
A3F9  85 B5        ..    STA &B5
A3FB  FA           .     PLX
A3FC  60           `     RTS
A3FD  A5 F0        ..    LDA &F0
A3FF  0A           .     ASL A
A400  0A           .     ASL A
A401  48           H     PHA
A402  0A           .     ASL A
A403  BA           .     TSX
A404  08           .     PHP
A405  7D 01 01     }..   ADC &0101,X
A408  6A           j     ROR A
A409  28           (     PLP
A40A  0A           .     ASL A
A40B  A8           .     TAY
A40C  68           h     PLA
A40D  C9 48        .H    CMP #&48
A40F  90 03        ..    BCC &A414
A411  A0 00        ..    LDY #&00
A413  98           .     TYA
A414  60           `     RTS
A415  A0 6F        .o    LDY #&6F
A417  B1 9C        ..    LDA (&9C),Y
A419  90 0D        ..    BCC &A428
A41B  20 FD A3      ..   JSR &A3FD
A41E  B0 06        ..    BCS &A426
A420  B1 9E        ..    LDA (&9E),Y
A422  C9 3F        .?    CMP #&3F
A424  D0 02        ..    BNE &A428
A426  A9 00        ..    LDA #&00
A428  85 F0        ..    STA &F0
A42A  60           `     RTS
A42B  20 FD A3      ..   JSR &A3FD
A42E  90 0A        ..    BCC &A43A
A430  6E 6C 0D     nl.   ROR &0D6C
A433  A5 F0        ..    LDA &F0
A435  2A           *     ROL A
A436  2E 6C 0D     .l.   ROL &0D6C
A439  60           `     RTS
A43A  6E 61 0D     na.   ROR &0D61
A43D  A9 3F        .?    LDA #&3F
A43F  91 9E        ..    STA (&9E),Y
A441  2E 61 0D     .a.   ROL &0D61
A444  60           `     RTS
A445  20 DA 93      ..   JSR &93DA
A448  A0 FF        ..    LDY #&FF
A44A  84 BA        ..    STY &BA
A44C  84 98        ..    STY &98
A44E  C8           .     INY
A44F  A2 35        .5    LDX #&35
A451  20 71 A4      q.   JSR &A471
A454  B0 0E        ..    BCS &A464
A456  50 0C        P.    BVC &A464
A458  A9 DC        ..    LDA #&DC
A45A  20 C3 99      ..   JSR &99C3
A45D  53            S     ...
A45E  79 6E 74     ynt   ADC &746E,Y
A461  61 78        ax    ADC (&78,X)
A463  00           .     BRK
A464  A9 00        ..    LDA #&00
A466  85 A9        ..    STA &A9
A468  BD 84 A7     ...   LDA &A784,X
A46B  48           H     PHA
A46C  BD 83 A7     ...   LDA &A783,X
A46F  48           H     PHA
A470  60           `     RTS
A471  98           .     TYA
A472  48           H     PHA
A473  68           h     PLA
A474  48           H     PHA
A475  A8           .     TAY
A476  BD 82 A7     ...   LDA &A782,X
A479  30 5F        0_    BMI &A4DA
A47B  BD 82 A7     ...   LDA &A782,X
A47E  30 1B        0.    BMI &A49B
A480  51 BE        Q.    EOR (&BE),Y
A482  29 DF        ).    AND #&DF
A484  D0 04        ..    BNE &A48A
A486  C8           .     INY
A487  E8           .     INX
A488  D0 F1        ..    BNE &A47B
A48A  E8           .     INX
A48B  BD 82 A7     ...   LDA &A782,X
A48E  10 FA        ..    BPL &A48A
A490  B1 BE        ..    LDA (&BE),Y
A492  C9 2E        ..    CMP #&2E
A494  F0 28        .(    BEQ &A4BE
A496  E8           .     INX
A497  E8           .     INX
A498  E8           .     INX
A499  D0 D8        ..    BNE &A473
A49B  98           .     TYA
A49C  48           H     PHA
A49D  B1 BE        ..    LDA (&BE),Y
A49F  A0 09        ..    LDY #&09
A4A1  D9 AD A4     ...   CMP &A4AD,Y
A4A4  F0 10        ..    BEQ &A4B6
A4A6  88           .     DEY
A4A7  10 F8        ..    BPL &A4A1
A4A9  68           h     PLA
A4AA  A8           .     TAY
A4AB  D0 E9        ..    BNE &A496
A4AD  20 22 23      "#   JSR &2322
A4B0  24 26        $&    BIT &26
A4B2  2A           *     ROL A
A4B3  3A           :     DEC A
A4B4  40           @     RTI
A4B5  0D 68 A8     .h.   ORA &A868
A4B8  B1 BE        ..    LDA (&BE),Y
A4BA  C9 20        .     CMP #&20
A4BC  D0 04        ..    BNE &A4C2
A4BE  C8           .     INY
A4BF  4C B8 A4     L..   JMP &A4B8
A4C2  BD 82 A7     ...   LDA &A782,X
A4C5  0A           .     ASL A
A4C6  10 0B        ..    BPL &A4D3
A4C8  B1 BE        ..    LDA (&BE),Y
A4CA  C9 0D        ..    CMP #&0D
A4CC  D0 05        ..    BNE &A4D3
A4CE  2C 69 97     ,i.   BIT &9769
A4D1  70 01        p.    BCS &A4D4
A4D3  B8           .     CLV
A4D4  18           .     CLC
A4D5  68           h     PLA
A4D6  B1 BE        ..    LDA (&BE),Y
A4D8  60           `     RTS
A4D9  C8           .     INY
A4DA  B1 BE        ..    LDA (&BE),Y
A4DC  C9 0D        ..    CMP #&0D
A4DE  F0 0F        ..    BEQ &A4EF
A4E0  C9 2E        ..    CMP #&2E
A4E2  F0 04        ..    BEQ &A4E8
A4E4  C9 20        .     CMP #&20
A4E6  D0 F1        ..    BNE &A4D9
A4E8  C8           .     INY
A4E9  B1 BE        ..    LDA (&BE),Y
A4EB  C9 20        .     CMP #&20
A4ED  F0 F9        ..    BEQ &A4E8
A4EF  38           8     SEC
A4F0  B0 E3        ..    BCS &A4D5
A4F2  2C 6C 0D     ,l.   BIT &0D6C
A4F5  70 03        p.    BCS &A4FA
A4F7  4C B7 A5     L..   JMP &A5B7
A4FA  20 A8 B3      ..   JSR &B3A8
A4FD  20 04 B3      ..   JSR &B304
A500  09 02        ..    ORA #&02
A502  8D 71 C2     .q.   STA &C271
A505  D0 0B        ..    BNE &A512
A507  20 A8 B3      ..   JSR &B3A8
A50A  20 04 B3      ..   JSR &B304
A50D  29 FD        ).    AND #&FD
A50F  8D 71 C2     .q.   STA &C271
A512  20 5F B2      _.   JSR &B25F
A515  A2 01        ..    LDX #&01
A517  20 D6 B2      ..   JSR &B2D6
A51A  A9 02        ..    LDA #&02
A51C  8D 05 C1     ...   STA &C105
A51F  A0 12        ..    LDY #&12
A521  20 8A 97      ..   JSR &978A
A524  AD 05 C1     ...   LDA &C105
A527  C9 01        ..    CMP #&01
A529  D0 29        .)    BNE &A554
A52B  A2 03        ..    LDX #&03
A52D  FE 0A C1     ...   INC &C10A,X
A530  F0 03        ..    BEQ &A535
A532  4C C4 A5     L..   JMP &A5C4
A535  CA           .     DEX
A536  10 F5        ..    BPL &A52D
A538  20 07 B9      ..   JSR &B907
A53B  A2 01        ..    LDX #&01
A53D  8E 05 C1     ...   STX &C105
A540  8E 06 C1     ...   STX &C106
A543  E8           .     INX
A544  20 D6 B2      ..   JSR &B2D6
A547  A0 06        ..    LDY #&06
A549  20 8A 97      ..   JSR &978A
A54C  B0 03        ..    BCS &A551
A54E  4C D9 A5     L..   JMP &A5D9
A551  4C DE 9F     L..   JMP &9FDE
A554  AD 30 C0     .0.   LDA &C030
A557  C9 24        .$    CMP #&24
A559  F0 5C        .\    BEQ &A5B7
A55B  AD 71 C2     .q.   LDA &C271
A55E  30 45        0E    BMI &A5A5
A560  2A           *     ROL A
A561  2A           *     ROL A
A562  30 2A        0*    BMI &A58E
A564  B0 51        .Q    BCS &A5B7
A566  A2 FF        ..    LDX #&FF
A568  E8           .     INX
A569  BD 30 C0     .0.   LDA &C030,X
A56C  C9 0D        ..    CMP #&0D
A56E  D0 F8        ..    BNE &A568
A570  BD 30 C0     .0.   LDA &C030,X
A573  9D 38 C0     .8.   STA &C038,X
A576  CA           .     DEX
A577  10 F7        ..    BPL &A570
A579  A2 07        ..    LDX #&07
A57B  BD ED A5     ...   LDA &A5ED,X
A57E  9D 30 C0     .0.   STA &C030,X
A581  CA           .     DEX
A582  10 F7        ..    BPL &A57B
A584  AD 71 C2     .q.   LDA &C271
A587  09 60        .`    ORA #&60
A589  8D 71 C2     .q.   STA &C271
A58C  D0 87        ..    BNE &A515
A58E  A2 FF        ..    LDX #&FF
A590  E8           .     INX
A591  BD 38 C0     .8.   LDA &C038,X
A594  9D 30 C0     .0.   STA &C030,X
A597  49 0D        I.    EOR #&0D
A599  D0 F5        ..    BNE &A590
A59B  20 04 B3      ..   JSR &B304
A59E  09 80        ..    ORA #&80
A5A0  8D 71 C2     .q.   STA &C271
A5A3  D0 E7        ..    BNE &A58C
A5A5  20 04 B3      ..   JSR &B304
A5A8  A9 02        ..    LDA #&02
A5AA  2C 71 C2     ,q.   BIT &C271
A5AD  D0 08        ..    BNE &A5B7
A5AF  20 DE 9F      ..   JSR &9FDE
A5B2  A9 0B        ..    LDA #&0B
A5B4  4C 23 8D     L#.   JMP &8D23
A5B7  A9 FE        ..    LDA #&FE
A5B9  20 A7 99      ..   JSR &99A7
A5BC  63            c     ...
A5BD  6F 6D        om    BBR6 &A62C
A5BF  6D 61 6E     man   ADC &6E61
A5C2  64 00        d.    STZ &00
A5C4  A2 03        ..    LDX #&03
A5C6  FE 06 C1     ...   INC &C106,X
A5C9  D0 2A        .*    BNE &A5F5
A5CB  CA           .     DEX
A5CC  D0 F8        ..    BNE &A5C6
A5CE  A9 93        ..    LDA #&93
A5D0  20 C0 99      ..   JSR &99C0
A5D3  57 6F        Wo    RMB5 &6F
A5D5  6E 27 74     n't   ROR &7427
A5D8  00           .     BRK
A5D9  AD 05 C1     ...   LDA &C105
A5DC  20 D3 B8      ..   JSR &B8D3
A5DF  A8           .     TAY
A5E0  A9 00        ..    LDA #&00
A5E2  9D 60 C2     .`.   STA &C260,X
A5E5  8C 70 C2     .p.   STY &C270
A5E8  A0 03        ..    LDY #&03
A5EA  4C 7A A7     Lz.   JMP &A77A
A5ED  4C 69 62     Lib   JMP &6269
A5F0  72 61        ra    ADC (&61)
A5F2  72 79        ry    ADC (&79)
A5F4  2E 20 D4     . .   ROL &D420
A5F7  B2 A0        ..    LDA (&A0)
A5F9  00           .     BRK
A5FA  18           .     CLC
A5FB  20 C2 FF      ..   JSR gsinit
A5FE  20 C5 FF      ..   JSR gsread
A601  90 FB        ..    BCC &A5FE
A603  88           .     DEY
A604  C8           .     INY
A605  B1 F2        ..    LDA (&F2),Y
A607  C9 20        .     CMP #&20
A609  F0 F9        ..    BEQ &A604
A60B  49 0D        I.    EOR #&0D
A60D  18           .     CLC
A60E  98           .     TYA
A60F  65 F2        e.    ADC &F2
A611  85 BE        ..    STA &BE
A613  A5 F3        ..    LDA &F3
A615  69 00        i.    ADC #&00
A617  85 BF        ..    STA &BF
A619  20 40 8B      @.   JSR &8B40
A61C  A2 C0        ..    LDX #&C0
A61E  86 BC        ..    STX &BC
A620  A9 0E        ..    LDA #&0E
A622  85 BB        ..    STA &BB
A624  8D 14 C0     ...   STA &C014
A627  A2 4A        .J    LDX #&4A
A629  A0 05        ..    LDY #&05
A62B  20 3E 9C      >.   JSR &9C3E
A62E  AD 63 0D     .c.   LDA &0D63
A631  F0 16        ..    BEQ &A649
A633  2D 0B C1     -..   AND &C10B
A636  2D 0C C1     -..   AND &C10C
A639  C9 FF        ..    CMP #&FF
A63B  F0 0C        ..    BEQ &A649
A63D  20 A6 A3      ..   JSR &A3A6
A640  A2 09        ..    LDX #&09
A642  A0 C1        ..    LDY #&C1
A644  A9 04        ..    LDA #&04
A646  4C 06 04     L..   JMP tubecontrol
A649  A9 01        ..    LDA #&01
A64B  6C 09 C1     l..   JMP (&C109)
A64E  20 85 A6      ..   JSR &A685
A651  4C DC 9F     L..   JMP &9FDC
A654  20 BC A6      ..   JSR &A6BC
A657  4C DC 9F     L..   JMP &9FDC
A65A  A2 10        ..    LDX #&10
A65C  B8           .     CLV
A65D  CA           .     DEX
A65E  30 13        0.    BMI &A673
A660  20 57 B9      W.   JSR &B957
A663  D0 F8        ..    BNE &A65D
A665  BD 60 C2     .`.   LDA &C260,X
A668  29 04        ).    AND #&04
A66A  F0 F1        ..    BEQ &A65D
A66C  98           .     TYA
A66D  9D 30 C2     .0.   STA &C230,X
A670  2C 69 97     ,i.   BIT &9769
A673  8C 02 C0     ...   STY &C002
A676  70 09        p.    BCS &A681
A678  98           .     TYA
A679  20 D3 B8      ..   JSR &B8D3
A67C  8D 72 C2     .r.   STA &C272
A67F  F0 67        .g    BEQ &A6E8
A681  A9 26        .&    LDA #&26
A683  D0 60        .`    BNE &A6E5
A685  A2 10        ..    LDX #&10
A687  B8           .     CLV
A688  CA           .     DEX
A689  30 13        0.    BMI &A69E
A68B  20 57 B9      W.   JSR &B957
A68E  D0 F8        ..    BNE &A688
A690  BD 60 C2     .`.   LDA &C260,X
A693  29 08        ).    AND #&08
A695  F0 F1        ..    BEQ &A688
A697  98           .     TYA
A698  9D 30 C2     .0.   STA &C230,X
A69B  2C 69 97     ,i.   BIT &9769
A69E  8C 03 C0     ...   STY &C003
A6A1  70 09        p.    BCS &A6AC
A6A3  98           .     TYA
A6A4  20 D3 B8      ..   JSR &B8D3
A6A7  8D 73 C2     .s.   STA &C273
A6AA  F0 3C        .<    BEQ &A6E8
A6AC  A9 2A        .*    LDA #&2A
A6AE  D0 35        .5    BNE &A6E5
A6B0  AD 03 C0     ...   LDA &C003
A6B3  48           H     PHA
A6B4  AC 04 C0     ...   LDY &C004
A6B7  20 85 A6      ..   JSR &A685
A6BA  68           h     PLA
A6BB  A8           .     TAY
A6BC  A2 10        ..    LDX #&10
A6BE  B8           .     CLV
A6BF  CA           .     DEX
A6C0  30 13        0.    BMI &A6D5
A6C2  20 57 B9      W.   JSR &B957
A6C5  D0 F8        ..    BNE &A6BF
A6C7  BD 60 C2     .`.   LDA &C260,X
A6CA  29 10        ).    AND #&10
A6CC  F0 F1        ..    BEQ &A6BF
A6CE  98           .     TYA
A6CF  9D 30 C2     .0.   STA &C230,X
A6D2  2C 69 97     ,i.   BIT &9769
A6D5  8C 04 C0     ...   STY &C004
A6D8  70 09        p.    BCS &A6E3
A6DA  98           .     TYA
A6DB  20 D3 B8      ..   JSR &B8D3
A6DE  8D 74 C2     .t.   STA &C274
A6E1  F0 05        ..    BEQ &A6E8
A6E3  A9 32        .2    LDA #&32
A6E5  9D 60 C2     .`.   STA &C260,X
A6E8  4C 6D 90     Lm.   JMP &906D
A6EB  20 2A B9      *.   JSR &B92A
A6EE  A9 40        .@    LDA #&40
A6F0  0C 6C 0D     .l.   TSB &0D6C
A6F3  38           8     SEC
A6F4  AD 08 C1     ...   LDA &C108
A6F7  8D 05 C0     ...   STA &C005
A6FA  48           H     PHA
A6FB  08           .     PHP
A6FC  AC 05 C1     ...   LDY &C105
A6FF  20 5A A6      Z.   JSR &A65A
A702  AC 06 C1     ...   LDY &C106
A705  20 85 A6      ..   JSR &A685
A708  AC 07 C1     ...   LDY &C107
A70B  20 BC A6      ..   JSR &A6BC
A70E  28           (     PLP
A70F  B0 10        ..    BCS &A721
A711  4C DC 9F     L..   JMP &9FDC
A714  2D 4E 65     -Ne   AND &654E
A717  74 2D        t-    STZ &2D,X
A719  46 69        Fi    LSR &69
A71B  6E 64 4C     ndL   ROR &4C64
A71E  69 62        ib    ADC #&62
A720  0D A2 11     ...   ORA &11A2
A723  20 B4 8E      ..   JSR &8EB4
A726  98           .     TYA
A727  29 02        ).    AND #&02
A729  F0 07        ..    BEQ &A732
A72B  A2 14        ..    LDX #&14
A72D  A0 A7        ..    LDY #&A7
A72F  20 F7 FF      ..   JSR oscli
A732  68           h     PLA
A733  C9 02        ..    CMP #&02
A735  90 05        ..    BCC &A73C
A737  A9 6D        .m    LDA #&6D
A739  20 F4 FF      ..   JSR osbyte
A73C  AD 71 C2     .q.   LDA &C271
A73F  AA           .     TAX
A740  29 04        ).    AND #&04
A742  08           .     PHP
A743  8A           .     TXA
A744  29 FB        ).    AND #&FB
A746  8D 71 C2     .q.   STA &C271
A749  28           (     PLP
A74A  D0 29        .)    BNE &A775
A74C  A9 79        .y    LDA #&79
A74E  A2 81        ..    LDX #&81
A750  20 F4 FF      ..   JSR osbyte
A753  8A           .     TXA
A754  10 1F        ..    BPL &A775
A756  60           `     RTS
A757  4C 2E 2D     L.-   JMP &2D2E
A75A  4E 65 74     Net   LSR &7465
A75D  2D 21 42     -!B   AND &4221
A760  6F 6F        oo    BBR6 &A7D1
A762  74 0D        t.    STZ &0D,X
A764  45 2E        E.    EOR &2E
A766  2D 4E 65     -Ne   AND &654E
A769  74 2D        t-    STZ &2D,X
A76B  21 42        !B    AND (&42,X)
A76D  6F 6F        oo    BBR6 &A7DE
A76F  74 0D        t.    STZ &0D,X

A771  70           p     DB  &70                           ; *OPT 4,0 --> <CR>
A772  57           W     DB  &57                           ; *OPT 4,1 --> *L.-Net-!Boot
A773  5E 64        ^     DB  &5E                           ; *OPT 4,2 --> *!Boot
A774  64           d     DB  &64                           ; *OPT 4,3 --> *E.-Net-!Boot

; -----------------------------------------------------------------------------
; Autoboot handler
; -----------------------------------------------------------------------------
.autoboot
A775  AC 05 C0     ...   LDY &C005
A776  05 C0        ..    ORA &C0
A778  F0 DC        ..    BEQ &A756
A77A  BE 71 A7     .q.   LDX &A771,Y
A77D  A0 A7        ..    LDY #&A7
A77F  4C F7 FF     L..   JMP oscli

; -----------------------------------------------------------------------------
; * Command list
; -----------------------------------------------------------------------------

A782  4E 65 74     Net   DB  "Net"
A785  80           .     DB  &80
A786  60 8B        `.    DW  &8B60

A788  50 6F 6C     Pol   DB  "Pollps"
A78B  6C 70 73     lps
A78E  8C           .     DB  &8C
A78F  BD B5        ..    DW  &B5BD

A791  50 72        Pr    BVC &A805
A793  6F 74        ot    BBR6 &A809
A795  80           .     DB  &80
A796  FC B6        ..    DW  &B6FC

A798  50 53        PS    DB  "PS"
A79A  88           .     DB  &88
A79B  E0 B3        ..    DW  &B3E0

A79D  52 6F        Ro    EOR (&6F)
A79F  66 66        ff    ROR &66
A7A1  80           .     DB  &80
A7A3  11 8B        ..    DW  &8B11

A7A4  55 6E        Un    EOR &6E,X
A7A6  70 72        pr    BCS &A81A
A7A8  6F 74        ot    BBR6 &A81E
A7AA  80 00        ..    BRA &A7AC
A7AC  B7 57        .W    SMB3 &57
A7AE  64 75        du    STZ &75
A7B0  6D 70 C4     mp.   ADC &C470
A7B3  72 BD        r.    ADC (&BD)
A7B5  80 80        ..    BRA &A737

A7B7  41 63        Ac    EOR (&63,X)
A7B9  63           c     ...
A7BA  65 73        es    ADC &73
A7BC  73           s     ...
A7BD  C9 2B        .+    CMP #&2B
A7BF  94 42        .B    STY &42
A7C1  79 65 80     ye.   ADC &8065,Y
A7C4  75 97        u.    ADC &97,X

A7C6  43 64 69     Cdi   DB  "Cdir"
A7C9  72 C6        r.    ADC (&C6)
A7CB  D5 B0        ..    CMP &B0,X

A7CD  44           D     ...
A7CE  69 72        ir    ADC #&72
A7D0  81 18        ..    STA (&18,X)
A7D2  95 46        .F    STA &46,X
A7D4  6C 69 70     lip   JMP (&7069)
A7D7  80 AF        ..    BRA &A788
A7D9  A6 46        .F    LDX &46

A7DA  46 53        FS    DB  "FS"
A7DC  8B           .     DB  &8B
A7DD  AD A3        ..    DW  &A3AD

A7DF  49 20 61     I a   DB  "I am"
A7E2  6D           m
A7E3  C2            .    DB  &C2
A7E4  A0 8D        ..    DW  &8DA0

A7E6  4C 63 61     Lca   JMP &6163
A7E9  74 81        t.    STZ &81,X
A7EB  26 B1        &.    ROL &B1
A7ED  4C 65 78     Lex   JMP &7865
A7F0  81 2C        .,    STA (&2C,X)
A7F2  B1 4C        .L    LDA (&4C),Y
A7F4  69 62        ib    ADC #&62
A7F6  C5 2B        .+    CMP &2B
A7F8  94 50        .P    STY &50
A7FA  61 73        as    ADC (&73,X)
A7FC  73            s     ...
A7FD  C7            .     ...
A7FE  EE 8D 52     ..R   INC &528D
A801  65 6E        en    ADC &6E
A803  61 6D        am    ADC (&6D,X)
A805  65 CA        e.    ADC &CA
A807  CB            .     ...
A808  94 57        .W    STY &57
A80A  69 70        ip    ADC #&70
A80C  65 81        e.    ADC &81
A80E  1D B7 80     ...   ORA &80B7,X
A811  46 8E        F.    LSR &8E
A813  4F 6E        On    BBR4 &A883
A815  80 00        ..    BRA &A817
A817  00           .     BRK
A818  4E 65 74     Net   LSR &7465
A81B  80 EB        ..    BRA &A808
A81D  8B            .     ...
A81E  55 74        Ut    EOR &74,X
A820  69 6C        il    ADC #&6C
A822  73            s     ...
A823  80 E7        ..    BRA &A80C
A825  8B            .     ...
A826  80 46        .F    BRA &A86E
A828  53            S     ...
A829  C1 EE        ..    CMP (&EE,X)
A82B  95 50        .P    STA &50,X
A82D  53            S     ...
A82E  C3            .     ...
A82F  EE 95 4E     ..N   INC &4E95
A832  6F 53        oS    BBR6 &A887
A834  70 61        pa    BCS &A897
A836  63            c     ...
A837  65 80        e.    ADC &80
A839  23            #     ...
A83A  96 53        .S    STX &53,Y
A83C  70 61        pa    BCS &A89F
A83E  63            c     ...
A83F  65 80        e.    ADC &80
A841  19 96 80     ...   ORA &8096,Y
A844  46 53        FS    LSR &53
A846  81 67        .g    STA (&67,X)
A848  96 50        .P    STX &50,Y
A84A  53            S     ...
A84B  83            .     ...
A84C  63            c     ...
A84D  96 53        .S    STX &53,Y
A84F  70 61        pa    BCS &A8B2
A851  63            c     ...
A852  65 80        e.    ADC &80
A854  42            B     ...
A855  96 80        ..    STX &80,Y

; -----------------------------------------------------------------------------
; &08: Unrecognised OSWORD call
; -----------------------------------------------------------------------------
.
A857  18           .     CLC
A858  A5 EF        ..    LDA &EF
A85A  E9 0D        ..    SBC #&0D                          ; Only handle OSWORD calls between &0D (13)...
A85C  30 2D        0-    BMI &A88B
A85E  C9 07        ..    CMP #&07                          ; ... and OSWORD &14 (20)
A860  B0 29        .)    BCS &A88B
A862  AA           .     TAX
A863  A0 06        ..    LDY #&06
.
A865  B9 A9 00     ...   LDA &00A9,Y
A868  48           H     PHA
A869  B9 ED 00     ...   LDA &00ED,Y
A86C  99 A9 00     ...   STA &00A9,Y
A86F  88           .     DEY
A870  D0 F3        ..    BNE &A865
A872  20 7F A8      ..   JSR &A87F
A875  A0 FA        ..    LDY #&FA
A877  68           h     PLA
A878  99 B0 FF     ...   STA &FFB0,Y
A87B  C8           .     INY
A87C  D0 F9        ..    BNE &A877
A87E  60           `     RTS

; -----------------------------------------------------------------------------
; 
; -----------------------------------------------------------------------------
.
A87F  BD 93 A8     ...   LDA &A893,X
A882  48           H     PHA
A883  BD 8C A8     ...   LDA &A88C,X
A886  48           H     PHA
A887  B1 AC        ..    LDA (&AC),Y
A889  84 A9        ..    STY &A9
.
A88B  60           `     RTS

.osword_jumptable_lsb
A88C  99           .     DB  &99                           ; &A89A --> OSWORD &0E
A88D  8A           .     DB  &8A                           ; &A88B --> OSWORD &0F
A88E  31           1     DB  &31                           ; &A932 --> OSWORD &10
A88F  4E           N     DB  &4E                           ; &A94F --> OSWORD &11
A890  A6           .     DB  &A6                           ; &A9A7 --> OSWORD &12
A891  BB           .     DB  &BB                           ; &A9BC --> OSWORD &13
A892  68           h     DB  &68                           ; &AC69 --> OSWORD &14

.osword_jumptable_msb
A893  A8           .     DB  &A8
A894  A8           .     DB  &A8
A895  A9           .     DB  &A9
A896  A9           .     DB  &A9
A897  A9           .     DB  &A9
A898  A9           .     DB  &A9
A899  AC           .     DB  &AC

; -----------------------------------------------------------------------------
; 
; -----------------------------------------------------------------------------
.
A89A  48           H     PHA
A89B  20 75 8B      u.   JSR &8B75
A89E  68           h     PLA
A89F  3A           :     DEC A
A8A0  F0 10        ..    BEQ &A8B2
A8A2  C9 03        ..    CMP #&03
A8A4  F0 0C        ..    BEQ &A8B2
A8A6  1A           .     INC A
A8A7  F0 60        .`    BEQ &A909
A8A9  C9 03        ..    CMP #&03
A8AB  F0 5C        .\    BEQ &A909
A8AD  A9 08        ..    LDA #&08
A8AF  85 A9        ..    STA &A9
A8B1  60           `     RTS
A8B2  A2 00        ..    LDX #&00
A8B4  A0 10        ..    LDY #&10
A8B6  20 8A 97      ..   JSR &978A
A8B9  AD 09 C1     ...   LDA &C109
A8BC  20 23 A9      #.   JSR &A923
A8BF  8D 0B C1     ...   STA &C10B
A8C2  AD 08 C1     ...   LDA &C108
A8C5  20 23 A9      #.   JSR &A923
A8C8  8D 0A C1     ...   STA &C10A
A8CB  AD 07 C1     ...   LDA &C107
A8CE  20 23 A9      #.   JSR &A923
A8D1  8D 09 C1     ...   STA &C109
A8D4  A9 00        ..    LDA #&00
A8D6  8D 08 C1     ...   STA &C108
A8D9  AD 06 C1     ...   LDA &C106
A8DC  48           H     PHA
A8DD  AD 05 C1     ...   LDA &C105
A8E0  20 23 A9      #.   JSR &A923
A8E3  8D 07 C1     ...   STA &C107
A8E6  68           h     PLA
A8E7  48           H     PHA
A8E8  29 0F        ).    AND #&0F
A8EA  20 23 A9      #.   JSR &A923
A8ED  8D 06 C1     ...   STA &C106
A8F0  68           h     PLA
A8F1  4A           J     LSR A
A8F2  4A           J     LSR A
A8F3  4A           J     LSR A
A8F4  4A           J     LSR A
A8F5  18           .     CLC
A8F6  69 51        iQ    ADC #&51
A8F8  20 23 A9      #.   JSR &A923
A8FB  8D 05 C1     ...   STA &C105
A8FE  A0 06        ..    LDY #&06
A900  B9 05 C1     ...   LDA &C105,Y
A903  91 AC        ..    STA (&AC),Y
A905  88           .     DEY
A906  10 F8        ..    BPL &A900
A908  60           `     RTS
A909  20 B2 A8      ..   JSR &A8B2
A90C  A0 07        ..    LDY #&07
A90E  B9 04 C1     ...   LDA &C104,Y
A911  91 AC        ..    STA (&AC),Y
A913  88           .     DEY
A914  D0 F8        ..    BNE &A90E
A916  A9 02        ..    LDA #&02
A918  91 AC        ..    STA (&AC),Y
A91A  A9 0E        ..    LDA #&0E
A91C  A6 AC        ..    LDX &AC
A91E  A4 AD        ..    LDY &AD
A920  4C F1 FF     L..   JMP osword
A923  08           .     PHP
A924  AA           .     TAX
A925  F0 09        ..    BEQ &A930
A927  F8           .     SED
A928  A9 00        ..    LDA #&00
A92A  18           .     CLC
A92B  69 01        i.    ADC #&01
A92D  CA           .     DEX
A92E  D0 FA        ..    BNE &A92A
A930  28           (     PLP
A931  60           `     RTS
A932  0E 60 0D     .`.   ASL &0D60
A935  98           .     TYA
A936  B0 03        ..    BCS &A93B
A938  91 AC        ..    STA (&AC),Y
A93A  60           `     RTS
A93B  A5 9D        ..    LDA &9D
A93D  85 AB        ..    STA &AB
A93F  85 A1        ..    STA &A1
A941  A9 6F        .o    LDA #&6F
A943  85 AA        ..    STA &AA
A945  85 A0        ..    STA &A0
A947  A2 0F        ..    LDX #&0F
A949  20 A4 AA      ..   JSR &AAA4
A94C  4C 4C 86     LL.   JMP &864C
A94F  A6 9F        ..    LDX &9F
A951  86 AB        ..    STX &AB
A953  84 AA        ..    STY &AA
A955  6E 61 0D     na.   ROR &0D61
A958  A8           .     TAY
A959  85 AE        ..    STA &AE
A95B  D0 1B        ..    BNE &A978
A95D  A9 03        ..    LDA #&03
A95F  20 FF A3      ..   JSR &A3FF
A962  B0 3D        .=    BCS &A9A1
A964  4A           J     LSR A
A965  4A           J     LSR A
A966  AA           .     TAX
A967  B1 AA        ..    LDA (&AA),Y
A969  F0 36        .6    BEQ &A9A1
A96B  C9 3F        .?    CMP #&3F
A96D  F0 04        ..    BEQ &A973
A96F  E8           .     INX
A970  8A           .     TXA
A971  D0 EC        ..    BNE &A95F
A973  8A           .     TXA
A974  A2 00        ..    LDX #&00
A976  81 AC        ..    STA (&AC,X)
A978  20 FF A3      ..   JSR &A3FF
A97B  B0 24        .$    BCS &A9A1
A97D  88           .     DEY
A97E  84 AA        ..    STY &AA
A980  A9 C0        ..    LDA #&C0
A982  A0 01        ..    LDY #&01
A984  A2 0B        ..    LDX #&0B
A986  C4 AE        ..    CPY &AE
A988  71 AA        q.    ADC (&AA),Y
A98A  F0 03        ..    BEQ &A98F
A98C  30 0E        0.    BMI &A99C
A98E  18           .     CLC
A98F  20 A4 AA      ..   JSR &AAA4
A992  B0 0F        ..    BCS &A9A3
A994  A9 3F        .?    LDA #&3F
A996  A0 01        ..    LDY #&01
A998  91 AA        ..    STA (&AA),Y
A99A  D0 07        ..    BNE &A9A3
A99C  69 01        i.    ADC #&01
A99E  D0 EE        ..    BNE &A98E
A9A0  88           .     DEY
A9A1  91 AC        ..    STA (&AC),Y
A9A3  2E 61 0D     .a.   ROL &0D61
A9A6  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &12 handler: Read arguments
; -----------------------------------------------------------------------------
.
A9A7  A5 9D        ..    LDA &9D
A9A9  85 AB        ..    STA &AB
A9AB  A0 7F        ..    LDY #&7F
A9AD  B1 9C        ..    LDA (&9C),Y
A9AF  C8           .     INY
A9B0  84 AA        ..    STY &AA
A9B2  AA           .     TAX
A9B3  CA           .     DEX
A9B4  A0 00        ..    LDY #&00
A9B6  20 A4 AA      ..   JSR &AAA4
A9B9  4C 96 B0     L..   JMP &B096

; -----------------------------------------------------------------------------
; OSWORD &13 handler: Read/write station information
; -----------------------------------------------------------------------------
.
A9BC  AA           .     TAX
A9BD  C9 13        ..    CMP #&13
A9BF  B0 08        ..    BCS &A9C9
A9C1  BD DC A9     ...   LDA &A9DC,X
A9C4  48           H     PHA
A9C5  BD CA A9     ...   LDA &A9CA,X
A9C8  48           H     PHA
.
A9C9  60           `     RTS

.osword_13_jumptable_msb
A9CA  ED FB B2     ...   SBC &B2FB
A9CD  BE D3 D9     ...   LDX &D9D3,Y
A9D0  E3            .     ...
A9D1  F1 89        ..    SBC (&89),Y
A9D3  92 A0        ..    STA (&A0)
A9D5  A7 93        ..    SMB2 &93
A9D7  96 AC        ..    STX &AC,Y
A9D9  B4 BF        ..    LDY &BF
A9DB  CA           .     DEX

.osword_13_jumptable_msb
A9DC  A9           .     DB  &A9                           ; OSWORD &13 function &00: Read file server number
A9DD  A9           .     DB  &A9                           ; OSWORD &13 function &01: Write file server number
A9DE  AA           .     DB  &AA                           ; OSWORD &13 function &02: Read printer server number
A9DF  AA           .     DB  &AA                           ; OSWORD &13 function &03: Write printer server number
A9E0  AA           .     DB  &AA                           ; OSWORD &13 function &04: Read protection mask
A9E1  AA           .     DB  &AA                           ; OSWORD &13 function &05: Write protection mask
A9E2  AA           .     DB  &AA                           ; OSWORD &13 function &06: Read user enivronment: main directory, currently selected directory and library in order
A9E3  AA           .     DB  &AA                           ; OSWORD &13 function &07: Write user environment
A9E4  AB           .     DB  &AB                           ; OSWORD &13 function &08: Read local station number
A9E5  AB           .     DB  &AB                           ; OSWORD &13 function &09: read number of arguments and size of argument block buffer size (in bytes, in order)
A9E6  AB           .     DB  &AB                           ; OSWORD &13 function &0A: Read error number
A9E7  AB           .     DB  &AB                           ; OSWORD &13 function &0B: 
A9E8  AA           .     DB  &AA                           ; OSWORD &13 function &0C: 
A9E9  AA           .     DB  &AA                           ; OSWORD &13 function &0D: 
A9EA  AB           .     DB  &AB                           ; OSWORD &13 function &0E: 
A9EB  AB           .     DB  &AB                           ; OSWORD &13 function &0F: 
A9EC  AB           .     DB  &AB                           ; OSWORD &13 function &10: 
A9ED  AB           .     DB  &AB                           ; OSWORD &13 function &11: 

; -----------------------------------------------------------------------------
; OSWORD &13 function &00: Read file server number
; -----------------------------------------------------------------------------
.
A9EE  20 75 8B      u.   JSR &8B75
A9F1  A0 02        ..    LDY #&02
A9F3  B9 FF BF     ...   LDA &BFFF,Y
A9F6  91 F0        ..    STA (&F0),Y
A9F8  88           .     DEY
A9F9  D0 F8        ..    BNE &A9F3
A9FB  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &13 function &01: Write file server number
; -----------------------------------------------------------------------------
.
A9FC  20 75 8B      u.   JSR &8B75
A9FF  A0 00        ..    LDY #&00
AA01  20 6A BB      j.   JSR &BB6A
AA04  A0 02        ..    LDY #&02
AA06  B1 F0        ..    LDA (&F0),Y
AA08  99 FF BF     ...   STA &BFFF,Y             ; &C000 = File server station, &C001 = File server network
AA0B  88           .     DEY
AA0C  D0 F8        ..    BNE &AA06
AA0E  20 3B 8E      ;.   JSR &8E3B
AA11  A9 0E        ..    LDA #&0E
AA13  0C 6C 0D     .l.   TSB &0D6C
AA16  A9 40        .@    LDA #&40
AA18  1C 6C 0D     .l.   TRB &0D6C
AA1B  A2 0F        ..    LDX #&0F
AA1D  BD 60 C2     .`.   LDA &C260,X
AA20  A8           .     TAY
AA21  29 02        ).    AND #&02
AA23  F0 5F        ._    BEQ &AA84
AA25  98           .     TYA
AA26  29 DF        ).    AND #&DF
AA28  9D 60 C2     .`.   STA &C260,X
AA2B  A8           .     TAY
AA2C  20 57 B9      W.   JSR &B957
AA2F  D0 53        .S    BNE &AA84
AA31  18           .     CLC
AA32  98           .     TYA
AA33  29 04        ).    AND #&04
AA35  F0 15        ..    BEQ &AA4C
AA37  98           .     TYA
AA38  09 20        .     ORA #&20
AA3A  A8           .     TAY
AA3B  BD 30 C2     .0.   LDA &C230,X
AA3E  8D 02 C0     ...   STA &C002
AA41  8A           .     TXA
AA42  69 20        i     ADC #&20
AA44  8D 72 C2     .r.   STA &C272
AA47  A9 02        ..    LDA #&02
AA49  1C 6C 0D     .l.   TRB &0D6C
AA4C  98           .     TYA
AA4D  29 08        ).    AND #&08
AA4F  F0 15        ..    BEQ &AA66
AA51  98           .     TYA
AA52  09 20        .     ORA #&20
AA54  A8           .     TAY
AA55  BD 30 C2     .0.   LDA &C230,X
AA58  8D 03 C0     ...   STA &C003
AA5B  8A           .     TXA
AA5C  69 20        i     ADC #&20
AA5E  8D 73 C2     .s.   STA &C273
AA61  A9 04        ..    LDA #&04
AA63  1C 6C 0D     .l.   TRB &0D6C
AA66  98           .     TYA
AA67  29 10        ).    AND #&10
AA69  F0 15        ..    BEQ &AA80
AA6B  98           .     TYA
AA6C  09 20        .     ORA #&20
AA6E  A8           .     TAY
AA6F  BD 30 C2     .0.   LDA &C230,X
AA72  8D 04 C0     ...   STA &C004
AA75  8A           .     TXA
AA76  69 20        i     ADC #&20
AA78  8D 74 C2     .t.   STA &C274
AA7B  A9 08        ..    LDA #&08
AA7D  1C 6C 0D     .l.   TRB &0D6C
AA80  98           .     TYA
AA81  9D 60 C2     .`.   STA &C260,X
AA84  CA           .     DEX
AA85  10 96        ..    BPL &AA1D
AA87  A9 0E        ..    LDA #&0E
AA89  2C 6C 0D     ,l.   BIT &0D6C
AA8C  D0 05        ..    BNE &AA93
AA8E  A9 40        .@    LDA #&40
AA90  0C 6C 0D     .l.   TSB &0D6C
AA93  60           `     RTS
AA94  18           .     CLC
AA95  90 01        ..    BCC &AA98
AA97  38           8     SEC
AA98  A9 17        ..    LDA #&17
AA9A  85 AA        ..    STA &AA
AA9C  A5 9D        ..    LDA &9D
AA9E  85 AB        ..    STA &AB
AAA0  A0 01        ..    LDY #&01
AAA2  A2 05        ..    LDX #&05
.
AAA4  90 04        ..    BCC &AAAA
AAA6  B1 AC        ..    LDA (&AC),Y
AAA8  91 AA        ..    STA (&AA),Y
AAAA  B1 AA        ..    LDA (&AA),Y
AAAC  91 AC        ..    STA (&AC),Y
AAAE  C8           .     INY
AAAF  CA           .     DEX
AAB0  10 F2        ..    BPL &AAA4
AAB2  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &13 function &02: Read printer server number
; -----------------------------------------------------------------------------
.
AAB3  A5 9F        ..    LDA &9F
AAB5  85 AB        ..    STA &AB
AAB7  C8           .     INY
AAB8  98           .     TYA
AAB9  85 AA        ..    STA &AA
AABB  AA           .     TAX
AABC  18           .     CLC
AABD  90 E5        ..    BCC &AAA4

; OSWORD &13 function &03: Write printer server number
.
AABF  C8           .     INY
AAC0  B1 AC        ..    LDA (&AC),Y
AAC2  C8           .     INY
AAC3  91 9E        ..    STA (&9E),Y
AAC5  B1 AC        ..    LDA (&AC),Y
AAC7  C8           .     INY
AAC8  91 9E        ..    STA (&9E),Y
AACA  20 0B AC      ..   JSR &AC0B
AACD  51 9E        Q.    EOR (&9E),Y
AACF  D0 02        ..    BNE &AAD3
AAD1  91 9E        ..    STA (&9E),Y
.
AAD3  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &13 function &04: Read protection mask
; -----------------------------------------------------------------------------
.
AAD4  AD 68 0D     .h.   LDA &0D68
AAD7  4C A4 AB     L..   JMP &ABA4

; -----------------------------------------------------------------------------
; OSWORD &13 function &05: Write protection mask
; -----------------------------------------------------------------------------
.
AADA  C8           .     INY
AADB  B1 AC        ..    LDA (&AC),Y
AADD  8D 68 0D     .h.   STA &0D68               ; Set protection mask
AAE0  8D 69 0D     .i.   STA &0D69
AAE3  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &13 function &06: Read user enivronment: main directory, currently selected directory and library in order
; -----------------------------------------------------------------------------
.
AAE4  20 75 8B      u.   JSR &8B75
AAE7  A0 03        ..    LDY #&03
AAE9  B9 71 C2     .q.   LDA &C271,Y
AAEC  91 AC        ..    STA (&AC),Y
AAEE  88           .     DEY
AAEF  D0 F8        ..    BNE &AAE9
AAF1  60           `     RTS

; -----------------------------------------------------------------------------
; 
; -----------------------------------------------------------------------------
.
AAF2  20 75 8B      u.   JSR &8B75
AAF5  A0 01        ..    LDY #&01
AAF7  B1 AC        ..    LDA (&AC),Y
AAF9  C9 20        .     CMP #&20
AAFB  90 0A        ..    BCC &AB07
AAFD  C9 30        .0    CMP #&30
AAFF  B0 06        ..    BCS &AB07
AB01  AA           .     TAX
AB02  BD 10 C2     ...   LDA &C210,X
AB05  D0 07        ..    BNE &AB0E
AB07  A9 00        ..    LDA #&00
AB09  AA           .     TAX
AB0A  81 AC        ..    STA (&AC,X)
AB0C  F0 26        .&    BEQ &AB34
AB0E  BD 40 C2     .@.   LDA &C240,X
AB11  29 02        ).    AND #&02
AB13  F0 F2        ..    BEQ &AB07
AB15  8A           .     TXA
AB16  99 71 C2     .q.   STA &C271,Y
AB19  BD 10 C2     ...   LDA &C210,X
AB1C  99 01 C0     ...   STA &C001,Y
AB1F  C0 01        ..    CPY #&01
AB21  D0 18        ..    BNE &AB3B
AB23  98           .     TYA
AB24  48           H     PHA
AB25  A0 04        ..    LDY #&04
AB27  20 65 AB      e.   JSR &AB65
AB2A  68           h     PLA
AB2B  A8           .     TAY
AB2C  BD 40 C2     .@.   LDA &C240,X
AB2F  09 24        .$    ORA #&24
AB31  9D 40 C2     .@.   STA &C240,X
AB34  C8           .     INY
AB35  C0 04        ..    CPY #&04
AB37  D0 BE        ..    BNE &AAF7
AB39  88           .     DEY
AB3A  60           `     RTS
AB3B  C0 02        ..    CPY #&02
AB3D  D0 13        ..    BNE &AB52
AB3F  98           .     TYA
AB40  48           H     PHA
AB41  A0 08        ..    LDY #&08
AB43  20 65 AB      e.   JSR &AB65
AB46  68           h     PLA
AB47  A8           .     TAY
AB48  BD 40 C2     .@.   LDA &C240,X
AB4B  09 28        .(    ORA #&28
AB4D  9D 40 C2     .@.   STA &C240,X
AB50  D0 E2        ..    BNE &AB34
AB52  98           .     TYA
AB53  48           H     PHA
AB54  A0 10        ..    LDY #&10
AB56  20 65 AB      e.   JSR &AB65
AB59  68           h     PLA
AB5A  A8           .     TAY
AB5B  BD 40 C2     .@.   LDA &C240,X
AB5E  09 30        .0    ORA #&30
AB60  9D 40 C2     .@.   STA &C240,X
AB63  D0 CF        ..    BNE &AB34
AB65  8A           .     TXA
AB66  48           H     PHA
AB67  A2 0F        ..    LDX #&0F
AB69  BD 60 C2     .`.   LDA &C260,X
AB6C  2A           *     ROL A
AB6D  2A           *     ROL A
AB6E  10 14        ..    BPL &AB84
AB70  98           .     TYA
AB71  3D 60 C2     =`.   ORA &C260,X
AB74  F0 05        ..    BEQ &AB7B
AB76  98           .     TYA
AB77  09 20        .     ORA #&20
AB79  D0 01        ..    BNE &AB7C
AB7B  98           .     TYA
AB7C  49 FF        I.    EOR #&FF
AB7E  3D 60 C2     =`.   ORA &C260,X
AB81  9D 60 C2     .`.   STA &C260,X
AB84  CA           .     DEX
AB85  10 E2        ..    BPL &AB69
AB87  68           h     PLA
AB88  AA           .     TAX
AB89  60           `     RTS
AB8A  A0 01        ..    LDY #&01
AB8C  B1 9C        ..    LDA (&9C),Y
AB8E  A0 00        ..    LDY #&00
AB90  4C A4 AB     L..   JMP &ABA4
AB93  A0 7F        ..    LDY #&7F
AB95  B1 9C        ..    LDA (&9C),Y
AB97  A0 01        ..    LDY #&01
AB99  91 AC        ..    STA (&AC),Y
AB9B  C8           .     INY
AB9C  A9 80        ..    LDA #&80
AB9E  91 AC        ..    STA (&AC),Y
ABA0  60           `     RTS
ABA1  AD 09 C0     ...   LDA &C009
.
ABA4  C8           .     INY
ABA5  91 AC        ..    STA (&AC),Y
ABA7  60           `     RTS
ABA8  AD 08 C0     ...   LDA &C008
ABAB  10 F7        ..    BPL &ABA4
ABAD  A9 6F        .o    LDA #&6F
ABAF  38           8     SEC
ABB0  ED 6B 0D     .k.   SBC &0D6B
ABB3  B0 EF        ..    BCS &ABA4
ABB5  C8           .     INY
ABB6  B9 6C 0D     .l.   LDA &0D6C,Y
ABB9  91 AC        ..    STA (&AC),Y
ABBB  C0 03        ..    CPY #&03
ABBD  D0 F6        ..    BNE &ABB5
ABBF  60           `     RTS
ABC0  C8           .     INY
ABC1  B1 AC        ..    LDA (&AC),Y
ABC3  99 6C 0D     .l.   STA &0D6C,Y
ABC6  C0 03        ..    CPY #&03
ABC8  D0 F6        ..    BNE &ABC0
ABCA  60           `     RTS
ABCB  20 0B AC      ..   JSR &AC0B
ABCE  A0 00        ..    LDY #&00
ABD0  AD 72 0D     .r.   LDA &0D72
ABD3  C9 FF        ..    CMP #&FF
ABD5  D0 06        ..    BNE &ABDD
ABD7  98           .     TYA
ABD8  91 AC        ..    STA (&AC),Y
ABDA  C8           .     INY
ABDB  D0 13        ..    BNE &ABF0
ABDD  C8           .     INY
ABDE  91 AC        ..    STA (&AC),Y
ABE0  C8           .     INY
ABE1  C8           .     INY
ABE2  B1 AC        ..    LDA (&AC),Y
ABE4  F0 07        ..    BEQ &ABED
ABE6  4D 72 0D     Mr.   EOR &0D72
ABE9  D0 07        ..    BNE &ABF2
ABEB  F0 03        ..    BEQ &ABF0
ABED  AD 01 C0     ...   LDA &C001
ABF0  91 AC        ..    STA (&AC),Y
ABF2  60           `     RTS

ABF3  82           .     DB &82                            ; Moved to &C0 --> Control byte = &82: WhatNet?
ABF4  9C           .     DB &9C                            ; Moved to &C1 --> Port number = &9C: BridgeQuery
ABD5  FF           .     DB &FF                            ; Moved to &C2 --> &FF
ABD6  FF           .     DB &FF                            ; Moved to &C3 --> &FF
ABF7  42 52 49     BRI   DB 'BRIDGE'                       ; Moved to &C4 --> BRIDGE
ABFA  44 47 45     DGE
ABFD  9C           .     DB &9C                            ; Moved to &CA --> Reply port = &9C
ABFE  00           .     DB &00                            ; Moved to &CB --> &00
ABFF  7F           .     DB &7F                            ;

AC00  9C 00 00     ...   STZ &0000
AC03  72 0D        r.    ADC (&0D)
AC05  FF FF        ..    BBS7 &AC06
AC07  74 0D        t.    STZ &0D,X
AC09  FF FF        ..    BBS7 &AC0A

AC0B  AD 72 0D     .r.   LDA &0D72
AC0E  C9 FF        ..    CMP #&FF
AC10  D0 56        .V    BNE &AC68
AC12  98           .     TYA
AC13  48           H     PHA
AC14  A0 18        ..    LDY #&18
AC16  A2 0B        ..    LDX #&0B
AC18  6E 61 0D     na.   ROR &0D61
AC1B  B9 E7 AB     ...   LDA &ABE7,Y
AC1E  91 9E        ..    STA (&9E),Y
AC20  BD F3 AB     ...   LDA &ABF3,X
AC23  95 C0        ..    STA &C0,X
AC25  C8           .     INY
AC26  CA           .     DEX
AC27  10 F2        ..    BPL &AC1B
AC29  8E 72 0D     .r.   STX &0D72                         ; &0D72 = &FF
AC2C  2E 61 0D     .a.   ROL &0D61
AC2F  0E 60 0D     .`.   ASL &0D60
AC32  90 FB        ..    BCC &AC2F
AC34  A9 82        ..    LDA #&82
AC36  85 C0        ..    STA &C0                           ; Control byte = &82: WhatNet?
AC38  A9 C0        ..    LDA #&C0                          ; &A0 = &00C0
AC3A  85 A0        ..    STA &A0
AC3C  A9 00        ..    LDA #&00
AC3E  85 A1        ..    STA &A1
AC40  20 4C 86      L.   JSR &864C
AC43  24 C0        $.    BIT &C0
AC45  30 FC        0.    BMI &AC43
AC47  DA           .     PHX
AC48  A9 13        ..    LDA #&13
AC4A  20 F4 FF      ..   JSR osbyte
AC4D  FA           .     PLX
AC4E  A0 18        ..    LDY #&18
AC50  B1 9E        ..    LDA (&9E),Y
AC52  30 05        0.    BMI &AC59
AC54  20 EC BF      ..   JSR &BFEC                         ; X += 8
AC57  10 D6        ..    BPL &AC2F
AC59  A9 3F        .?    LDA #&3F
AC5B  91 9E        ..    STA (&9E),Y
AC5D  68           h     PLA
AC5E  A8           .     TAY
AC5F  AD 72 0D     .r.   LDA &0D72
AC62  AA           .     TAX
AC63  49 FF        I.    EOR #&FF
AC65  F0 01        ..    BEQ &AC68
AC67  8A           .     TXA
AC68  60           `     RTS

; -----------------------------------------------------------------------------
; OSWORD &14 handler
; -----------------------------------------------------------------------------
.
AC69  C9 01        ..    CMP #&01
AC6B  B0 6C        .l    BCS &ACD9               ; Jump if A >= &01 (OSWORD &14 function &01: send text)
AC6D  48           H     PHA                     ; A = &00 (OSWORD &14 function &00: send to FS)
AC6E  20 75 8B      u.   JSR &8B75
AC71  68           h     PLA
AC72  A0 23        .#    LDY #&23
AC74  20 04 B3      ..   JSR &B304
.
AC77  B9 4B 97     .K.   LDA &974B,Y
AC7A  D0 03        ..    BNE &AC7F
AC7C  B9 E6 BF     ...   LDA &BFE6,Y
AC7F  91 9E        ..    STA (&9E),Y
AC81  88           .     DEY
AC82  C0 17        ..    CPY #&17
AC84  D0 F1        ..    BNE &AC77
AC86  C8           .     INY
AC87  84 9A        ..    STY &9A
AC89  A0 1C        ..    LDY #&1C
AC8B  A5 AC        ..    LDA &AC
AC8D  69 01        i.    ADC #&01
AC8F  20 CF AC      ..   JSR &ACCF
AC92  A0 01        ..    LDY #&01
AC94  B1 AC        ..    LDA (&AC),Y             ; Size of control block
AC96  A0 20        .     LDY #&20
AC98  65 AC        e.    ADC &AC
AC9A  20 CF AC      ..   JSR &ACCF
AC9D  A0 02        ..    LDY #&02
AC9F  A9 90        ..    LDA #&90                ; Port &90: FileServerReply
ACA1  85 98        ..    STA &98
ACA3  91 AC        ..    STA (&AC),Y             ; XY+2: reply port
ACA5  C8           .     INY
ACA6  C8           .     INY
ACA7  B9 FE BF     ...   LDA &BFFE,Y
ACAA  91 AC        ..    STA (&AC),Y             ; XY+4: URD, XY+5=CRD, XY+6=LIB
ACAC  C8           .     INY
ACAD  C0 07        ..    CPY #&07
ACAF  D0 F6        ..    BNE &ACA7
ACB1  A5 9F        ..    LDA &9F
ACB3  85 9B        ..    STA &9B
ACB5  20 1A AD      ..   JSR &AD1A
ACB8  A0 20        .     LDY #&20
ACBA  A9 FF        ..    LDA #&FF
ACBC  91 9E        ..    STA (&9E),Y
ACBE  C8           .     INY
ACBF  91 9E        ..    STA (&9E),Y
ACC1  A0 19        ..    LDY #&19
ACC3  A9 90        ..    LDA #&90
ACC5  91 9E        ..    STA (&9E),Y
ACC7  88           .     DEY
ACC8  A9 7F        ..    LDA #&7F
ACCA  91 9E        ..    STA (&9E),Y
ACCC  4C BE 98     L..   JMP &98BE
ACCF  91 9E        ..    STA (&9E),Y
ACD1  C8           .     INY
ACD2  A5 AD        ..    LDA &AD
ACD4  69 00        i.    ADC #&00
ACD6  91 9E        ..    STA (&9E),Y
ACD8  60           `     RTS
.
ACD9  08           .     PHP
ACDA  A0 01        ..    LDY #&01
ACDC  B1 AC        ..    LDA (&AC),Y
ACDE  AA           .     TAX
ACDF  C8           .     INY
ACE0  B1 AC        ..    LDA (&AC),Y
ACE2  C8           .     INY
ACE3  84 AA        ..    STY &AA
ACE5  A0 72        .r    LDY #&72
ACE7  91 9C        ..    STA (&9C),Y
ACE9  88           .     DEY
ACEA  8A           .     TXA
ACEB  91 9C        ..    STA (&9C),Y
ACED  28           (     PLP
ACEE  D0 1F        ..    BNE &AD0F
ACF0  A4 AA        ..    LDY &AA
ACF2  E6 AA        ..    INC &AA
ACF4  B1 AC        ..    LDA (&AC),Y
ACF6  F0 16        ..    BEQ &AD0E
ACF8  A0 7D        .}    LDY #&7D
ACFA  91 9C        ..    STA (&9C),Y
ACFC  48           H     PHA
ACFD  20 20 AE       .   JSR &AE20
AD00  38           8     SEC
AD01  66 98        f.    ROR &98
AD03  20 1A AD      ..   JSR &AD1A
AD06  CA           .     DEX
AD07  D0 FD        ..    BNE &AD06
AD09  68           h     PLA
AD0A  49 0D        I.    EOR #&0D
AD0C  D0 E2        ..    BNE &ACF0
AD0E  60           `     RTS
AD0F  20 20 AE       .   JSR &AE20
AD12  A0 7B        .{    LDY #&7B
AD14  B1 9C        ..    LDA (&9C),Y
AD16  69 03        i.    ADC #&03
AD18  91 9C        ..    STA (&9C),Y
AD1A  58           X     CLI
AD1B  4C 2C 9B     L,.   JMP &9B2C
AD1E  08           .     PHP
AD1F  48           H     PHA
AD20  8A           .     TXA
AD21  48           H     PHA
AD22  98           .     TYA
AD23  48           H     PHA
AD24  BA           .     TSX
AD25  BD 03 01     ...   LDA &0103,X
AD28  C9 09        ..    CMP #&09
AD2A  B0 04        ..    BCS &AD30
AD2C  AA           .     TAX
AD2D  20 37 AD      7.   JSR &AD37
AD30  68           h     PLA
AD31  A8           .     TAY
AD32  68           h     PLA
AD33  AA           .     TAX
AD34  68           h     PLA
AD35  28           (     PLP
AD36  60           `     RTS
AD37  BD 4B AD     .K.   LDA &AD4B,X
AD3A  48           H     PHA
AD3B  BD 42 AD     .B.   LDA &AD42,X
AD3E  48           H     PHA
AD3F  A5 EF        ..    LDA &EF
AD41  60           `     RTS
AD42  89 90        ..    BIT #&90
AD44  90 90        ..    BCC &ACD6
AD46  53            S     ...
AD47  7B            {     ...
AD48  89 85        ..    BIT #&85
AD4A  F4            .     ...
AD4B  8E AE AE     ...   STX &AEAE
AD4E  AE AD AE     ...   LDX &AEAD
AD51  8E AD AD     ...   STX &ADAD
AD54  BA           .     TSX
AD55  7E 06 01     ~..   ROR &0106,X
AD58  1E 06 01     ...   ASL &0106,Y
AD5B  98           .     TYA
AD5C  A0 DA        ..    LDY #&DA
AD5E  91 9E        ..    STA (&9E),Y
AD60  A9 00        ..    LDA #&00
AD62  A0 D9        ..    LDY #&D9
AD64  91 9E        ..    STA (&9E),Y
AD66  A9 80        ..    LDA #&80
AD68  A0 0C        ..    LDY #&0C
AD6A  91 9E        ..    STA (&9E),Y
AD6C  A5 9A        ..    LDA &9A
AD6E  48           H     PHA
AD6F  A5 9B        ..    LDA &9B
AD71  48           H     PHA
AD72  84 9A        ..    STY &9A
AD74  A6 9F        ..    LDX &9F
AD76  86 9B        ..    STX &9B
AD78  20 2C 9B      ,.   JSR &9B2C
AD7B  A9 3F        .?    LDA #&3F
AD7D  81 9A        ..    STA (&9A,X)
AD7F  68           h     PLA
AD80  85 9B        ..    STA &9B
AD82  68           h     PLA
AD83  85 9A        ..    STA &9A
AD85  60           `     RTS
AD86  A4 F1        ..    LDY &F1
AD88  C9 81        ..    CMP #&81
AD8A  F0 13        ..    BEQ &AD9F
AD8C  A0 01        ..    LDY #&01
AD8E  A2 0A        ..    LDX #&0A
AD90  20 DA AD      ..   JSR &ADDA
AD93  F0 0A        ..    BEQ &AD9F
AD95  88           .     DEY
AD96  88           .     DEY
AD97  A2 11        ..    LDX #&11
AD99  20 DA AD      ..   JSR &ADDA
AD9C  F0 01        ..    BEQ &AD9F
AD9E  C8           .     INY
AD9F  A2 02        ..    LDX #&02
ADA1  98           .     TYA
ADA2  F0 35        .5    BEQ &ADD9
ADA4  08           .     PHP
ADA5  10 01        ..    BPL &ADA8
ADA7  E8           .     INX
ADA8  A0 DC        ..    LDY #&DC
ADAA  B9 15 00     ...   LDA &0015,Y
ADAD  91 9E        ..    STA (&9E),Y
ADAF  88           .     DEY
ADB0  C0 DA        ..    CPY #&DA
ADB2  10 F6        ..    BPL &ADAA
ADB4  8A           .     TXA
ADB5  20 62 AD      b.   JSR &AD62
ADB8  28           (     PLP
ADB9  10 1E        ..    BPL &ADD9
ADBB  A9 7F        ..    LDA #&7F
ADBD  A0 0C        ..    LDY #&0C
ADBF  91 9E        ..    STA (&9E),Y
ADC1  B1 9E        ..    LDA (&9E),Y
ADC3  10 FC        ..    BPL &ADC1
ADC5  BA           .     TSX
ADC6  A0 DD        ..    LDY #&DD
ADC8  B1 9E        ..    LDA (&9E),Y
ADCA  09 44        .D    ORA #&44
ADCC  D0 04        ..    BNE &ADD2
ADCE  88           .     DEY
ADCF  CA           .     DEX
ADD0  B1 9E        ..    LDA (&9E),Y
ADD2  9D 06 01     ...   STA &0106,X
ADD5  C0 DA        ..    CPY #&DA
ADD7  D0 F5        ..    BNE &ADCE
ADD9  60           `     RTS
ADDA  DD E3 AD     ...   CMP &ADE3,X
ADDD  F0 03        ..    BEQ &ADE2
ADDF  CA           .     DEX
ADE0  10 F8        ..    BPL &ADDA
ADE2  60           `     RTS
ADE3  04 09        ..    TSB &09
ADE5  0A           .     ASL A
ADE6  14 15        ..    TRB &15
ADE8  9A           .     TXS
ADE9  9B            .     ...
ADEA  E1 E2        ..    SBC (&E2,X)
ADEC  E3            .     ...
ADED  E4 0B        ..    CPX &0B
ADEF  0C 0F 79     ..y   TSB &790F
ADF2  7A           z     PLY
ADF3  86 87        ..    STX &87
ADF5  A0 0E        ..    LDY #&0E
ADF7  C9 07        ..    CMP #&07
ADF9  F0 04        ..    BEQ &ADFF
ADFB  C9 08        ..    CMP #&08
ADFD  D0 E3        ..    BNE &ADE2
ADFF  A2 DB        ..    LDX #&DB
AE01  86 9E        ..    STX &9E
AE03  B1 F0        ..    LDA (&F0),Y
AE05  91 9E        ..    STA (&9E),Y
AE07  88           .     DEY
AE08  10 F9        ..    BPL &AE03
AE0A  C8           .     INY
AE0B  C6 9E        ..    DEC &9E
AE0D  A5 EF        ..    LDA &EF
AE0F  91 9E        ..    STA (&9E),Y
AE11  84 9E        ..    STY &9E
AE13  A0 14        ..    LDY #&14
AE15  A9 E9        ..    LDA #&E9
AE17  91 9E        ..    STA (&9E),Y
AE19  A9 01        ..    LDA #&01
AE1B  20 62 AD      b.   JSR &AD62
AE1E  86 9E        ..    STX &9E
AE20  A2 0D        ..    LDX #&0D
AE22  A0 7C        .|    LDY #&7C
AE24  2C 69 97     ,i.   BIT &9769
AE27  70 05        p.    BCS &AE2E
AE29  A0 17        ..    LDY #&17
AE2B  A2 1A        ..    LDX #&1A
AE2D  B8           .     CLV
AE2E  BD 55 AE     .U.   LDA &AE55,X
AE31  C9 FE        ..    CMP #&FE
AE33  F0 1C        ..    BEQ &AE51
AE35  C9 FD        ..    CMP #&FD
AE37  F0 14        ..    BEQ &AE4D
AE39  C9 FC        ..    CMP #&FC
AE3B  D0 08        ..    BNE &AE45
AE3D  A5 9D        ..    LDA &9D
AE3F  70 02        p.    BCS &AE43
AE41  A5 9F        ..    LDA &9F
AE43  85 9B        ..    STA &9B
AE45  70 04        p.    BCS &AE4B
AE47  91 9E        ..    STA (&9E),Y
AE49  50 02        P.    BVC &AE4D
AE4B  91 9C        ..    STA (&9C),Y
AE4D  88           .     DEY
AE4E  CA           .     DEX
AE4F  10 DD        ..    BPL &AE2E
AE51  C8           .     INY
AE52  84 9A        ..    STY &9A
AE54  60           `     RTS
AE55  85 00        ..    STA &00
AE57  FD FD 7D     ..}   SBC &7DFD,X
AE5A  FC            .     ...
AE5B  FF FF        ..    BBS7 &AE5C
AE5D  7E FC FF     ~..   ROR &FFFC,X
AE60  FF 00        ..    BBS7 &AE62
AE62  00           .     BRK
AE63  FE 80 93     ...   INC &9380,X
AE66  FD FD D9     ...   SBC &D9FD,X
AE69  FC            .     ...
AE6A  FF FF        ..    BBS7 &AE6B
AE6C  DE FC FF     ...   DEC &FFFC,X
AE6F  FF FE        ..    BBS7 &AE6F
AE71  D1 FD        ..    CMP (&FD),Y
AE73  FD 22 FD     .".   SBC &FD22,X
AE76  FF FF        ..    BBS7 &AE77
AE78  FD FD FF     ...   SBC &FFFD,X
AE7B  FF CA        ..    BBS7 &AE47
AE7D  E4 F0        ..    CPX &F0
AE7F  D0 0F        ..    BNE &AE90
AE81  A5 D0        ..    LDA &D0
AE83  6A           j     ROR A
AE84  B0 0A        ..    BCS &AE90
AE86  A9 22        ."    LDA #&22
AE88  8D 6B 0D     .k.   STA &0D6B
AE8B  A9 41        .A    LDA #&41
AE8D  8D 6A 0D     .j.   STA &0D6A
AE90  60           `     RTS
AE91  C0 04        ..    CPY #&04
AE93  D0 FB        ..    BNE &AE90
AE95  8A           .     TXA
AE96  CA           .     DEX
AE97  D0 26        .&    BNE &AEBF
AE99  BA           .     TSX
AE9A  1D 06 01     ...   ORA &0106,X
AE9D  9D 06 01     ...   STA &0106,X
AEA0  A9 91        ..    LDA #&91
AEA2  A2 03        ..    LDX #&03
AEA4  20 F4 FF      ..   JSR osbyte
AEA7  B0 E7        ..    BCS &AE90
AEA9  98           .     TYA
AEAA  20 B6 AE      ..   JSR &AEB6
AEAD  C0 6E        .n    CPY #&6E
AEAF  90 EF        ..    BCC &AEA0
AEB1  20 DA AE      ..   JSR &AEDA
AEB4  90 EA        ..    BCC &AEA0
AEB6  AC 6B 0D     .k.   LDY &0D6B
AEB9  91 9C        ..    STA (&9C),Y
AEBB  EE 6B 0D     .k.   INC &0D6B
AEBE  60           `     RTS
AEBF  6A           j     ROR A
AEC0  90 57        .W    BCC &AF19
AEC2  AD 6A 0D     .j.   LDA &0D6A
AEC5  48           H     PHA
AEC6  6A           j     ROR A
AEC7  68           h     PLA
AEC8  B0 0D        ..    BCS &AED7
AECA  09 03        ..    ORA #&03
AECC  8D 6A 0D     .j.   STA &0D6A
AECF  A9 03        ..    LDA #&03
AED1  20 B6 AE      ..   JSR &AEB6
AED4  20 DA AE      ..   JSR &AEDA
AED7  4C 86 AE     L..   JMP &AE86
AEDA  A0 08        ..    LDY #&08
AEDC  AD 6B 0D     .k.   LDA &0D6B
AEDF  91 9E        ..    STA (&9E),Y
AEE1  A5 9D        ..    LDA &9D
AEE3  C8           .     INY
AEE4  91 9E        ..    STA (&9E),Y
AEE6  A0 05        ..    LDY #&05
AEE8  91 9E        ..    STA (&9E),Y
AEEA  A0 0B        ..    LDY #&0B
AEEC  A2 26        .&    LDX #&26
AEEE  20 2D AE      -.   JSR &AE2D
AEF1  88           .     DEY
AEF2  AD 6A 0D     .j.   LDA &0D6A
AEF5  48           H     PHA
AEF6  2A           *     ROL A
AEF7  68           h     PLA
AEF8  49 80        I.    EOR #&80
AEFA  8D 6A 0D     .j.   STA &0D6A
AEFD  2A           *     ROL A
AEFE  91 9E        ..    STA (&9E),Y
AF00  A5 D0        ..    LDA &D0
AF02  48           H     PHA
AF03  29 FE        ).    AND #&FE
AF05  85 D0        ..    STA &D0
AF07  A0 22        ."    LDY #&22
AF09  8C 6B 0D     .k.   STY &0D6B
AF0C  A9 00        ..    LDA #&00
AF0E  AA           .     TAX
AF0F  A4 9F        ..    LDY &9F
AF11  58           X     CLI
AF12  20 DD AF      ..   JSR &AFDD
AF15  68           h     PLA
AF16  85 D0        ..    STA &D0
AF18  60           `     RTS
AF19  AD 6A 0D     .j.   LDA &0D6A
AF1C  6A           j     ROR A
AF1D  90 BB        ..    BCC &AEDA
AF1F  A5 D0        ..    LDA &D0
AF21  48           H     PHA
AF22  29 FE        ).    AND #&FE
AF24  85 D0        ..    STA &D0
AF26  A9 14        ..    LDA #&14
AF28  48           H     PHA
AF29  A2 0B        ..    LDX #&0B
AF2B  A0 2D        .-    LDY #&2D
AF2D  BD 39 B0     .9.   LDA &B039,X
AF30  91 9C        ..    STA (&9C),Y
AF32  88           .     DEY
AF33  CA           .     DEX
AF34  10 F7        ..    BPL &AF2D
AF36  86 98        ..    STX &98
AF38  A0 02        ..    LDY #&02
AF3A  B1 9E        ..    LDA (&9E),Y
AF3C  48           H     PHA
AF3D  C8           .     INY
AF3E  B1 9E        ..    LDA (&9E),Y
AF40  A0 25        .%    LDY #&25
AF42  91 9C        ..    STA (&9C),Y
AF44  88           .     DEY
AF45  68           h     PLA
AF46  91 9C        ..    STA (&9C),Y
AF48  A2 0B        ..    LDX #&0B
AF4A  A0 0B        ..    LDY #&0B
AF4C  BD 45 B0     .E.   LDA &B045,X
AF4F  C9 FD        ..    CMP #&FD
AF51  F0 08        ..    BEQ &AF5B
AF53  C9 FC        ..    CMP #&FC
AF55  D0 02        ..    BNE &AF59
AF57  A5 9D        ..    LDA &9D
AF59  91 9E        ..    STA (&9E),Y
AF5B  88           .     DEY
AF5C  CA           .     DEX
AF5D  10 ED        ..    BPL &AF4C
AF5F  A9 22        ."    LDA #&22
AF61  85 9A        ..    STA &9A
AF63  A5 9D        ..    LDA &9D
AF65  85 9B        ..    STA &9B
AF67  20 89 9B      ..   JSR &9B89
AF6A  20 2C 9B      ,.   JSR &9B2C
AF6D  A9 00        ..    LDA #&00
AF6F  85 9A        ..    STA &9A
AF71  A5 9F        ..    LDA &9F
AF73  85 9B        ..    STA &9B
AF75  20 BE 98      ..   JSR &98BE
AF78  A0 2E        ..    LDY #&2E
AF7A  B1 9C        ..    LDA (&9C),Y
AF7C  AA           .     TAX
AF7D  29 07        ).    AND #&07
AF7F  D0 15        ..    BNE &AF96
AF81  68           h     PLA
AF82  68           h     PLA
AF83  85 D0        ..    STA &D0
AF85  A9 00        ..    LDA #&00
AF87  20 B6 AE      ..   JSR &AEB6
AF8A  20 DA AE      ..   JSR &AEDA
AF8D  AD 6A 0D     .j.   LDA &0D6A
AF90  29 F0        ).    AND #&F0
AF92  8D 6A 0D     .j.   STA &0D6A
AF95  60           `     RTS
AF96  68           h     PLA
AF97  3A           :     DEC A
AF98  D0 8E        ..    BNE &AF28
AF9A  CA           .     DEX
AF9B  D0 12        ..    BNE &AFAF
AF9D  A9 A6        ..    LDA #&A6
AF9F  20 C0 99      ..   JSR &99C0
AFA2  50 72        Pr    BVC &B016
AFA4  69 6E        in    ADC #&6E
AFA6  74 65        te    STZ &65,X
AFA8  72 20        r     ADC (&20)
AFAA  62            b     ...
AFAB  75 73        us    ADC &73,X
AFAD  79 00 C9     y..   ADC &C900,Y
AFB0  05 D0        ..    ORA &D0
AFB2  16 A9        ..    ASL &A9,X
AFB4  AB            .     ...
AFB5  20 C0 99      ..   JSR &99C0
AFB8  50 72        Pr    BVC &B02C
AFBA  69 6E        in    ADC #&6E
AFBC  74 65        te    STZ &65,X
AFBE  72 20        r     ADC (&20)
AFC0  6F 66        of    BBR6 &B028
AFC2  66 20        f     ROR &20
AFC4  6C 69 6E     lin   JMP (&6E69)
AFC7  65 00        e.    ADC &00
AFC9  A9 A7        ..    LDA #&A7
AFCB  20 C0 99      ..   JSR &99C0
AFCE  50 72        Pr    BVC &B042
AFD0  69 6E        in    ADC #&6E
AFD2  74 65        te    STZ &65,X
AFD4  72 20        r     ADC (&20)
AFD6  6A           j     ROR A
AFD7  61 6D        am    ADC (&6D,X)
AFD9  6D 65 64     med   ADC &6465
AFDC  00           .     BRK
AFDD  86 9A        ..    STX &9A
AFDF  84 9B        ..    STY &9B
AFE1  48           H     PHA
AFE2  09 00        ..    ORA #&00
AFE4  F0 1D        ..    BEQ &B003
AFE6  A2 FF        ..    LDX #&FF
AFE8  A8           .     TAY
AFE9  98           .     TYA
AFEA  E8           .     INX
AFEB  DD 30 C2     .0.   CMP &C230,X
AFEE  F0 08        ..    BEQ &AFF8
AFF0  E0 0F        ..    CPX #&0F
AFF2  D0 F5        ..    BNE &AFE9
AFF4  A9 00        ..    LDA #&00
AFF6  F0 0B        ..    BEQ &B003
AFF8  A8           .     TAY
AFF9  20 57 B9      W.   JSR &B957
AFFC  D0 EB        ..    BNE &AFE9
AFFE  BD 60 C2     .`.   LDA &C260,X
B001  29 01        ).    AND #&01
B003  A0 00        ..    LDY #&00
B005  11 9A        ..    ORA (&9A),Y
B007  48           H     PHA
B008  91 9A        ..    STA (&9A),Y
B00A  20 2C 9B      ,.   JSR &9B2C
B00D  A9 FF        ..    LDA #&FF
B00F  A0 08        ..    LDY #&08
B011  91 9A        ..    STA (&9A),Y
B013  C8           .     INY
B014  91 9A        ..    STA (&9A),Y
B016  68           h     PLA
B017  AA           .     TAX
B018  A0 D1        ..    LDY #&D1
B01A  68           h     PLA
B01B  48           H     PHA
B01C  F0 02        ..    BEQ &B020
B01E  A0 90        ..    LDY #&90
B020  98           .     TYA
B021  A0 01        ..    LDY #&01
B023  91 9A        ..    STA (&9A),Y
B025  8A           .     TXA
B026  88           .     DEY
B027  48           H     PHA
B028  A9 7F        ..    LDA #&7F
B02A  91 9A        ..    STA (&9A),Y
B02C  20 BE 98      ..   JSR &98BE
B02F  68           h     PLA
B030  48           H     PHA
B031  51 9A        Q.    EOR (&9A),Y
B033  6A           j     ROR A
B034  B0 F2        ..    BCS &B028
B036  68           h     PLA
B037  68           h     PLA
B038  60           `     RTS
B039  80 9F        ..    BRA &AFDA
B03B  00           .     BRK
B03C  00           .     BRK
B03D  B9 8E FF     ...   LDA &FF8E,Y
B040  FF C1        ..    BBS7 &B003
B042  8E FF FF     ...   STX &FFFF
B045  7F 9E        ..    BBR7 &AFE5
B047  FD FD 2E     ...   SBC &2EFD,X
B04A  FC            .     ...
B04B  FF FF        ..    BBS7 &B04C
B04D  31 FC        1.    AND (&FC),Y
B04F  FF FF        ..    BBS7 &B050
B051  A5 AA        ..    LDA &AA
B053  48           H     PHA
B054  A9 E9        ..    LDA #&E9
B056  85 9E        ..    STA &9E
B058  A0 00        ..    LDY #&00
B05A  84 AA        ..    STY &AA
B05C  AD 50 03     .P.   LDA &0350
B05F  91 9E        ..    STA (&9E),Y
B061  E6 9E        ..    INC &9E
B063  AD 51 03     .Q.   LDA &0351
B066  48           H     PHA
B067  98           .     TYA
B068  91 9E        ..    STA (&9E),Y
B06A  A6 9E        ..    LDX &9E
B06C  A4 9F        ..    LDY &9F
B06E  A9 0B        ..    LDA #&0B
B070  20 F1 FF      ..   JSR osword
B073  68           h     PLA
B074  A0 00        ..    LDY #&00
B076  91 9E        ..    STA (&9E),Y
B078  C8           .     INY
B079  B1 9E        ..    LDA (&9E),Y
B07B  48           H     PHA
B07C  A6 9E        ..    LDX &9E
B07E  E6 9E        ..    INC &9E
B080  E6 AA        ..    INC &AA
B082  88           .     DEY
B083  A5 AA        ..    LDA &AA
B085  E0 F9        ..    CPX #&F9
B087  D0 DF        ..    BNE &B068
B089  68           h     PLA
B08A  84 AA        ..    STY &AA
B08C  E6 9E        ..    INC &9E
B08E  20 9D B0      ..   JSR &B09D
B091  E6 9E        ..    INC &9E
B093  68           h     PLA
B094  85 AA        ..    STA &AA
B096  AD 69 0D     .i.   LDA &0D69
B099  8D 68 0D     .h.   STA &0D68
B09C  60           `     RTS
B09D  AD 55 03     .U.   LDA &0355
B0A0  AA           .     TAX
B0A1  09 40        .@    ORA #&40
B0A3  91 9E        ..    STA (&9E),Y
B0A5  E6 9E        ..    INC &9E
B0A7  98           .     TYA
B0A8  91 9E        ..    STA (&9E),Y
B0AA  BD CE B0     ...   LDA &B0CE,X
B0AD  A2 00        ..    LDX #&00
B0AF  E6 9E        ..    INC &9E
B0B1  81 9E        ..    STA (&9E,X)
B0B3  20 B6 B0      ..   JSR &B0B6
B0B6  A2 00        ..    LDX #&00
B0B8  A4 AA        ..    LDY &AA
B0BA  E6 AA        ..    INC &AA
B0BC  E6 9E        ..    INC &9E
B0BE  B9 CC B0     ...   LDA &B0CC,Y
B0C1  A0 FF        ..    LDY #&FF
B0C3  20 F4 FF      ..   JSR osbyte
B0C6  8A           .     TXA
B0C7  A2 00        ..    LDX #&00
B0C9  81 9E        ..    STA (&9E,X)
B0CB  60           `     RTS
B0CC  C2            .     ...
B0CD  C3            .     ...
B0CE  30 30        00    BMI &B100
B0D0  30 40        0@    BMI &B112
B0D2  58           X     CLI
B0D3  58           X     CLI
B0D4  60           `     RTS
B0D5  7C 98 48     |.H   JMP (&4898,X)
B0D8  20 04 B3      ..   JSR &B304
B0DB  20 B4 B3      ..   JSR &B3B4
B0DE  C9 0D        ..    CMP #&0D
B0E0  D0 04        ..    BNE &B0E6
B0E2  A2 02        ..    LDX #&02
B0E4  D0 0F        ..    BNE &B0F5
B0E6  A9 FF        ..    LDA #&FF
B0E8  85 B4        ..    STA &B4
B0EA  20 BD 92      ..   JSR &92BD
B0ED  A2 1B        ..    LDX #&1B
B0EF  CA           .     DEX
B0F0  DD 09 B1     ...   CMP &B109,X
B0F3  90 FA        ..    BCC &B0EF
B0F5  8E 05 C1     ...   STX &C105
B0F8  68           h     PLA
B0F9  A8           .     TAY
B0FA  20 A8 B3      ..   JSR &B3A8
B0FD  20 61 B2      a.   JSR &B261
B100  A2 01        ..    LDX #&01
B102  20 D6 B2      ..   JSR &B2D6
B105  A0 1B        ..    LDY #&1B
B107  4C 8A 97     L..   JMP &978A
B10A  00           .     BRK
B10B  0A           .     ASL A
B10C  14 1D        ..    TRB &1D
B10E  27 31        '1    RMB2 &31
B110  3B            ;     ...
B111  45 4F        EO    EOR &4F
B113  58           X     CLI
B114  62            b     ...
B115  6C 76 80     lv.   JMP (&8076)
B118  8A           .     TXA
B119  94 9D        ..    STY &9D
B11B  A7 B1        ..    SMB2 &B1
B11D  BB            .     ...
B11E  C5 CF        ..    CMP &CF
B120  D8           .     CLD
B121  E2            .     ...
B122  EC F6 FF     ...   CPX &FFF6
B125  28           (     PLP
B126  0A           .     ASL A
B127  6E 71 C2     nq.   ROR &C271
B12A  38           8     SEC
B12B  B0 29        .)    BCS &B156
B12D  6E 71 C2     nq.   ROR &C271
B130  38           8     SEC
B131  B0 09        ..    BCS &B13C
B133  20 DA 93      ..   JSR &93DA
B136  A0 00        ..    LDY #&00
B138  6E 71 C2     nq.   ROR &C271
B13B  18           .     CLC
B13C  2E 71 C2     .q.   ROL &C271
B13F  A9 FF        ..    LDA #&FF
B141  85 BA        ..    STA &BA
B143  A9 01        ..    LDA #&01
B145  85 B7        ..    STA &B7
B147  A9 03        ..    LDA #&03
B149  85 B5        ..    STA &B5
B14B  D0 16        ..    BNE &B163
B14D  20 DE 93      ..   JSR &93DE
B150  A0 00        ..    LDY #&00
B152  6E 71 C2     nq.   ROR &C271
B155  18           .     CLC
B156  2E 71 C2     .q.   ROL &C271
B159  A9 03        ..    LDA #&03
B15B  85 BA        ..    STA &BA
B15D  85 B7        ..    STA &B7
B15F  A9 0B        ..    LDA #&0B
B161  85 B5        ..    STA &B5
B163  20 A8 B3      ..   JSR &B3A8
B166  A9 FF        ..    LDA #&FF
B168  85 98        ..    STA &98
B16A  A9 06        ..    LDA #&06
B16C  8D 05 C1     ...   STA &C105
B16F  20 61 B2      a.   JSR &B261
B172  A2 01        ..    LDX #&01
B174  20 D6 B2      ..   JSR &B2D6
B177  AD 71 C2     .q.   LDA &C271
B17A  4A           J     LSR A
B17B  90 02        ..    BCC &B17F
B17D  09 40        .@    ORA #&40
B17F  2A           *     ROL A
B180  8D 71 C2     .q.   STA &C271
B183  A0 12        ..    LDY #&12
B185  20 8A 97      ..   JSR &978A
B188  A2 03        ..    LDX #&03
B18A  20 4F B2      O.   JSR &B24F
B18D  20 95 92      ..   JSR &9295
B190  28           (     PLP
B191  AD 13 C1     ...   LDA &C113
B194  20 38 B3      8.   JSR &B338
B197  20 95 92      ..   JSR &9295
B19A  29 20        )     AND #&20
B19C  20 20 20           JSR &2020
B19F  20 AC 12      ..   JSR &12AC
B1A2  C1 D0        ..    CMP (&D0,X)
B1A4  0B            .     ...
B1A5  20 95 92      ..   JSR &9295
B1A8  4F 77        Ow    BBR4 &B221
B1AA  6E 65 72     ner   ROR &7265
B1AD  0D D0 0A     ...   ORA &0AD0
B1B0  20 95 92      ..   JSR &9295
B1B3  50 75        Pu    BVC &B22A
B1B5  62            b     ...
B1B6  6C 69 63     lic   JMP (&6369)
B1B9  0D AD 71     ..q   ORA &71AD
B1BC  C2            .     ...
B1BD  48           H     PHA
B1BE  20 04 B3      ..   JSR &B304
B1C1  A0 15        ..    LDY #&15
B1C3  20 8A 97      ..   JSR &978A
B1C6  E8           .     INX
B1C7  A0 10        ..    LDY #&10
B1C9  20 51 B2      Q.   JSR &B251
B1CC  20 95 92      ..   JSR &9295
B1CF  20 20 20           JSR &2020
B1D2  20 4F 70      Op   JSR &704F
B1D5  74 69        ti    STZ &69,X
B1D7  6F 6E        on    BBR6 &B247
B1D9  20 AD 05      ..   JSR &05AD
B1DC  C0 AA        ..    CPY #&AA
B1DE  20 57 92      W.   JSR &9257
B1E1  20 95 92      ..   JSR &9295
B1E4  20 28 BC      (.   JSR &BC28
B1E7  CD B2 B9     ...   CMP &B9B2
B1EA  D1 B2        ..    CMP (&B2),Y
B1EC  30 06        0.    BMI &B1F4
B1EE  20 06 92      ..   JSR &9206
B1F1  C8           .     INY
B1F2  D0 F5        ..    BNE &B1E9
B1F4  20 95 92      ..   JSR &9295
B1F7  29 0D        ).    AND #&0D
B1F9  44            D     ...
B1FA  69 72        ir    ADC #&72
B1FC  2E 20 A2     . .   ROL &A220
B1FF  11 20        .     ORA (&20),Y
B201  4F B2        O.    BBR4 &B1B5
B203  20 95 92      ..   JSR &9295
B206  20 20 20           JSR &2020
B209  20 20 4C       L   JSR &4C20
B20C  69 62        ib    ADC #&62
B20E  2E 20 A2     . .   ROL &A220
B211  1B            .     ...
B212  20 4F B2      O.   JSR &B24F
B215  20 04 92      ..   JSR &9204
B218  68           h     PLA
B219  8D 71 C2     .q.   STA &C271
B21C  8C 06 C1     ...   STY &C106
B21F  84 B4        ..    STY &B4
B221  A6 B5        ..    LDX &B5
B223  8E 07 C1     ...   STX &C107
B226  A6 B7        ..    LDX &B7
B228  8E 05 C1     ...   STX &C105
B22B  A2 03        ..    LDX #&03
B22D  20 D6 B2      ..   JSR &B2D6
B230  A0 03        ..    LDY #&03
B232  20 8A 97      ..   JSR &978A
B235  E8           .     INX
B236  AD 05 C1     ...   LDA &C105
B239  F0 21        .!    BEQ &B25C
B23B  48           H     PHA
B23C  C8           .     INY
B23D  B9 05 C1     ...   LDA &C105,Y
B240  10 FA        ..    BPL &B23C
B242  99 04 C1     ...   STA &C104,Y
B245  20 19 B3      ..   JSR &B319
B248  68           h     PLA
B249  18           .     CLC
B24A  65 B4        e.    ADC &B4
B24C  A8           .     TAY
B24D  D0 CD        ..    BNE &B21C
B24F  A0 0A        ..    LDY #&0A
B251  BD 05 C1     ...   LDA &C105,X
B254  20 06 92      ..   JSR &9206
B257  E8           .     INX
B258  88           .     DEY
B259  D0 F6        ..    BNE &B251
B25B  60           `     RTS
B25C  4C 04 92     L..   JMP &9204
B25F  A0 00        ..    LDY #&00
B261  20 00 9C      ..   JSR &9C00
B264  AD 30 C0     .0.   LDA &C030
B267  49 26        I&    EOR #&26
B269  D0 46        .F    BNE &B2B1
B26B  AD 71 C2     .q.   LDA &C271
B26E  09 40        .@    ORA #&40
B270  8D 71 C2     .q.   STA &C271
B273  20 86 B2      ..   JSR &B286
B276  CA           .     DEX
B277  AD 30 C0     .0.   LDA &C030
B27A  49 2E        I.    EOR #&2E
B27C  D0 2C        .,    BNE &B2AA
B27E  AD 31 C0     .1.   LDA &C031
B281  49 0D        I.    EOR #&0D
B283  F0 29        .)    BEQ &B2AE
B285  CA           .     DEX
B286  8A           .     TXA
B287  48           H     PHA
B288  A2 FF        ..    LDX #&FF
B28A  E8           .     INX
B28B  BD 31 C0     .1.   LDA &C031,X
B28E  9D 30 C0     .0.   STA &C030,X
B291  49 0D        I.    EOR #&0D
B293  D0 F5        ..    BNE &B28A
B295  8A           .     TXA
B296  F0 0F        ..    BEQ &B2A7
B298  BD 2F C0     ./.   LDA &C02F,X
B29B  49 20        I     EOR #&20
B29D  D0 08        ..    BNE &B2A7
B29F  A9 0D        ..    LDA #&0D
B2A1  9D 2F C0     ./.   STA &C02F,X
B2A4  CA           .     DEX
B2A5  D0 F1        ..    BNE &B298
B2A7  68           h     PLA
B2A8  AA           .     TAX
B2A9  60           `     RTS
B2AA  49 23        I#    EOR #&23
B2AC  F0 FB        ..    BEQ &B2A9
B2AE  4C 3E 94     L>.   JMP &943E
B2B1  49 1C        I.    EOR #&1C
B2B3  D0 F4        ..    BNE &B2A9
B2B5  AD 32 C0     .2.   LDA &C032
B2B8  49 2E        I.    EOR #&2E
B2BA  F0 04        ..    BEQ &B2C0
B2BC  49 23        I#    EOR #&23
B2BE  D0 E9        ..    BNE &B2A9
B2C0  AD 71 C2     .q.   LDA &C271
B2C3  09 40        .@    ORA #&40
B2C5  8D 71 C2     .q.   STA &C271
B2C8  20 86 B2      ..   JSR &B286
B2CB  CA           .     DEX
B2CC  60           `     RTS
B2CD  00           .     BRK
B2CE  2F 3C        /<    BBR2 &B30C
B2D0  63            c     ...
B2D1  4F 66        Of    BBR4 &B339
B2D3  66 A2        f.    ROR &A2
B2D5  00           .     BRK
B2D6  A0 00        ..    LDY #&00
B2D8  38           8     SEC
B2D9  B1 BE        ..    LDA (&BE),Y
B2DB  9D 05 C1     ...   STA &C105,X
B2DE  90 08        ..    BCC &B2E8
B2E0  C9 21        .!    CMP #&21
B2E2  49 26        I&    EOR #&26
B2E4  F0 C8        ..    BEQ &B2AE
B2E6  49 26        I&    EOR #&26
B2E8  E8           .     INX
B2E9  C8           .     INY
B2EA  49 0D        I.    EOR #&0D
B2EC  D0 EB        ..    BNE &B2D9
B2EE  BD 03 C1     ...   LDA &C103,X
B2F1  49 20        I     EOR #&20
B2F3  D0 08        ..    BNE &B2FD
B2F5  CA           .     DEX
B2F6  A9 0D        ..    LDA #&0D
B2F8  9D 04 C1     ...   STA &C104,X
B2FB  D0 F1        ..    BNE &B2EE
B2FD  A9 00        ..    LDA #&00
B2FF  60           `     RTS
B300  4C 6F 61     Loa   JMP &616F
B303  64 AD        d.    STZ &AD
B305  71 C2        q.    ADC (&C2),Y
B307  29 1F        ).    AND #&1F
B309  8D 71 C2     .q.   STA &C271
B30C  60           `     RTS
B30D  52 75        Ru    EOR (&75)
B30F  6E A2 00     n..   ROR &00A2
B312  BD 05 C1     ...   LDA &C105,X
B315  30 E8        0.    BMI &B2FF
B317  D0 15        ..    BNE &B32E
B319  A4 BA        ..    LDY &BA
B31B  30 0F        0.    BMI &B32C
B31D  C8           .     INY
B31E  98           .     TYA
B31F  29 03        ).    AND #&03
B321  85 BA        ..    STA &BA
B323  F0 07        ..    BEQ &B32C
B325  20 95 92      ..   JSR &9295
B328  20 20 D0       .   JSR &D020
B32B  05 A9        ..    ORA &A9
B32D  0D 20 06     . .   ORA &0620
B330  92 E8        ..    STA (&E8)
B332  D0 DE        ..    BNE &B312
B334  45 78        Ex    EOR &78
B336  65 63        ec    ADC &63
B338  A8           .     TAY
B339  A9 64        .d    LDA #&64
B33B  20 45 B3      E.   JSR &B345
B33E  A9 0A        ..    LDA #&0A
B340  20 45 B3      E.   JSR &B345
B343  A9 01        ..    LDA #&01
B345  85 B8        ..    STA &B8
B347  98           .     TYA
B348  A2 2F        ./    LDX #&2F
B34A  38           8     SEC
B34B  E8           .     INX
B34C  E5 B8        ..    SBC &B8
B34E  B0 FB        ..    BCS &B34B
B350  65 B8        e.    ADC &B8
B352  A8           .     TAY
B353  8A           .     TXA
B354  A6 B8        ..    LDX &B8
B356  20 06 92      ..   JSR &9206
B359  86 B8        ..    STX &B8
B35B  60           `     RTS
B35C  2C 69 97     ,i.   BIT &9769
B35F  A8           .     TAY
B360  A9 64        .d    LDA #&64
B362  20 6D B3      m.   JSR &B36D
B365  A9 0A        ..    LDA #&0A
B367  20 6D B3      m.   JSR &B36D
B36A  B8           .     CLV
B36B  A9 01        ..    LDA #&01
B36D  85 B8        ..    STA &B8
B36F  98           .     TYA
B370  A2 2F        ./    LDX #&2F
B372  38           8     SEC
B373  08           .     PHP
B374  E8           .     INX
B375  E5 B8        ..    SBC &B8
B377  B0 FB        ..    BCS &B374
B379  65 B8        e.    ADC &B8
B37B  A8           .     TAY
B37C  8A           .     TXA
B37D  28           (     PLP
B37E  50 04        P.    BVC &B384
B380  C9 30        .0    CMP #&30
B382  F0 07        ..    BEQ &B38B
B384  A6 B8        ..    LDX &B8
B386  20 E3 FF      ..   JSR osasci
B389  86 B8        ..    STX &B8
B38B  60           `     RTS
B38C  20 04 B3      ..   JSR &B304
B38F  A9 69        .i    LDA #&69
B391  8D 05 C1     ...   STA &C105
B394  A9 2E        ..    LDA #&2E
B396  8D 06 C1     ...   STA &C106
B399  20 A8 B3      ..   JSR &B3A8
B39C  20 5F B2      _.   JSR &B25F
B39F  A2 02        ..    LDX #&02
B3A1  20 D6 B2      ..   JSR &B2D6
B3A4  A8           .     TAY
B3A5  4C 56 8E     LV.   JMP &8E56
B3A8  48           H     PHA
B3A9  A5 BE        ..    LDA &BE
B3AB  85 F2        ..    STA &F2
B3AD  A5 BF        ..    LDA &BF
B3AF  85 F3        ..    STA &F3
B3B1  68           h     PLA
B3B2  60           `     RTS
B3B3  C8           .     INY
B3B4  B1 BE        ..    LDA (&BE),Y
B3B6  C9 20        .     CMP #&20
B3B8  F0 06        ..    BEQ &B3C0
B3BA  C9 0D        ..    CMP #&0D
B3BC  F0 09        ..    BEQ &B3C7
B3BE  D0 F3        ..    BNE &B3B3
B3C0  C8           .     INY
B3C1  B1 BE        ..    LDA (&BE),Y
B3C3  C9 20        .     CMP #&20
B3C5  F0 F9        ..    BEQ &B3C0
B3C7  60           `     RTS
B3C8  48           H     PHA
B3C9  A5 BE        ..    LDA &BE
B3CB  85 BB        ..    STA &BB
B3CD  A5 BF        ..    LDA &BF
B3CF  85 BC        ..    STA &BC
B3D1  68           h     PLA
B3D2  60           `     RTS
B3D3  98           .     TYA
B3D4  48           H     PHA
B3D5  20 D4 8C      ..   JSR &8CD4
B3D8  85 AF        ..    STA &AF
B3DA  68           h     PLA
B3DB  A8           .     TAY
B3DC  A9 00        ..    LDA #&00
B3DE  85 AE        ..    STA &AE
B3E0  60           `     RTS

; -----------------------------------------------------------------------------
; *PS handler
; -----------------------------------------------------------------------------
.
B3E1  A9 01        ..    LDA #&01
B3E3  2C 6A 0D     ,j.   BIT &0D6A
B3E6  D0 03        ..    BNE &B3EB
B3E8  4C 9D AF     L..   JMP &AF9D                         ; Print "Printer busy"
B3EB  20 D3 B3      ..   JSR &B3D3
B3EE  20 C8 B3      ..   JSR &B3C8
B3F1  5A           Z     PHY
B3F2  A0 21        .!    LDY #&21
B3F4  A9 00        ..    LDA #&00
B3F6  91 9E        ..    STA (&9E),Y
B3F8  7A           z     PLY
B3F9  B1 BB        ..    LDA (&BB),Y
B3FB  C9 0D        ..    CMP #&0D
B3FD  F0 1F        ..    BEQ &B41E
B3FF  B8           .     CLV
B400  20 A1 93      ..   JSR &93A1
B403  90 1C        ..    BCC &B421
B405  5A           Z     PHY
B406  20 E5 B4      ..   JSR &B4E5
B409  7A           z     PLY
B40A  20 DA A3      ..   JSR &A3DA
B40D  4C B4 B4     L..   JMP &B4B4
B410  A0 18        ..    LDY #&18
B412  A2 F8        ..    LDX #&F8
B414  BD C1 8D     ...   LDA &8DC1,X
B417  91 9C        ..    STA (&9C),Y
B419  C8           .     INY
B41A  E8           .     INX
B41B  D0 F7        ..    BNE &B414
B41D  60           `     RTS
B41E  2C 69 97     ,i.   BIT &9769
B421  84 AC        ..    STY &AC
B423  70 2C        p,    BCS &B451
B425  A2 06        ..    LDX #&06
B427  A0 18        ..    LDY #&18
B429  A9 20        .     LDA #&20
B42B  91 9C        ..    STA (&9C),Y
B42D  C8           .     INY
B42E  CA           .     DEX
B42F  D0 FA        ..    BNE &B42B
B431  20 A8 B3      ..   JSR &B3A8
B434  A4 AC        ..    LDY &AC
B436  20 C2 FF      ..   JSR gsinit
B439  F0 16        ..    BEQ &B451
B43B  A2 06        ..    LDX #&06
B43D  84 AC        ..    STY &AC
B43F  A0 18        ..    LDY #&18
B441  84 AD        ..    STY &AD
B443  A4 AC        ..    LDY &AC
B445  20 C5 FF      ..   JSR gsread
B448  84 AC        ..    STY &AC
B44A  B0 05        ..    BCS &B451
B44C  20 E8 B6      ..   JSR &B6E8
B44F  D0 F2        ..    BNE &B443
B451  20 68 B5      h.   JSR &B568
B454  20 2C 9B      ,.   JSR &9B2C
B457  20 F1 B4      ..   JSR &B4F1
B45A  20 E5 B4      ..   JSR &B4E5
B45D  A9 00        ..    LDA #&00
B45F  AA           .     TAX
B460  A0 20        .     LDY #&20
B462  91 9C        ..    STA (&9C),Y
B464  68           h     PLA
B465  F0 29        .)    BEQ &B490
B467  48           H     PHA
B468  A8           .     TAY
B469  B1 9E        ..    LDA (&9E),Y
B46B  10 1B        ..    BPL &B488
B46D  20 6C 9D      l.   JSR &9D6C
B470  B1 9E        ..    LDA (&9E),Y
B472  85 AE        ..    STA &AE
B474  A1 AE        ..    LDA (&AE,X)
B476  29 07        ).    AND #&07
B478  D0 0E        ..    BNE &B488
B47A  88           .     DEY
B47B  B1 9E        ..    LDA (&9E),Y
B47D  85 B6        ..    STA &B6
B47F  88           .     DEY
B480  B1 9E        ..    LDA (&9E),Y
B482  85 B5        ..    STA &B5
B484  A0 20        .     LDY #&20
B486  91 9C        ..    STA (&9C),Y
B488  68           h     PLA
B489  A8           .     TAY
B48A  A9 3F        .?    LDA #&3F
B48C  91 9E        ..    STA (&9E),Y
B48E  D0 D4        ..    BNE &B464
B490  20 CA B4      ..   JSR &B4CA
B493  A0 20        .     LDY #&20
B495  B1 9C        ..    LDA (&9C),Y
B497  D0 0C        ..    BNE &B4A5
B499  20 6C 92      l.   JSR &926C
B49C  73            s     ...
B49D  74 69        ti    STZ &69,X
B49F  6C 6C 20     ll    JMP (&206C)
B4A2  B8           .     CLV
B4A3  50 0C        P.    BVC &B4B1
B4A5  20 6C 92      l.   JSR &926C
B4A8  6E 6F 77     now   ROR &776F
B4AB  20 A0 21      .!   JSR &21A0
B4AE  98           .     TYA
B4AF  91 9E        ..    STA (&9E),Y
B4B1  20 D1 A3      ..   JSR &A3D1
B4B4  A0 02        ..    LDY #&02
B4B6  A5 B5        ..    LDA &B5
B4B8  91 9E        ..    STA (&9E),Y
B4BA  C8           .     INY
B4BB  A5 B6        ..    LDA &B6
B4BD  91 9E        ..    STA (&9E),Y
B4BF  60           `     RTS
B4C0  20 6C 92      l.   JSR &926C
B4C3  46 69        Fi    LSR &69
B4C5  6C 65 B8     le.   JMP (&B865)
B4C8  50 0B        P.    BVC &B4D5
B4CA  20 6C 92      l.   JSR &926C
B4CD  50 72        Pr    BVC &B541
B4CF  69 6E        in    ADC #&6E
B4D1  74 65        te    STZ &65,X
B4D3  72 EA        r.    ADC (&EA)
B4D5  20 6C 92      l.   JSR &926C
B4D8  20 73 65      se   JSR &6573
B4DB  72 76        rv    ADC (&76)
B4DD  65 72        er    ADC &72
B4DF  20 69 73      is   JSR &7369
B4E2  20 EA 60      .`   JSR &60EA
B4E5  A0 02        ..    LDY #&02
B4E7  B1 9E        ..    LDA (&9E),Y
B4E9  85 B5        ..    STA &B5
B4EB  C8           .     INY
B4EC  B1 9E        ..    LDA (&9E),Y
B4EE  85 B6        ..    STA &B6
B4F0  60           `     RTS
B4F1  68           h     PLA
B4F2  85 AA        ..    STA &AA
B4F4  68           h     PLA
B4F5  85 AB        ..    STA &AB
B4F7  A9 00        ..    LDA #&00
B4F9  48           H     PHA
B4FA  A9 84        ..    LDA #&84
B4FC  85 AC        ..    STA &AC
B4FE  4E 61 0D     Na.   LSR &0D61
B501  A9 03        ..    LDA #&03
B503  20 FF A3      ..   JSR &A3FF
B506  B0 37        .7    BCS &B53F
B508  4A           J     LSR A
B509  4A           J     LSR A
B50A  AA           .     TAX
B50B  B1 9E        ..    LDA (&9E),Y
B50D  F0 30        .0    BEQ &B53F
B50F  C9 3F        .?    CMP #&3F
B511  F0 04        ..    BEQ &B517
B513  E8           .     INX
B514  8A           .     TXA
B515  D0 EC        ..    BNE &B503
B517  98           .     TYA
B518  48           H     PHA
B519  A9 7F        ..    LDA #&7F
B51B  91 9E        ..    STA (&9E),Y
B51D  C8           .     INY
B51E  A9 9E        ..    LDA #&9E
B520  91 9E        ..    STA (&9E),Y
B522  A9 00        ..    LDA #&00
B524  20 60 B5      `.   JSR &B560
B527  A5 AC        ..    LDA &AC
B529  91 9E        ..    STA (&9E),Y
B52B  18           .     CLC
B52C  08           .     PHP
B52D  69 03        i.    ADC #&03
B52F  28           (     PLP
B530  85 AC        ..    STA &AC
B532  20 59 B5      Y.   JSR &B559
B535  A5 AC        ..    LDA &AC
B537  91 9E        ..    STA (&9E),Y
B539  20 59 B5      Y.   JSR &B559
B53C  4C 13 B5     L..   JMP &B513
B53F  0E 61 0D     .a.   ASL &0D61
B542  A5 AB        ..    LDA &AB
B544  48           H     PHA
B545  A5 AA        ..    LDA &AA
B547  48           H     PHA
B548  A9 0A        ..    LDA #&0A
B54A  A8           .     TAY
B54B  AA           .     TAX
B54C  85 B4        ..    STA &B4
B54E  88           .     DEY
B54F  D0 FD        ..    BNE &B54E
B551  CA           .     DEX
B552  D0 FA        ..    BNE &B54E
B554  C6 B4        ..    DEC &B4
B556  D0 F6        ..    BNE &B54E
B558  60           `     RTS
B559  C8           .     INY
B55A  A5 AF        ..    LDA &AF
B55C  91 9E        ..    STA (&9E),Y
B55E  A9 FF        ..    LDA #&FF
B560  C8           .     INY
B561  91 9E        ..    STA (&9E),Y
B563  C8           .     INY
B564  91 9E        ..    STA (&9E),Y
B566  C8           .     INY
B567  60           `     RTS
B568  A0 18        ..    LDY #&18
B56A  B1 9C        ..    LDA (&9C),Y
B56C  48           H     PHA
B56D  C8           .     INY
B56E  C0 20        .     CPY #&20
B570  D0 F8        ..    BNE &B56A
B572  A0 17        ..    LDY #&17
B574  68           h     PLA
B575  91 9C        ..    STA (&9C),Y
B577  88           .     DEY
B578  C0 0F        ..    CPY #&0F
B57A  D0 F8        ..    BNE &B574
B57C  A5 9D        ..    LDA &9D
B57E  85 9B        ..    STA &9B
B580  A9 0C        ..    LDA #&0C
B582  85 9A        ..    STA &9A
B584  A0 03        ..    LDY #&03
B586  B9 8F B5     ...   LDA &B58F,Y
B589  91 9A        ..    STA (&9A),Y
B58B  88           .     DEY
B58C  10 F8        ..    BPL &B586
B58E  60           `     RTS
B58F  80 9F        ..    BRA &B530
B591  FF FF        ..    BBS7 &B592
B593  08           .     PHP
B594  A5 B6        ..    LDA &B6
B596  F0 0B        ..    BEQ &B5A3
B598  20 5F B3      _.   JSR &B35F
B59B  A9 2E        ..    LDA #ASC"."
B59D  20 E3 FF      ..   JSR osasci
B5A0  2C 69 97     ,i.   BIT &9769
B5A3  70 07        p.    BCS &B5AC
B5A5  20 6C 92      l.   JSR &926C
B5A8  20 20 20           JSR &2020
B5AB  20 A5 B5      ..   JSR &B5A5
B5AE  28           (     PLP
B5AF  4C 5F B3     L_.   JMP &B35F
B5B2  80 9F        ..    BRA &B553
B5B4  00           .     BRK
B5B5  00           .     BRK
B5B6  10 00        ..    BPL &B5B8
B5B8  FF FF        ..    BBS7 &B5B9
B5BA  18           .     CLC
B5BB  00           .     BRK
B5BC  FF FF        ..    BBS7 &B5BD

; -----------------------------------------------------------------------------
; *POLLPS handler
; -----------------------------------------------------------------------------
.pollps
B5BE  84 AC        ..    STY &AC
B5C0  20 D3 B3      ..   JSR &B3D3
B5C3  20 68 B5      h.   JSR &B568
B5C6  20 D1 B6      ..   JSR &B6D1
B5C9  A4 AC        ..    LDY &AC
B5CB  20 C8 B3      ..   JSR &B3C8
B5CE  B1 BB        ..    LDA (&BB),Y
B5D0  C9 0D        ..    CMP #&0D
B5D2  F0 2C        .,    BEQ &B600
B5D4  A2 06        ..    LDX #&06
B5D6  A0 10        ..    LDY #&10
B5D8  A9 20        .     LDA #&20
B5DA  91 9C        ..    STA (&9C),Y
B5DC  C8           .     INY
B5DD  CA           .     DEX
B5DE  D0 FA        ..    BNE &B5DA
B5E0  20 A8 B3      ..   JSR &B3A8
B5E3  A4 AC        ..    LDY &AC
B5E5  20 C2 FF      ..   JSR gsinit
B5E8  F0 16        ..    BEQ &B600
B5EA  A2 06        ..    LDX #&06
B5EC  84 AC        ..    STY &AC
B5EE  A0 10        ..    LDY #&10
B5F0  84 AD        ..    STY &AD
B5F2  A4 AC        ..    LDY &AC
B5F4  20 C5 FF      ..   JSR gsread
B5F7  84 AC        ..    STY &AC
B5F9  B0 05        ..    BCS &B600
B5FB  20 E8 B6      ..   JSR &B6E8
B5FE  D0 F2        ..    BNE &B5F2
B600  A9 80        ..    LDA #&80
B602  85 98        ..    STA &98
B604  20 2C 9B      ,.   JSR &9B2C
B607  20 F1 B4      ..   JSR &B4F1
B60A  20 CA B4      ..   JSR &B4CA
B60D  A0 21        .!    LDY #&21
B60F  B1 9E        ..    LDA (&9E),Y
B611  F0 1A        ..    BEQ &B62D
B613  20 6C 92      l.   JSR &926C
B616  22            "     ...
B617  A0 18        ..    LDY #&18
B619  B1 9C        ..    LDA (&9C),Y
B61B  C9 20        .     CMP #&20
B61D  F0 08        ..    BEQ &B627
B61F  20 E3 FF      ..   JSR osasci
B622  C8           .     INY
B623  C0 1E        ..    CPY #&1E
B625  D0 F2        ..    BNE &B619
B627  20 6C 92      l.   JSR &926C
B62A  22            "     ...
B62B  20 EA 20      .    JSR &20EA
B62E  E5 B4        ..    SBC &B4
B630  2C 69 97     ,i.   BIT &9769
B633  20 93 B5      ..   JSR &B593
B636  20 E7 FF      ..   JSR osnewl
B639  68           h     PLA
B63A  F0 65        .e    BEQ &B6A1
B63C  48           H     PHA
B63D  A8           .     TAY
B63E  B1 9E        ..    LDA (&9E),Y
B640  10 57        .W    BPL &B699
B642  C8           .     INY
B643  C8           .     INY
B644  B1 9E        ..    LDA (&9E),Y
B646  85 B5        ..    STA &B5
B648  C8           .     INY
B649  B1 9E        ..    LDA (&9E),Y
B64B  85 B6        ..    STA &B6
B64D  C8           .     INY
B64E  B1 9E        ..    LDA (&9E),Y
B650  85 AE        ..    STA &AE
B652  B8           .     CLV
B653  20 93 B5      ..   JSR &B593
B656  20 6C 92      l.   JSR &926C
B659  20 69 73      is   JSR &7369
B65C  20 A2 00      ..   JSR &00A2
B65F  A1 AE        ..    LDA (&AE,X)
B661  D0 0B        ..    BNE &B66E
B663  20 6C 92      l.   JSR &926C
B666  72 65        re    ADC (&65)
B668  61 64        ad    ADC (&64,X)
B66A  79 B8 50     y.P   ADC &50B8,Y
B66D  28           (     PLP
B66E  0A           .     ASL A
B66F  0A           .     ASL A
B670  0A           .     ASL A
B671  0A           .     ASL A
B672  B0 18        ..    BCS &B68C
B674  30 04        0.    BMI &B67A
B676  C9 60        .`    CMP #&60
B678  D0 0E        ..    BNE &B688
B67A  20 6C 92      l.   JSR &926C
B67D  6F 66        of    BBR6 &B6E5
B67F  66 20        f     ROR &20
B681  6C 69 6E     lin   JMP (&6E69)
B684  65 B8        e.    ADC &B8
B686  50 0E        P.    BVC &B696
B688  C9 10        ..    CMP #&10
B68A  F0 16        ..    BEQ &B6A2
B68C  20 6C 92      l.   JSR &926C
B68F  6A           j     ROR A
B690  61 6D        am    ADC (&6D,X)
B692  6D 65 64     med   ADC &6465
B695  EA           .     NOP
B696  20 E7 FF      ..   JSR osnewl
B699  68           h     PLA
B69A  A8           .     TAY
B69B  A9 3F        .?    LDA #&3F
B69D  91 9E        ..    STA (&9E),Y
B69F  D0 98        ..    BNE &B639
B6A1  60           `     RTS
B6A2  20 6C 92      l.   JSR &926C
B6A5  62            b     ...
B6A6  75 73        us    ADC &73,X
B6A8  79 E6 AE     y..   ADC &AEE6,Y
B6AB  A1 AE        ..    LDA (&AE,X)
B6AD  85 B5        ..    STA &B5
B6AF  F0 E5        ..    BEQ &B696
B6B1  20 6C 92      l.   JSR &926C
B6B4  20 77 69      wi   JSR &6977
B6B7  74 68        th    STZ &68,X
B6B9  20 73 74      st   JSR &7473
B6BC  61 74        at    ADC (&74,X)
B6BE  69 6F        io    ADC #&6F
B6C0  6E 20 E6     n .   ROR &E620
B6C3  AE A1 AE     ...   LDX &AEA1
B6C6  85 B6        ..    STA &B6
B6C8  2C 69 97     ,i.   BIT &9769
B6CB  20 93 B5      ..   JSR &B593
B6CE  B8           .     CLV
B6CF  50 C5        P.    BVC &B696
B6D1  A0 78        .x    LDY #&78
B6D3  B9 3A B5     .:.   LDA &B53A,Y
B6D6  C0 7D        .}    CPY #&7D
B6D8  F0 04        ..    BEQ &B6DE
B6DA  C0 81        ..    CPY #&81
B6DC  D0 02        ..    BNE &B6E0
B6DE  A5 9D        ..    LDA &9D
B6E0  91 AE        ..    STA (&AE),Y
B6E2  C8           .     INY
B6E3  C0 84        ..    CPY #&84
B6E5  D0 EC        ..    BNE &B6D3
B6E7  60           `     RTS
B6E8  A4 AD        ..    LDY &AD
B6EA  29 7F        ).    AND #&7F
B6EC  C9 61        .a    CMP #&61
B6EE  90 06        ..    BCC &B6F6
B6F0  C9 7B        .{    CMP #&7B
B6F2  B0 02        ..    BCS &B6F6
B6F4  29 5F        )_    AND #&5F
B6F6  91 9C        ..    STA (&9C),Y
B6F8  C8           .     INY
B6F9  84 AD        ..    STY &AD
B6FB  CA           .     DEX
B6FC  60           `     RTS
B6FD  A9 FF        ..    LDA #&FF
B6FF  D0 02        ..    BNE &B703
B701  A9 00        ..    LDA #&00
B703  08           .     PHP
B704  20 DD AA      ..   JSR &AADD
B707  A2 11        ..    LDX #&11
B709  20 B4 8E      ..   JSR &8EB4
B70C  98           .     TYA
B70D  28           (     PLP
B70E  F0 04        ..    BEQ &B714
B710  09 40        .@    ORA #&40
B712  D0 02        ..    BNE &B716
B714  29 BF        ).    AND #&BF
B716  A8           .     TAY
B717  A9 A2        ..    LDA #&A2
B719  A2 11        ..    LDX #&11
B71B  4C F4 FF     L..   JMP osbyte
B71E  20 04 B3      ..   JSR &B304
B721  A9 00        ..    LDA #&00
B723  85 B5        ..    STA &B5
B725  20 A8 B3      ..   JSR &B3A8
B728  20 61 B2      a.   JSR &B261
B72B  E8           .     INX
B72C  86 B6        ..    STX &B6
B72E  A9 01        ..    LDA #&01
B730  8D 05 C1     ...   STA &C105
B733  8D 07 C1     ...   STA &C107
B736  A6 B5        ..    LDX &B5
B738  8E 06 C1     ...   STX &C106
B73B  A2 03        ..    LDX #&03
B73D  20 D6 B2      ..   JSR &B2D6
B740  A0 03        ..    LDY #&03
B742  A9 80        ..    LDA #&80
B744  85 98        ..    STA &98
B746  20 8A 97      ..   JSR &978A
B749  AD 05 C1     ...   LDA &C105
B74C  D0 13        ..    BNE &B761
B74E  A9 0F        ..    LDA #&0F
B750  A2 01        ..    LDX #&01
B752  20 F4 FF      ..   JSR osbyte
B755  A9 7A        .z    LDA #&7A
B757  20 F4 FF      ..   JSR osbyte
B75A  A0 00        ..    LDY #&00
B75C  A9 78        .x    LDA #&78
B75E  4C F4 FF     L..   JMP osbyte
B761  AD 2F C1     ./.   LDA &C12F
B764  C9 4C        .L    CMP #&4C
B766  D0 05        ..    BNE &B76D
B768  E6 B5        ..    INC &B5
B76A  4C 2E B7     L..   JMP &B72E
B76D  C9 44        .D    CMP #&44
B76F  D0 05        ..    BNE &B776
B771  AD 30 C1     .0.   LDA &C130
B774  D0 EE        ..    BNE &B764
B776  A2 01        ..    LDX #&01
B778  A4 B6        ..    LDY &B6
B77A  BD 06 C1     ...   LDA &C106,X
B77D  20 06 92      ..   JSR &9206
B780  99 30 C0     .0.   STA &C030,Y
B783  C8           .     INY
B784  E8           .     INX
B785  E0 0C        ..    CPX #&0C
B787  D0 F1        ..    BNE &B77A
B789  20 95 92      ..   JSR &9295
B78C  28           (     PLP
B78D  3F 2F        ?/    BBR3 &B7BE
B78F  EA           .     NOP
B790  20 F6 B7      ..   JSR &B7F6
B793  C9 3F        .?    CMP #&3F
B795  D0 1B        ..    BNE &B7B2
B797  A9 0D        ..    LDA #&0D
B799  20 0C 92      ..   JSR &920C
B79C  A2 02        ..    LDX #&02
B79E  BD 05 C1     ...   LDA &C105,X
B7A1  20 06 92      ..   JSR &9206
B7A4  E8           .     INX
B7A5  E0 3E        .>    CPX #&3E
B7A7  D0 F5        ..    BNE &B79E
B7A9  20 95 92      ..   JSR &9295
B7AC  20 28 EA      (.   JSR &EA28
B7AF  20 F6 B7      ..   JSR &B7F6
B7B2  29 DF        ).    AND #&DF
B7B4  C9 59        .Y    CMP #&59
B7B6  D0 2A        .*    BNE &B7E2
B7B8  20 06 92      ..   JSR &9206
B7BB  A2 00        ..    LDX #&00
B7BD  BD 30 C0     .0.   LDA &C030,X
B7C0  C9 0D        ..    CMP #&0D
B7C2  F0 24        .$    BEQ &B7E8
B7C4  BD 30 C0     .0.   LDA &C030,X
B7C7  C9 0D        ..    CMP #&0D
B7C9  D0 02        ..    BNE &B7CD
B7CB  A9 2E        ..    LDA #&2E
B7CD  C9 20        .     CMP #&20
B7CF  D0 02        ..    BNE &B7D3
B7D1  A9 0D        ..    LDA #&0D
B7D3  9D 05 C1     ...   STA &C105,X
B7D6  E8           .     INX
B7D7  C9 0D        ..    CMP #&0D
B7D9  D0 E9        ..    BNE &B7C4
B7DB  A0 14        ..    LDY #&14
B7DD  20 8A 97      ..   JSR &978A
B7E0  C6 B5        ..    DEC &B5
B7E2  20 04 92      ..   JSR &9204
B7E5  4C 68 B7     Lh.   JMP &B768
B7E8  CA           .     DEX
B7E9  E8           .     INX
B7EA  BD 31 C0     .1.   LDA &C031,X
B7ED  9D 05 C1     ...   STA &C105,X
B7F0  C9 20        .     CMP #&20
B7F2  D0 F5        ..    BNE &B7E9
B7F4  F0 DB        ..    BEQ &B7D1
B7F6  20 95 92      ..   JSR &9295
B7F9  59 2F 4E     Y/N   EOR &4E2F,Y
B7FC  29 20        )     AND #&20
B7FE  A9 0F        ..    LDA #&0F
B800  A2 01        ..    LDX #&01
B802  20 F4 FF      ..   JSR osbyte
B805  20 E0 FF      ..   JSR osrdch
B808  90 03        ..    BCC &B80D
B80A  4C 95 98     L..   JMP &9895
B80D  60           `     RTS
B80E  A9 00        ..    LDA #&00
B810  A8           .     TAY
B811  99 00 C2     ...   STA &C200,Y
B814  C8           .     INY
B815  D0 FA        ..    BNE &B811
B817  A0 0B        ..    LDY #&0B
B819  B1 9C        ..    LDA (&9C),Y
B81B  38           8     SEC
B81C  E9 0C        ..    SBC #&0C
B81E  A8           .     TAY
B81F  A9 40        .@    LDA #&40
B821  99 00 C2     ...   STA &C200,Y
B824  88           .     DEY
B825  C0 B8        ..    CPY #&B8
B827  10 F8        ..    BPL &B821
B829  C8           .     INY
B82A  A9 C0        ..    LDA #&C0
B82C  99 00 C2     ...   STA &C200,Y
B82F  60           `     RTS
B830  08           .     PHP
B831  38           8     SEC
B832  E9 20        .     SBC #&20
B834  30 04        0.    BMI &B83A
B836  C9 10        ..    CMP #&10
B838  90 02        ..    BCC &B83C
B83A  A9 FF        ..    LDA #&FF
B83C  28           (     PLP
B83D  AA           .     TAX
B83E  60           `     RTS
B83F  C9 20        .     CMP #&20
B841  90 04        ..    BCC &B847
B843  C9 30        .0    CMP #&30
B845  90 2B        .+    BCC &B872
B847  48           H     PHA
B848  A9 DE        ..    LDA #&DE
B84A  20 C0 99      ..   JSR &99C0
B84D  4E 65 74     Net   LSR &7465
B850  20 63 68      ch   JSR &6863
B853  61 6E        an    ADC (&6E,X)
B855  6E 65 6C     nel   ROR &6C65
B858  00           .     BRK
B859  20 6E 6F      no   JSR &6F6E
B85C  74 20        t     STZ &20,X
B85E  6F 6E        on    BBR6 &B8CE
B860  20 74 68      th   JSR &6874
B863  69 73        is    ADC #&73
B865  20 66 69      fi   JSR &6966
B868  6C 65 20     le    JMP (&2065)
B86B  73            s     ...
B86C  65 72        er    ADC &72
B86E  76 65        ve    ROR &65,X
B870  72 00        r.    ADC (&00)
B872  48           H     PHA
B873  38           8     SEC
B874  E9 20        .     SBC #&20
B876  AA           .     TAX
B877  BD 30 C2     .0.   LDA &C230,X
B87A  F0 CC        ..    BEQ &B848
B87C  20 57 B9      W.   JSR &B957
B87F  D0 05        ..    BNE &B886
B881  68           h     PLA
B882  BD 60 C2     .`.   LDA &C260,X
B885  60           `     RTS
B886  A9 DE        ..    LDA #&DE
B888  8D 01 01     ...   STA &0101
B88B  A9 00        ..    LDA #&00
B88D  8D 00 01     ...   STA &0100
B890  AA           .     TAX
B891  E8           .     INX
B892  BD 4C B8     .L.   LDA &B84C,X
B895  9D 01 01     ...   STA &0101,X
B898  D0 F7        ..    BNE &B891
B89A  86 B2        ..    STX &B2
B89C  86 B4        ..    STX &B4
B89E  68           h     PLA
B89F  20 5E 9A      ^.   JSR &9A5E
B8A2  A4 B4        ..    LDY &B4
B8A4  C8           .     INY
B8A5  E8           .     INX
B8A6  B9 4C B8     .L.   LDA &B84C,Y
B8A9  9D 01 01     ...   STA &0101,X
B8AC  D0 F6        ..    BNE &B8A4
B8AE  4C 00 01     L..   JMP &0100
B8B1  AD C9 C2     ...   LDA &C2C9
B8B4  20 52 BD      R.   JSR &BD52
B8B7  20 3F B8      ?.   JSR &B83F
B8BA  29 02        ).    AND #&02
B8BC  F0 14        ..    BEQ &B8D2
B8BE  A9 A8        ..    LDA #&A8
B8C0  20 C0 99      ..   JSR &99C0
B8C3  49 73        Is    EOR #&73
B8C5  20 61 20      a    JSR &2061
B8C8  64 69        di    STZ &69
B8CA  72 65        re    ADC (&65)
B8CC  63            c     ...
B8CD  74 6F        to    STZ &6F,X
B8CF  72 79        ry    ADC (&79)
B8D1  00           .     BRK
B8D2  60           `     RTS
B8D3  48           H     PHA
B8D4  A2 20        .     LDX #&20
B8D6  BD 10 C2     ...   LDA &C210,X
B8D9  F0 09        ..    BEQ &B8E4
B8DB  E8           .     INX
B8DC  E0 30        .0    CPX #&30
B8DE  D0 F6        ..    BNE &B8D6
B8E0  68           h     PLA
B8E1  A9 00        ..    LDA #&00
B8E3  60           `     RTS
B8E4  68           h     PLA
B8E5  9D 10 C2     ...   STA &C210,X
B8E8  A9 00        ..    LDA #&00
B8EA  9D E0 C1     ...   STA &C1E0,X
B8ED  9D F0 C1     ...   STA &C1F0,X
B8F0  9D 00 C2     ...   STA &C200,X
B8F3  AD 00 C0     ...   LDA &C000
B8F6  9D 20 C2     . .   STA &C220,X
B8F9  AD 01 C0     ...   LDA &C001
B8FC  9D 30 C2     .0.   STA &C230,X
B8FF  8A           .     TXA
B900  48           H     PHA
B901  38           8     SEC
B902  E9 20        .     SBC #&20
B904  AA           .     TAX
B905  68           h     PLA
B906  60           `     RTS
B907  48           H     PHA
B908  A9 00        ..    LDA #&00
B90A  20 D3 B8      ..   JSR &B8D3
B90D  D0 19        ..    BNE &B928
B90F  A9 C0        ..    LDA #&C0
B911  20 C0 99      ..   JSR &99C0
B914  54            T     ...
B915  6F 6F        oo    BBR6 &B986
B917  20 6D 61      ma   JSR &616D
B91A  6E 79 20     ny    ROR &2079
B91D  6F 70        op    BBR6 &B98F
B91F  65 6E        en    ADC &6E
B921  20 66 69      fi   JSR &6966
B924  6C 65 73     les   JMP (&7365)
B927  00           .     BRK
B928  68           h     PLA
B929  60           `     RTS
B92A  18           .     CLC
B92B  2C 69 97     ,i.   BIT &9769
B92E  A2 10        ..    LDX #&10
B930  CA           .     DEX
B931  10 01        ..    BPL &B934
B933  60           `     RTS
B934  BD 60 C2     .`.   LDA &C260,X
B937  A8           .     TAY
B938  29 02        ).    AND #&02
B93A  F0 0C        ..    BEQ &B948
B93C  50 F2        P.    BVC &B930
B93E  90 08        ..    BCC &B948
B940  98           .     TYA
B941  29 DF        ).    AND #&DF
B943  9D 60 C2     .`.   STA &C260,X
B946  70 E8        p.    BCS &B930
B948  20 57 B9      W.   JSR &B957
B94B  D0 E3        ..    BNE &B930
B94D  A9 00        ..    LDA #&00
B94F  9D 60 C2     .`.   STA &C260,X
B952  9D 30 C2     .0.   STA &C230,X
B955  F0 D9        ..    BEQ &B930
B957  BD 40 C2     .@.   LDA &C240,X
B95A  4D 00 C0     M..   EOR &C000
B95D  D0 06        ..    BNE &B965
B95F  BD 50 C2     .P.   LDA &C250,X
B962  4D 01 C0     M..   EOR &C001
B965  60           `     RTS
B966  AE C8 C2     ...   LDX &C2C8
B969  2C 69 97     ,i.   BIT &9769
B96C  E8           .     INX
B96D  E0 10        ..    CPX #&10
B96F  D0 02        ..    BNE &B973
B971  A2 00        ..    LDX #&00
B973  EC C8 C2     ...   CPX &C2C8
B976  D0 05        ..    BNE &B97D
B978  50 0E        P.    BVC &B988
B97A  B8           .     CLV
B97B  50 EF        P.    BVC &B96C
B97D  BD B8 C2     ...   LDA &C2B8,X
B980  2A           *     ROL A
B981  10 E9        ..    BPL &B96C
B983  29 04        ).    AND #&04
B985  D0 17        ..    BNE &B99E
B987  CA           .     DEX
B988  E8           .     INX
B989  E0 10        ..    CPX #&10
B98B  D0 02        ..    BNE &B98F
B98D  A2 00        ..    LDX #&00
B98F  BD B8 C2     ...   LDA &C2B8,X
B992  2A           *     ROL A
B993  10 F3        ..    BPL &B988
B995  38           8     SEC
B996  6A           j     ROR A
B997  9D B8 C2     ...   STA &C2B8,X
B99A  AE C8 C2     ...   LDX &C2C8
B99D  60           `     RTS
B99E  70 CC        p.    BCS &B96C
B9A0  BD B8 C2     ...   LDA &C2B8,X
B9A3  29 20        )     AND #&20
B9A5  D0 C5        ..    BNE &B96C
B9A7  F0 DE        ..    BEQ &B987
B9A9  A0 01        ..    LDY #&01
B9AB  8C D0 C2     ...   STY &C2D0
B9AE  88           .     DEY
B9AF  8C CB C2     ...   STY &C2CB
B9B2  8C CF C2     ...   STY &C2CF
B9B5  8C D6 C2     ...   STY &C2D6
B9B8  98           .     TYA
B9B9  A2 02        ..    LDX #&02
B9BB  9D D1 C2     ...   STA &C2D1,X
B9BE  CA           .     DEX
B9BF  10 FA        ..    BPL &B9BB
B9C1  8E CD C2     ...   STX &C2CD
B9C4  8E CE C2     ...   STX &C2CE
B9C7  A2 CA        ..    LDX #&CA
B9C9  A0 C2        ..    LDY #&C2
B9CB  60           `     RTS
B9CC  20 A7 90      ..   JSR &90A7
B9CF  8E C8 C2     ...   STX &C2C8
B9D2  BD B8 C2     ...   LDA &C2B8,X
B9D5  6A           j     ROR A
B9D6  90 5A        .Z    BCC &BA32
B9D8  AD D4 C2     ...   LDA &C2D4
B9DB  48           H     PHA
B9DC  AD D5 C2     ...   LDA &C2D5
B9DF  48           H     PHA
B9E0  BD 78 C2     .x.   LDA &C278,X
B9E3  8D D4 C2     ...   STA &C2D4
B9E6  BD 88 C2     ...   LDA &C288,X
B9E9  8D D5 C2     ...   STA &C2D5
B9EC  20 A9 B9      ..   JSR &B9A9
B9EF  CE CF C2     ...   DEC &C2CF
B9F2  CE D0 C2     ...   DEC &C2D0
B9F5  AE C8 C2     ...   LDX &C2C8
B9F8  8A           .     TXA
B9F9  18           .     CLC
B9FA  69 C3        i.    ADC #&C3
B9FC  8D CC C2     ...   STA &C2CC
B9FF  BD B8 C2     ...   LDA &C2B8,X
BA02  29 20        )     AND #&20
BA04  F0 06        ..    BEQ &BA0C
BA06  BD 98 C2     ...   LDA &C298,X
BA09  8D CF C2     ...   STA &C2CF
BA0C  BD A8 C2     ...   LDA &C2A8,X
BA0F  8D CA C2     ...   STA &C2CA
BA12  AA           .     TAX
BA13  20 4D BD      M.   JSR &BD4D
BA16  48           H     PHA
BA17  8A           .     TXA
BA18  91 9C        ..    STA (&9C),Y
BA1A  A2 CA        ..    LDX #&CA
BA1C  A0 C2        ..    LDY #&C2
BA1E  A9 00        ..    LDA #&00
BA20  20 47 BD      G.   JSR &BD47
BA23  AE C8 C2     ...   LDX &C2C8
BA26  68           h     PLA
BA27  20 52 BD      R.   JSR &BD52
BA2A  68           h     PLA
BA2B  8D D5 C2     ...   STA &C2D5
BA2E  68           h     PLA
BA2F  8D D4 C2     ...   STA &C2D4
BA32  A9 DC        ..    LDA #&DC
BA34  3D B8 C2     =..   ORA &C2B8,X
BA37  9D B8 C2     ...   STA &C2B8,X
BA3A  60           `     RTS
BA3B  A2 0C        ..    LDX #&0C
BA3D  BD 00 C1     ...   LDA &C100,X
BA40  9D D9 C2     ...   STA &C2D9,X
BA43  B5 B0        ..    LDA &B0,X
BA45  48           H     PHA
BA46  CA           .     DEX
BA47  10 F4        ..    BPL &BA3D
BA49  C0 00        ..    CPY #&00
BA4B  D0 03        ..    BNE &BA50
BA4D  4C E9 BA     L..   JMP &BAE9
BA50  08           .     PHP
BA51  A2 FF        ..    LDX #&FF
BA53  E8           .     INX
BA54  BD B8 C2     ...   LDA &C2B8,X
BA57  10 FA        ..    BPL &BA53
BA59  0A           .     ASL A
BA5A  10 F7        ..    BPL &BA53
BA5C  20 CC B9      ..   JSR &B9CC
BA5F  A9 40        .@    LDA #&40
BA61  9D B8 C2     ...   STA &C2B8,X
BA64  08           .     PHP
BA65  20 66 B9      f.   JSR &B966
BA68  28           (     PLP
BA69  AD C9 C2     ...   LDA &C2C9
BA6C  8D CA C2     ...   STA &C2CA
BA6F  48           H     PHA
BA70  38           8     SEC
BA71  E9 20        .     SBC #&20
BA73  A8           .     TAY
BA74  B9 30 C2     .0.   LDA &C230,Y
BA77  8D 05 C1     ...   STA &C105
BA7A  68           h     PLA
BA7B  9D A8 C2     ...   STA &C2A8,X
BA7E  AD D4 C2     ...   LDA &C2D4
BA81  9D 78 C2     .x.   STA &C278,X
BA84  AD D5 C2     ...   LDA &C2D5
BA87  9D 88 C2     ...   STA &C288,X
BA8A  8A           .     TXA
BA8B  18           .     CLC
BA8C  69 C3        i.    ADC #&C3
BA8E  8D CC C2     ...   STA &C2CC
BA91  28           (     PLP
BA92  50 03        P.    BVC &BA97
BA94  20 A6 BC      ..   JSR &BCA6
BA97  20 A9 B9      ..   JSR &B9A9
BA9A  20 4D BD      M.   JSR &BD4D
BA9D  48           H     PHA
BA9E  AD CA C2     ...   LDA &C2CA
BAA1  91 9C        ..    STA (&9C),Y
BAA3  A0 C2        ..    LDY #&C2
BAA5  A9 02        ..    LDA #&02
BAA7  20 47 BD      G.   JSR &BD47
BAAA  68           h     PLA
BAAB  20 52 BD      R.   JSR &BD52
BAAE  AE C8 C2     ...   LDX &C2C8
BAB1  AD D0 C2     ...   LDA &C2D0
BAB4  D0 05        ..    BNE &BABB
BAB6  AD CF C2     ...   LDA &C2CF
BAB9  F0 24        .$    BEQ &BADF
BABB  AD CF C2     ...   LDA &C2CF
BABE  49 FF        I.    EOR #&FF
BAC0  18           .     CLC
BAC1  69 01        i.    ADC #&01
BAC3  9D 98 C2     ...   STA &C298,X
BAC6  A9 20        .     LDA #&20
BAC8  1D B8 C2     ...   ORA &C2B8,X
BACB  9D B8 C2     ...   STA &C2B8,X
BACE  AD CC C2     ...   LDA &C2CC
BAD1  85 B3        ..    STA &B3
BAD3  A9 00        ..    LDA #&00
BAD5  85 B2        ..    STA &B2
BAD7  BC 98 C2     ...   LDY &C298,X
BADA  91 B2        ..    STA (&B2),Y
BADC  C8           .     INY
BADD  D0 FB        ..    BNE &BADA
BADF  A9 02        ..    LDA #&02
BAE1  1D B8 C2     ...   ORA &C2B8,X
BAE4  9D B8 C2     ...   STA &C2B8,X
BAE7  A0 00        ..    LDY #&00
BAE9  68           h     PLA
BAEA  99 B0 00     ...   STA &00B0,Y
BAED  C8           .     INY
BAEE  C0 0D        ..    CPY #&0D
BAF0  D0 F7        ..    BNE &BAE9
BAF2  A0 0C        ..    LDY #&0C
BAF4  B9 D9 C2     ...   LDA &C2D9,Y
BAF7  99 00 C1     ...   STA &C100,Y
BAFA  88           .     DEY
BAFB  10 F7        ..    BPL &BAF4
BAFD  60           `     RTS
BAFE  20 3B BA      ;.   JSR &BA3B
BB01  A2 FF        ..    LDX #&FF
BB03  AC C9 C2     ...   LDY &C2C9
BB06  E8           .     INX
BB07  E0 10        ..    CPX #&10
BB09  D0 15        ..    BNE &BB20
BB0B  AD C9 C2     ...   LDA &C2C9
BB0E  20 30 B8      0.   JSR &B830
BB11  BD 20 C2     . .   LDA &C220,X
BB14  8D D5 C2     ...   STA &C2D5
BB17  BD 10 C2     ...   LDA &C210,X
BB1A  8D D4 C2     ...   STA &C2D4
BB1D  4C FE BA     L..   JMP &BAFE
BB20  BD B8 C2     ...   LDA &C2B8,X
BB23  29 02        ).    AND #&02
BB25  F0 DF        ..    BEQ &BB06
BB27  98           .     TYA
BB28  DD A8 C2     ...   CMP &C2A8,X
BB2B  D0 D9        ..    BNE &BB06
BB2D  8E C8 C2     ...   STX &C2C8
BB30  08           .     PHP
BB31  38           8     SEC
BB32  E9 20        .     SBC #&20
BB34  28           (     PLP
BB35  A8           .     TAY
BB36  AE C8 C2     ...   LDX &C2C8
BB39  B9 10 C2     ...   LDA &C210,Y
BB3C  DD 78 C2     .x.   CMP &C278,X
BB3F  D0 C2        ..    BNE &BB03
BB41  B9 20 C2     . .   LDA &C220,Y
BB44  DD 88 C2     ...   CMP &C288,X
BB47  D0 BA        ..    BNE &BB03
BB49  BD B8 C2     ...   LDA &C2B8,X
BB4C  10 0B        ..    BPL &BB59
BB4E  29 7F        ).    AND #&7F
BB50  9D B8 C2     ...   STA &C2B8,X
BB53  20 66 B9      f.   JSR &B966
BB56  BD B8 C2     ...   LDA &C2B8,X
BB59  29 20        )     AND #&20
BB5B  60           `     RTS
BB5C  FE 00 C2     ...   INC &C200,X
BB5F  D0 08        ..    BNE &BB69
BB61  FE 10 C2     ...   INC &C210,X
BB64  D0 03        ..    BNE &BB69
BB66  FE 20 C2     . .   INC &C220,X
BB69  60           `     RTS
BB6A  DA           .     PHX
BB6B  5A           Z     PHY
BB6C  A2 F7        ..    LDX #&F7
BB6E  BD BD FF     ...   LDA &FFBD,X
BB71  48           H     PHA
BB72  E8           .     INX
BB73  30 F9        0.    BMI &BB6E
BB75  A2 0F        ..    LDX #&0F
BB77  8E C8 C2     ...   STX &C2C8
BB7A  AE C8 C2     ...   LDX &C2C8
BB7D  98           .     TYA
BB7E  F0 05        ..    BEQ &BB85
BB80  DD A8 C2     ...   CMP &C2A8,X
BB83  D0 05        ..    BNE &BB8A
BB85  48           H     PHA
BB86  20 CC B9      ..   JSR &B9CC
BB89  7A           z     PLY
BB8A  CE C8 C2     ...   DEC &C2C8
BB8D  10 EB        ..    BPL &BB7A
BB8F  A2 08        ..    LDX #&08
BB91  68           h     PLA
BB92  95 B4        ..    STA &B4,X
BB94  CA           .     DEX
BB95  10 FA        ..    BPL &BB91
BB97  7A           z     PLY
BB98  FA           .     PLX
BB99  60           `     RTS
BB9A  8C C9 C2     ...   STY &C2C9
BB9D  8A           .     TXA
BB9E  48           H     PHA
BB9F  20 B1 B8      ..   JSR &B8B1
BBA2  BD 60 C2     .`.   LDA &C260,X
BBA5  29 20        )     AND #&20
BBA7  F0 10        ..    BEQ &BBB9
BBA9  A9 D4        ..    LDA #&D4
BBAB  20 C0 99      ..   JSR &99C0
BBAE  57 72        Wr    RMB5 &72
BBB0  69 74        it    ADC #&74
BBB2  65 20        e     ADC &20
BBB4  6F 6E        on    BBR6 &BC24
BBB6  6C 79 00     ly.   JMP (&0079)
BBB9  B8           .     CLV
BBBA  20 01 BB      ..   JSR &BB01
BBBD  F0 35        .5    BEQ &BBF4
BBBF  B9 00 C2     ...   LDA &C200,Y
BBC2  DD 98 C2     ...   CMP &C298,X
BBC5  90 2D        .-    BCC &BBF4
BBC7  B9 60 C2     .`.   LDA &C260,Y
BBCA  AA           .     TAX
BBCB  29 40        )@    AND #&40
BBCD  D0 14        ..    BNE &BBE3
BBCF  8A           .     TXA
BBD0  09 40        .@    ORA #&40
BBD2  99 60 C2     .`.   STA &C260,Y
BBD5  A9 00        ..    LDA #&00
BBD7  20 52 BD      R.   JSR &BD52
BBDA  68           h     PLA
BBDB  AA           .     TAX
BBDC  A9 FE        ..    LDA #&FE
BBDE  AC C9 C2     ...   LDY &C2C9
BBE1  38           8     SEC
BBE2  60           `     RTS
BBE3  A9 DF        ..    LDA #&DF
BBE5  20 C0 99      ..   JSR &99C0
BBE8  45 6E        En    EOR &6E
BBEA  64 20        d     STZ &20
BBEC  6F 66        of    BBR6 &BC54
BBEE  20 66 69      fi   JSR &6966
BBF1  6C 65 00     le.   JMP (&0065)
BBF4  B9 00 C2     ...   LDA &C200,Y
BBF7  48           H     PHA
BBF8  98           .     TYA
BBF9  AA           .     TAX
BBFA  A9 00        ..    LDA #&00
BBFC  20 52 BD      R.   JSR &BD52
BBFF  20 5C BB      \.   JSR &BB5C
BC02  68           h     PLA
BC03  A8           .     TAY
BC04  AD C8 C2     ...   LDA &C2C8
BC07  18           .     CLC
BC08  69 C3        i.    ADC #&C3
BC0A  85 B3        ..    STA &B3
BC0C  A9 00        ..    LDA #&00
BC0E  85 B2        ..    STA &B2
BC10  68           h     PLA
BC11  AA           .     TAX
BC12  B1 B2        ..    LDA (&B2),Y
BC14  AC C9 C2     ...   LDY &C2C9
BC17  18           .     CLC
BC18  60           `     RTS
BC19  8C C9 C2     ...   STY &C2C9
BC1C  48           H     PHA
BC1D  A8           .     TAY
BC1E  8A           .     TXA
BC1F  48           H     PHA
BC20  98           .     TYA
BC21  48           H     PHA
BC22  8D D7 C2     ...   STA &C2D7
BC25  20 B1 B8      ..   JSR &B8B1
BC28  BD 60 C2     .`.   LDA &C260,X
BC2B  30 19        0.    BMI &BC46
BC2D  A9 C1        ..    LDA #&C1
BC2F  20 C0 99      ..   JSR &99C0
BC32  4E 6F 74     Not   LSR &746F
BC35  20 6F 70      op   JSR &706F
BC38  65 6E        en    ADC &6E
BC3A  20 66 6F      fo   JSR &6F66
BC3D  72 20        r     ADC (&20)
BC3F  75 70        up    ADC &70,X
BC41  64 61        da    STZ &61
BC43  74 65        te    STZ &65,X
BC45  00           .     BRK
BC46  29 20        )     AND #&20
BC48  F0 0A        ..    BEQ &BC54
BC4A  BC 30 C2     .0.   LDY &C230,X
BC4D  68           h     PLA
BC4E  20 EE BC      ..   JSR &BCEE
BC51  4C 97 BC     L..   JMP &BC97
BC54  2C 69 97     ,i.   BIT &9769
BC57  20 01 BB      ..   JSR &BB01
BC5A  B9 00 C2     ...   LDA &C200,Y
BC5D  C9 FF        ..    CMP #&FF
BC5F  D0 03        ..    BNE &BC64
BC61  20 AE BC      ..   JSR &BCAE
BC64  DD 98 C2     ...   CMP &C298,X
BC67  90 0F        ..    BCC &BC78
BC69  69 00        i.    ADC #&00
BC6B  9D 98 C2     ...   STA &C298,X
BC6E  D0 08        ..    BNE &BC78
BC70  A9 DF        ..    LDA #&DF
BC72  3D B8 C2     =..   ORA &C2B8,X
BC75  9D B8 C2     ...   STA &C2B8,X
BC78  A9 01        ..    LDA #&01
BC7A  1D B8 C2     ...   ORA &C2B8,X
BC7D  9D B8 C2     ...   STA &C2B8,X
BC80  B9 00 C2     ...   LDA &C200,Y
BC83  48           H     PHA
BC84  98           .     TYA
BC85  AA           .     TAX
BC86  68           h     PLA
BC87  A8           .     TAY
BC88  AD C8 C2     ...   LDA &C2C8
BC8B  18           .     CLC
BC8C  69 C3        i.    ADC #&C3
BC8E  85 B3        ..    STA &B3
BC90  A9 00        ..    LDA #&00
BC92  85 B2        ..    STA &B2
BC94  68           h     PLA
BC95  91 B2        ..    STA (&B2),Y
BC97  20 5C BB      \.   JSR &BB5C
BC9A  A9 00        ..    LDA #&00
BC9C  20 52 BD      R.   JSR &BD52
BC9F  68           h     PLA
BCA0  AA           .     TAX
BCA1  68           h     PLA
BCA2  AC C9 C2     ...   LDY &C2C9
BCA5  60           `     RTS
BCA6  48           H     PHA
BCA7  DA           .     PHX
BCA8  5A           Z     PHY
BCA9  B9 30 C2     .0.   LDA &C230,Y
BCAC  D0 0D        ..    BNE &BCBB
BCAE  48           H     PHA
BCAF  DA           .     PHX
BCB0  5A           Z     PHY
BCB1  B9 30 C2     .0.   LDA &C230,Y
BCB4  48           H     PHA
BCB5  A0 00        ..    LDY #&00
BCB7  20 3B BA      ;.   JSR &BA3B
BCBA  68           h     PLA
BCBB  8D 05 C1     ...   STA &C105
BCBE  7A           z     PLY
BCBF  5A           Z     PHY
BCC0  48           H     PHA
BCC1  A2 00        ..    LDX #&00
BCC3  8E 06 C1     ...   STX &C106
BCC6  B9 00 C2     ...   LDA &C200,Y
BCC9  8D 07 C1     ...   STA &C107
BCCC  B9 10 C2     ...   LDA &C210,Y
BCCF  8D 08 C1     ...   STA &C108
BCD2  B9 20 C2     . .   LDA &C220,Y
BCD5  8D 09 C1     ...   STA &C109
BCD8  A0 0D        ..    LDY #&0D
BCDA  A2 05        ..    LDX #&05
BCDC  20 8A 97      ..   JSR &978A
BCDF  68           h     PLA
BCE0  A8           .     TAY
BCE1  AD D7 C2     ...   LDA &C2D7
BCE4  20 EE BC      ..   JSR &BCEE
BCE7  20 F2 BA      ..   JSR &BAF2
BCEA  7A           z     PLY
BCEB  FA           .     PLX
BCEC  68           h     PLA
BCED  60           `     RTS
BCEE  8C DE C1     ...   STY &C1DE
BCF1  8D DF C1     ...   STA &C1DF
BCF4  98           .     TYA
BCF5  48           H     PHA
BCF6  8A           .     TXA
BCF7  48           H     PHA
BCF8  A9 90        ..    LDA #&90
BCFA  8D DC C1     ...   STA &C1DC
BCFD  20 4B 97      K.   JSR &974B
BD00  A9 DC        ..    LDA #&DC
BD02  85 C4        ..    STA &C4
BD04  A9 E0        ..    LDA #&E0
BD06  85 C8        ..    STA &C8
BD08  A9 09        ..    LDA #&09
BD0A  8D DD C1     ...   STA &C1DD
BD0D  A2 C0        ..    LDX #&C0
BD0F  A0 00        ..    LDY #&00
BD11  AD DE C1     ...   LDA &C1DE
BD14  20 DD AF      ..   JSR &AFDD
BD17  AD DD C1     ...   LDA &C1DD
BD1A  F0 1B        ..    BEQ &BD37
BD1C  8D 09 C0     ...   STA &C009
BD1F  A2 00        ..    LDX #&00
BD21  BD DC C1     ...   LDA &C1DC,X
BD24  9D 00 01     ...   STA &0100,X
BD27  C9 0D        ..    CMP #&0D
BD29  F0 03        ..    BEQ &BD2E
BD2B  E8           .     INX
BD2C  D0 F3        ..    BNE &BD21
BD2E  A9 00        ..    LDA #&00
BD30  9D 00 01     ...   STA &0100,X
BD33  CA           .     DEX
BD34  4C DF 99     L..   JMP &99DF
BD37  AE C9 C2     ...   LDX &C2C9
BD3A  BD 40 C2     .@.   LDA &C240,X
BD3D  49 01        I.    EOR #&01
BD3F  9D 40 C2     .@.   STA &C240,X
BD42  68           h     PLA
BD43  AA           .     TAX
BD44  68           h     PLA
BD45  A8           .     TAY
BD46  60           `     RTS
BD47  20 E4 93      ..   JSR &93E4
BD4A  4C FD A1     L..   JMP &A1FD
BD4D  A0 0A        ..    LDY #&0A
BD4F  B1 9C        ..    LDA (&9C),Y
BD51  60           `     RTS
BD52  A0 0A        ..    LDY #&0A
BD54  91 9C        ..    STA (&9C),Y
BD56  60           `     RTS
BD57  24 FF        $.    BIT &FF
BD59  30 01        0.    BMI &BD5C
BD5B  60           `     RTS
BD5C  20 A3 BF      ..   JSR &BFA3
BD5F  20 E7 FF      ..   JSR osnewl
BD62  A9 7E        .~    LDA #&7E
BD64  20 F4 FF      ..   JSR osbyte
BD67  A9 11        ..    LDA #&11
BD69  20 C3 99      ..   JSR &99C3
BD6C  45 73        Es    EOR &73
BD6E  63            c     ...
BD6F  61 70        ap    ADC (&70,X)
BD71  65 00        e.    ADC &00
BD73  20 AA BF      ..   JSR &BFAA
BD76  A2 14        ..    LDX #&14
BD78  A9 00        ..    LDA #&00
BD7A  48           H     PHA
BD7B  CA           .     DEX
BD7C  10 FC        ..    BPL &BD7A
BD7E  BA           .     TSX
BD7F  20 DD BE      ..   JSR &BEDD
BD82  B1 AE        ..    LDA (&AE),Y
BD84  29 F0        ).    AND #&F0
BD86  F0 03        ..    BEQ &BD8B
BD88  20 33 BE      3.   JSR &BE33
BD8B  20 57 BD      W.   JSR &BD57
BD8E  A9 FF        ..    LDA #&FF
BD90  85 AA        ..    STA &AA
BD92  A4 A8        ..    LDY &A8
BD94  20 D7 FF      ..   JSR osbget
BD97  B0 0B        ..    BCS &BDA4
BD99  E6 AA        ..    INC &AA
BD9B  A4 AA        ..    LDY &AA
BD9D  91 AE        ..    STA (&AE),Y
BD9F  C0 0F        ..    CPY #&0F
BDA1  D0 EF        ..    BNE &BD92
BDA3  18           .     CLC
BDA4  08           .     PHP
BDA5  A5 AA        ..    LDA &AA
BDA7  10 09        ..    BPL &BDB2
BDA9  A2 15        ..    LDX #&15
BDAB  68           h     PLA
BDAC  CA           .     DEX
BDAD  10 FC        ..    BPL &BDAB
BDAF  4C A3 BF     L..   JMP &BFA3
BDB2  A0 10        ..    LDY #&10
BDB4  B1 AE        ..    LDA (&AE),Y
BDB6  29 F0        ).    AND #&F0
BDB8  D0 03        ..    BNE &BDBD
BDBA  20 33 BE      3.   JSR &BE33
BDBD  A0 13        ..    LDY #&13
BDBF  B1 AE        ..    LDA (&AE),Y
BDC1  48           H     PHA
BDC2  20 41 92      A.   JSR &9241
BDC5  68           h     PLA
BDC6  88           .     DEY
BDC7  C0 0F        ..    CPY #&0F
BDC9  D0 F4        ..    BNE &BDBF
BDCB  C8           .     INY
BDCC  18           .     CLC
BDCD  69 10        i.    ADC #&10
BDCF  08           .     PHP
BDD0  28           (     PLP
BDD1  91 AE        ..    STA (&AE),Y
BDD3  C8           .     INY
BDD4  B1 AE        ..    LDA (&AE),Y
BDD6  69 00        i.    ADC #&00
BDD8  08           .     PHP
BDD9  C0 14        ..    CPY #&14
BDDB  D0 F3        ..    BNE &BDD0
BDDD  28           (     PLP
BDDE  20 6C 92      l.   JSR &926C
BDE1  20 3A 20      :    JSR &203A
BDE4  A0 00        ..    LDY #&00
BDE6  A6 AA        ..    LDX &AA
BDE8  B1 AE        ..    LDA (&AE),Y
BDEA  20 69 BE      i.   JSR &BE69
BDED  C8           .     INY
BDEE  C0 10        ..    CPY #&10
BDF0  F0 0F        ..    BEQ &BE01
BDF2  CA           .     DEX
BDF3  10 F3        ..    BPL &BDE8
BDF5  5A           Z     PHY
BDF6  20 6C 92      l.   JSR &926C
BDF9  20 20 20           JSR &2020
BDFC  EA           .     NOP
BDFD  7A           z     PLY
BDFE  4C ED BD     L..   JMP &BDED
BE01  CA           .     DEX
BE02  20 6C 92      l.   JSR &926C
BE05  3A           :     DEC A
BE06  20 A0 00      ..   JSR &00A0
BE09  20 EC BF      ..   JSR &BFEC
BE0C  B1 AE        ..    LDA (&AE),Y
BE0E  29 7F        ).    AND #&7F
BE10  C9 20        .     CMP #&20
BE12  B0 02        ..    BCS &BE16
BE14  A9 2E        ..    LDA #&2E
BE16  C9 7F        ..    CMP #&7F
BE18  F0 FA        ..    BEQ &BE14
BE1A  20 E3 FF      ..   JSR osasci
BE1D  C8           .     INY
BE1E  C0 10        ..    CPY #&10
BE20  F0 03        ..    BEQ &BE25
BE22  CA           .     DEX
BE23  10 E7        ..    BPL &BE0C
BE25  20 E7 FF      ..   JSR osnewl
BE28  28           (     PLP
BE29  B0 03        ..    BCS &BE2E
BE2B  4C 8B BD     L..   JMP &BD8B
BE2E  A2 14        ..    LDX #&14
BE30  4C AB BD     L..   JMP &BDAB
BE33  B1 AE        ..    LDA (&AE),Y
BE35  48           H     PHA
BE36  20 6C 92      l.   JSR &926C
BE39  0D 41 64     .Ad   ORA &6441
BE3C  64 72        dr    STZ &72
BE3E  65 73        es    ADC &73
BE40  73            s     ...
BE41  20 20 3A       :   JSR &3A20
BE44  20 A2 0F      ..   JSR &0FA2
BE47  68           h     PLA
BE48  20 69 BE      i.   JSR &BE69
BE4B  38           8     SEC
BE4C  69 00        i.    ADC #&00
BE4E  29 0F        ).    AND #&0F
BE50  CA           .     DEX
BE51  10 F5        ..    BPL &BE48
BE53  20 6C 92      l.   JSR &926C
BE56  3A           :     DEC A
BE57  20 20 20           JSR &2020
BE5A  20 41 53      AS   JSR &5341
BE5D  43            C     ...
BE5E  49 49        II    EOR #&49
BE60  20 64 61      da   JSR &6164
BE63  74 61        ta    STZ &61,X
BE65  0D 0D EA     ...   ORA &EA0D
BE68  60           `     RTS
BE69  48           H     PHA
BE6A  20 41 92      A.   JSR &9241
BE6D  A9 20        .     LDA #ASC" "
BE6F  20 E3 FF      ..   JSR osasci
BE72  68           h     PLA
BE73  60           `     RTS
BE74  98           .     TYA
BE75  AA           .     TAX
BE76  A9 00        ..    LDA #&00
BE78  A8           .     TAY
BE79  91 AE        ..    STA (&AE),Y
BE7B  C8           .     INY
BE7C  C0 04        ..    CPY #&04
BE7E  D0 F9        ..    BNE &BE79
BE80  8A           .     TXA
BE81  E8           .     INX
BE82  A8           .     TAY
BE83  B1 F2        ..    LDA (&F2),Y
BE85  C9 0D        ..    CMP #&0D
BE87  F0 4C        .L    BEQ &BED5
BE89  C9 20        .     CMP #&20
BE8B  F0 48        .H    BEQ &BED5
BE8D  C9 30        .0    CMP #&30
BE8F  90 3D        .=    BCC &BECE
BE91  C9 3A        .:    CMP #&3A
BE93  90 0A        ..    BCC &BE9F
BE95  29 5F        )_    AND #&5F
BE97  69 B8        i.    ADC #&B8
BE99  B0 33        .3    BCS &BECE
BE9B  C9 FA        ..    CMP #&FA
BE9D  90 2F        ./    BCC &BECE
BE9F  29 0F        ).    AND #&0F
BEA1  48           H     PHA
BEA2  8A           .     TXA
BEA3  48           H     PHA
BEA4  A2 04        ..    LDX #&04
BEA6  A0 00        ..    LDY #&00
BEA8  98           .     TYA
BEA9  48           H     PHA
BEAA  28           (     PLP
BEAB  B1 AE        ..    LDA (&AE),Y
BEAD  2A           *     ROL A
BEAE  91 AE        ..    STA (&AE),Y
BEB0  08           .     PHP
BEB1  68           h     PLA
BEB2  C8           .     INY
BEB3  C0 04        ..    CPY #&04
BEB5  D0 F2        ..    BNE &BEA9
BEB7  48           H     PHA
BEB8  28           (     PLP
BEB9  B0 0F        ..    BCS &BECA
BEBB  CA           .     DEX
BEBC  D0 E8        ..    BNE &BEA6
BEBE  68           h     PLA
BEBF  AA           .     TAX
BEC0  68           h     PLA
BEC1  A0 00        ..    LDY #&00
BEC3  11 AE        ..    ORA (&AE),Y
BEC5  91 AE        ..    STA (&AE),Y
BEC7  4C 80 BE     L..   JMP &BE80
BECA  68           h     PLA
BECB  68           h     PLA
BECC  38           8     SEC
BECD  60           `     RTS
BECE  20 A3 BF      ..   JSR &BFA3
BED1  4C 55 93     LU.   JMP &9355
BED4  C8           .     INY
BED5  B1 F2        ..    LDA (&F2),Y
BED7  C9 20        .     CMP #&20
BED9  F0 F9        ..    BEQ &BED4
BEDB  18           .     CLC
BEDC  60           `     RTS
BEDD  E8           .     INX
BEDE  86 AE        ..    STX &AE
BEE0  A2 01        ..    LDX #&01
BEE2  86 AF        ..    STX &AF
BEE4  20 74 BE      t.   JSR &BE74
BEE7  B0 1F        ..    BCS &BF08
BEE9  98           .     TYA
BEEA  48           H     PHA
BEEB  A4 A8        ..    LDY &A8
BEED  A2 AA        ..    LDX #&AA
BEEF  A9 02        ..    LDA #&02
BEF1  20 DA FF      ..   JSR osargs
BEF4  A0 03        ..    LDY #&03
BEF6  B9 AA 00     ...   LDA &00AA,Y
BEF9  D1 AE        ..    CMP (&AE),Y
BEFB  D0 05        ..    BNE &BF02
BEFD  88           .     DEY
BEFE  10 F6        ..    BPL &BEF6
BF00  30 20        0     BMI &BF22
BF02  90 04        ..    BCC &BF08
BF04  A0 FF        ..    LDY #&FF
BF06  D0 1A        ..    BNE &BF22
BF08  20 A3 BF      ..   JSR &BFA3
BF0B  A9 B7        ..    LDA #&B7
BF0D  20 C3 99      ..   JSR &99C3
BF10  4F 75        Ou    BBR4 &BF87
BF12  74 73        ts    STZ &73,X
BF14  69 64        id    ADC #&64
BF16  65 20        e     ADC &20
BF18  66 69        fi    ROR &69
BF1A  6C 65 00     le.   JMP (&0065)
BF1D  B1 AE        ..    LDA (&AE),Y
BF1F  99 AA 00     ...   STA &00AA,Y
BF22  C8           .     INY
BF23  C0 04        ..    CPY #&04
BF25  D0 F6        ..    BNE &BF1D
BF27  A2 AA        ..    LDX #&AA
BF29  A4 A8        ..    LDY &A8
BF2B  A9 01        ..    LDA #&01
BF2D  20 DA FF      ..   JSR osargs
BF30  68           h     PLA
BF31  A8           .     TAY
BF32  B1 F2        ..    LDA (&F2),Y
BF34  C9 0D        ..    CMP #&0D
BF36  D0 38        .8    BNE &BF70
BF38  A0 01        ..    LDY #&01
BF3A  B9 F2 00     ...   LDA &00F2,Y
BF3D  91 AE        ..    STA (&AE),Y
BF3F  88           .     DEY
BF40  10 F8        ..    BPL &BF3A
BF42  A9 05        ..    LDA #&05
BF44  A6 AE        ..    LDX &AE
BF46  A4 AF        ..    LDY &AF
BF48  20 DD FF      ..   JSR osfile
BF4B  A0 02        ..    LDY #&02
BF4D  B1 AE        ..    LDA (&AE),Y
BF4F  88           .     DEY
BF50  88           .     DEY
BF51  91 AE        ..    STA (&AE),Y
BF53  C8           .     INY
BF54  C8           .     INY
BF55  C8           .     INY
BF56  C0 06        ..    CPY #&06
BF58  D0 F3        ..    BNE &BF4D
BF5A  88           .     DEY
BF5B  88           .     DEY
BF5C  B1 AE        ..    LDA (&AE),Y
BF5E  C9 FF        ..    CMP #&FF
BF60  D0 23        .#    BNE &BF85
BF62  88           .     DEY
BF63  D0 F7        ..    BNE &BF5C
BF65  A0 03        ..    LDY #&03
BF67  A9 00        ..    LDA #&00
BF69  91 AE        ..    STA (&AE),Y
BF6B  88           .     DEY
BF6C  10 FB        ..    BPL &BF69
BF6E  30 15        0.    BMI &BF85
BF70  20 74 BE      t.   JSR &BE74
BF73  90 10        ..    BCC &BF85
BF75  20 A3 BF      ..   JSR &BFA3
BF78  A9 FC        ..    LDA #&FC
BF7A  20 A7 99      ..   JSR &99A7
BF7D  61 64        ad    ADC (&64,X)
BF7F  64 72        dr    STZ &72
BF81  65 73        es    ADC &73
BF83  73            s     ...
BF84  00           .     BRK
BF85  A0 00        ..    LDY #&00
BF87  A2 04        ..    LDX #&04
BF89  18           .     CLC
BF8A  B1 AE        ..    LDA (&AE),Y
BF8C  79 AA 00     y..   ADC &00AA,Y
BF8F  99 AA 00     ...   STA &00AA,Y
BF92  C8           .     INY
BF93  CA           .     DEX
BF94  D0 F4        ..    BNE &BF8A
BF96  A0 14        ..    LDY #&14
BF98  A2 03        ..    LDX #&03
BF9A  88           .     DEY
BF9B  B5 AA        ..    LDA &AA,X
BF9D  91 AE        ..    STA (&AE),Y
BF9F  CA           .     DEX
BFA0  10 F8        ..    BPL &BF9A
BFA2  60           `     RTS
BFA3  A4 A8        ..    LDY &A8
BFA5  A9 00        ..    LDA #&00
BFA7  4C CE FF     L..   JMP osfind
BFAA  08           .     PHP
BFAB  98           .     TYA
BFAC  18           .     CLC
BFAD  65 F2        e.    ADC &F2
BFAF  48           H     PHA
BFB0  AA           .     TAX
BFB1  A9 00        ..    LDA #&00
BFB3  65 F3        e.    ADC &F3
BFB5  48           H     PHA
BFB6  A8           .     TAY
BFB7  A9 40        .@    LDA #&40
BFB9  20 CE FF      ..   JSR osfind
BFBC  A8           .     TAY
BFBD  85 A8        ..    STA &A8
BFBF  D0 0F        ..    BNE &BFD0
BFC1  A9 D6        ..    LDA #&D6
BFC3  20 C3 99      ..   JSR &99C3
BFC6  4E 6F 74     Not   LSR &746F
BFC9  20 66 6F      fo   JSR &6F66
BFCC  75 6E        un    ADC &6E,X
BFCE  64 00        d.    STZ &00
BFD0  68           h     PLA
BFD1  85 F3        ..    STA &F3
BFD3  68           h     PLA
BFD4  85 F2        ..    STA &F2
BFD6  A0 00        ..    LDY #&00
BFD8  C8           .     INY
BFD9  B1 F2        ..    LDA (&F2),Y
BFDB  C9 0D        ..    CMP #&0D
BFDD  F0 0B        ..    BEQ &BFEA
BFDF  C9 20        .     CMP #ASC" "
BFE1  D0 F5        ..    BNE &BFD8
BFE3  C8           .     INY
BFE4  B1 F2        ..    LDA (&F2),Y
BFE6  C9 20        .     CMP #ASC" "
BFE8  F0 F9        ..    BEQ &BFE3
BFEA  28           (     PLP
BFEB  60           `     RTS
BFEC  20 EF BF      ..   JSR &BFEF
BFEF  20 F2 BF      ..   JSR &BFF2
BFF2  E8           .     INX
BFF3  E8           .     INX
BFF4  E8           .     INX
BFF5  E8           .     INX
BFF6  60           `     RTS
BFF7  FF FF FF FF  ....  EQUW &FFFFFFFF
BFFB  FF FF FF FF  ....  EQUW &FFFFFFFF
BFFF  FF           .     EQUB &FF
