Show
Ignore:
Timestamp:
08/02/09 01:27:02 (3 years ago)
Author:
brandonlw
Message:

More linking cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/page1C/linklow.asm

    r22 r24  
    1111       di 
    1212       call ReceiveByteToC 
    13        call RecAByteIO_1 
    14        ret c 
    15        ret nz 
    16        jr z,RecAByteIO 
    17 RecAByteIO_1: 
    18 ;I think this is a TI-Keyboard routine, let it fail 
    19        cp 1 
    20        ld a,c 
    21 ;       jr nz,$F 
    22        cp 0E0h 
    23        ret nz 
    24        scf 
     13       ld a,c 
    2514       ret 
    2615ReceiveByteToC: 
     
    2918       call NZIf83Plus 
    3019       jr z,ReceiveLAByteToC 
    31        ld de,0FFFh 
     20       ld de,0FFFFh 
    3221       jr startReceiveLoop 
    3322receiveLoop: 
     
    7463       jr nz,$B 
    7564$$:    djnz receiveByteLoop 
    76        ld a,0 
     65       xor a 
    7766       ret 
    7867RBTC_1:ld a,2 
     
    9382       call ResetLATimeout 
    9483$$:    xor a 
    95        ld (9C86h),a 
     84       ld (laTimer),a 
    9685       call NZIfTimeout 
    9786       jp nz,JErrorNo 
    98        in a,(9) 
     87       in a,(laStatusPort) 
    9988       bit 6,a 
    10089       jr nz,$F 
    10190       and 11h 
    10291       jr z,$B 
    103        in a,(0Ah) 
     92       in a,(laReceivePort) 
    10493       ld c,a 
    10594       ld a,0 
     
    10796$$:    and 11h 
    10897       jp z,JErrorNo 
    109        in a,(0Ah) 
     98       in a,(laReceivePort) 
    11099       ld c,a 
    111100       ld a,1 
     
    115104       di 
    116105       res indicOnly,(iy+indicFlags) 
    117        ld a,5 
     106       ld a,lcdXAutoIncrementMode 
    118107       out (LCDinstPort),a 
    119108       ei 
     
    124113       ld a,c 
    125114       ret 
    126 $$:    bit 4,(iy+9) 
     115$$:    bit onInterrupt,(iy+onFlags) 
    127116       jp nz,JErrorNo 
    128117       call HandleLinkKeyActivity 
     
    136125       ret 
    137126LAReceiveByteToC: 
    138        bit 4,(iy+9) 
     127       bit onInterrupt,(iy+onFlags) 
    139128       jp nz,JErrorNo 
    140129       call HandleLinkKeyActivity 
    141        in a,(9) 
     130       in a,(laStatusPort) 
    142131       and 58h 
    143132       jr z,LAReceiveByteToC 
     
    148137       set indicOnly,(iy+indicFlags) 
    149138       di 
    150        res 5,(iy+3Dh) 
    151139       call NZIf83Plus 
    152140       jr nz,cgbNoAssist 
    153141       di 
    154        call ReceiveLAByteToC 
    155        ret 
     142       jr ReceiveLAByteToC 
    156143cgbNoAssist: 
    157144       ld b,8 
    158        call ReceiveByteToC_Ready 
    159        ret 
     145       jr ReceiveByteToC_Ready 
    160146 
    161147Send4Bytes: 
     
    239225sendByteLA_1: 
    240226       ld a,0FAh 
    241        ld (9C86h),a 
    242        in a,(9) 
     227       ld (laTimer),a 
     228       in a,(laStatusPort) 
    243229       bit 5,a 
    244230       jr z,$F 
    245231       ld a,c 
    246        out (0Dh),a 
     232       out (laSendPort),a 
    247233       ret 
    248234$$:    call NZIfTimeout