Changeset 21
- Timestamp:
- 08/02/09 00:05:49 (3 years ago)
- Files:
-
- 1 modified
-
trunk/page1C/1Cbase.asm (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/page1C/1Cbase.asm
r20 r21 38 38 keyscnlnk: 39 39 di 40 push af41 ld a,942 call PutC43 in a,(9)44 call DispHexA45 ld a,946 call PutC47 pop af48 40 res enableHW2Timer,(iy+interruptFlags) 49 41 call NZIf83Plus … … 96 88 $$: ld a,(ioData) 97 89 call ContinueGetByte 98 call DispHexA99 push af100 ld a,11101 call PutC102 pop af103 90 bit 5,(iy+3Dh) 104 91 jr z,kscnlnkGet3Bytes 105 ld a,10106 call PutC107 92 in a,(2) 108 93 and 80h … … 138 123 call RecAByteIO 139 124 ld (header+1),a 140 call DispHexA141 ld a,12142 call PutC143 125 call RecAByteIO 144 126 ld (header+2),a … … 148 130 ld b,(hl) 149 131 inc hl 150 ld a,8151 call PutC152 ld a,(header+1)153 call DispHexA154 132 $$: cp (hl) 155 133 inc hl … … 158 136 inc hl 159 137 djnz $B 160 ld a,7161 call PutC162 138 ld a,(header+1) 163 139 call DispHexA … … 167 143 $$: call LdHLInd 168 144 jp (hl) 145 disableLAEnd: 146 call DisableLinkAssist 147 jr keyscnlnkEnd 169 148 sendAcknowledgeEnd: 170 149 call SendAcknowledge 171 150 keyscnlnkEnd: 172 $$: call APP_POP_ERRORH 173 jr $F 174 disableLAEnd: 175 call DisableLinkAssist 176 jr $B 151 call APP_POP_ERRORH 177 152 keyscnlnkHandler: 178 ld a,1 179 call PutC 180 ld a,(iy+3Dh) 181 call DispHexA 182 ld a,(iy+3Eh) 183 call DispHexA 184 in a,(9) 185 call DispHexA 186 ld a,1 187 call PutC 188 $$: 189 di 190 ld a,4 191 call PutC 153 di 192 154 call DisableLinkAssist 193 155 pop af … … 225 187 jr keyscnlnkEnd 226 188 receivedVariableHeader: 227 ld a,99h228 call DispHexA229 189 call ReceiveHeaderPacket 230 ld a,9Bh231 call DispHexA232 190 ld a,(867Fh) 233 191 cp 23h … … 353 311 ld (ioNewData),a 354 312 ld hl,ioData 355 ld a,0A2h356 call DispHexA357 313 jr $F 358 314 ReceiveDataPacket: … … 379 335 jp JErrorNo 380 336 receiveRestOfDataPacket: 381 ld a,0A0h382 call DispHexA383 337 ld bc,(header+2) 384 338 ld de,0 … … 434 388 call RecAByteIO 435 389 ld b,a 436 ld a,0A1h437 call DispHexA438 390 pop af 439 391 call ValidateChecksum … … 467 419 sbc hl,bc 468 420 or a 469 ret 421 ret ;UH?! 470 422 jr nz,$F 471 423 ret … … 535 487 ret 536 488 537 Get3Bytes:538 ld (header),a539 bit 1,(iy+1Bh)540 jr z,$F541 cp 95h542 jr Get3From4BytePacket543 $$: cp 73h544 jr z,Get3From4BytePacket545 cp 23h546 jr z,Get3From4BytePacket547 cp 74h548 jr z,Get3From4BytePacket549 cp 82h550 jr z,Get3From4BytePacket551 cp 02h552 jr z,Get3From4BytePacket553 cp 12h554 jr z,Get3From4BytePacket555 cp 83h556 jr z,Get3From4BytePacket557 cp 03h558 jr z,Get3From4BytePacket559 cp 13h560 jr z,Get3From4BytePacket561 cp 08h562 jr z,Get3From4BytePacket563 jr Get3From4BytePacket564 call RecAByteIO565 ld (header+1),a566 cp 68h567 jr z,$F568 cp 47h569 jr z,$F570 cp 74h571 jr z,$F572 cp 2Dh573 jr z,$F574 jr $F575 jp JErrorNo576 489 Get4BytesNC: 577 490 call Rec1stByteNC 491 Get3Bytes: 578 492 ld (header),a 579 493 Get3From4BytePacket: 580 494 call RecAByteIO 581 495 ld (header+1),a 582 $$:call RecAByteIO496 call RecAByteIO 583 497 ld (header+2),a 584 498 call RecAByteIO
