Changeset 25

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

The last of the silent linking cleanup -- now we can finally start getting to the good stuff.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/includes/os2.inc

    r24 r25  
    8484; 
    8585ioData                      EQU    867Dh 
     86; 
     87ioOP1                       EQU    867Fh ;where variable type and name typically is in a link packet 
    8688; 
    8789ioNewData                   EQU    8689h 
  • trunk/page1C/silentlink.asm

    r24 r25  
    1414       call NZIf83Plus 
    1515       jr nz,$F 
    16        ld b,a 
    17        ld a,(9CAFh) 
    18        or a 
    19        ld a,b 
    20        jr nz,keyscnlnk1 
    2116$$:    call CheckLinkLines 
    2217       jr nz,eiRet 
    23 keyscnlnk1: 
    2418       ld a,(ioErrState) 
    2519       push af 
     
    2822       ld a,(ioFlag) 
    2923       push af 
     24       ;I haven't decided on what to do with this stuff yet. 
    3025       ld hl,ioFlag 
    3126       res 1,(hl) 
     
    3934       call APP_PUSH_ERRORH 
    4035       set indicOnly,(iy+indicFlags) 
    41        in a,(2) 
    42        and 80h 
    43        jr z,$F 
    44        ld a,(9CAFh) 
    45        or a 
    46        jr z,$F 
    47        dec a 
    48        ld (9CAFh),a 
    49        ld a,(9CB2h) 
    50        ld de,9CB2h 
    51        ld hl,9CB3h 
    52        ld bc,15 
    53        ldir 
    54        cp 41h 
    55        jr nz,keyscnlnkEnd 
    56        xor a 
    57        ld (9CAFh),a 
    58        ld a,(9CB2h) 
    59        jr kscnlnkGet3Bytes 
    60 $$:    ld a,(ioData) 
     36       ld a,(ioData) 
    6137       call ContinueGetByte 
    62        bit 5,(iy+3Dh) 
    63        jr z,kscnlnkGet3Bytes 
    64        in a,(2) 
    65        and 80h 
    66        jr z,keyscnlnkEnd 
    67 $$:    in a,(9) 
    68        and 19h 
    69        jr z,disableLAEnd 
    70        ld a,(9CAFh) 
    71        cp 15 
    72        jr nc,keyscnlnkEnd 
    73        inc a 
    74        ld (9CAFh),a 
    75        call ContinueGetByte 
    76        ld hl,9CAFh 
    77        ld e,(hl) 
    78        ld d,0 
    79        ld hl,9CB1h 
    80        add hl,de 
    81        bit 5,(iy+3Dh) 
    82        jr nz,kscnlnkContinue 
    83        ld b,a 
    84        ld a,41h 
    85        ld (hl),a 
    86        inc hl 
    87        ld a,b 
    88        ld (hl),a 
    89        jr keyscnlnkEnd 
    90 kscnlnkContinue: 
    91        ld (hl),a 
    92        jr $B 
    93 kscnlnkGet3Bytes: 
    9438       call Get3Bytes 
    9539       ld hl,cmdTable 
     
    10246       inc hl 
    10347       djnz $B 
     48       ;This is a command we don't recognize 
     49       ;TODO: for now, freak out 
    10450       ld a,(header+1) 
    10551       call DispHexA 
     
    154100receivedVariableHeader: 
    155101       call ReceiveHeaderPacket 
    156        ld a,(867Fh) 
     102       ld a,(ioOP1) 
    157103       cp 23h 
    158104       jr z,receivingOS 
     105       ;Not accepting anything else for now 
    159106       ld de,1 
    160107       ld a,0Ch 
     
    170117       B_CALL MD5Init 
    171118       B_CALL ReceiveOS 
     119       ;We never return from this 
    172120 
    173121sendInfoPacket: