Changeset 24
- Timestamp:
- 08/02/09 01:27:02 (3 years ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
includes/os2.inc (modified) (1 diff)
-
page00/boot.asm (modified) (1 diff)
-
page1C/linklow.asm (modified) (10 diffs)
-
page1C/linkprotocol.asm (modified) (8 diffs)
-
page1C/linkutil.asm (modified) (1 diff)
-
page1C/silentlink.asm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/os2.inc
r15 r24 123 123 offPageCallPage EQU 9C83h 124 124 offPageCallAddress EQU 9C84h 125 laTimer EQU 9C86h 125 126 ; 126 127 linkDelay EQU 9CACh -
trunk/page00/boot.asm
r17 r24 273 273 call nz,CheckLowBatteriesTurnOff 274 274 set turnOffIfLowBatteriesFound,(iy+batteryCheckFlags) 275 $$: ld a,(laTimer) 276 or a 277 jr z,$F 278 dec a 279 ld (laTimer),a 275 280 $$: bit indicRun,(iy+indicFlags) 276 281 call nz,AnimateRunIndicator -
trunk/page1C/linklow.asm
r22 r24 11 11 di 12 12 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 25 14 ret 26 15 ReceiveByteToC: … … 29 18 call NZIf83Plus 30 19 jr z,ReceiveLAByteToC 31 ld de,0FFF h20 ld de,0FFFFh 32 21 jr startReceiveLoop 33 22 receiveLoop: … … 74 63 jr nz,$B 75 64 $$: djnz receiveByteLoop 76 ld a,065 xor a 77 66 ret 78 67 RBTC_1:ld a,2 … … 93 82 call ResetLATimeout 94 83 $$: xor a 95 ld ( 9C86h),a84 ld (laTimer),a 96 85 call NZIfTimeout 97 86 jp nz,JErrorNo 98 in a,( 9)87 in a,(laStatusPort) 99 88 bit 6,a 100 89 jr nz,$F 101 90 and 11h 102 91 jr z,$B 103 in a,( 0Ah)92 in a,(laReceivePort) 104 93 ld c,a 105 94 ld a,0 … … 107 96 $$: and 11h 108 97 jp z,JErrorNo 109 in a,( 0Ah)98 in a,(laReceivePort) 110 99 ld c,a 111 100 ld a,1 … … 115 104 di 116 105 res indicOnly,(iy+indicFlags) 117 ld a, 5106 ld a,lcdXAutoIncrementMode 118 107 out (LCDinstPort),a 119 108 ei … … 124 113 ld a,c 125 114 ret 126 $$: bit 4,(iy+9)115 $$: bit onInterrupt,(iy+onFlags) 127 116 jp nz,JErrorNo 128 117 call HandleLinkKeyActivity … … 136 125 ret 137 126 LAReceiveByteToC: 138 bit 4,(iy+9)127 bit onInterrupt,(iy+onFlags) 139 128 jp nz,JErrorNo 140 129 call HandleLinkKeyActivity 141 in a,( 9)130 in a,(laStatusPort) 142 131 and 58h 143 132 jr z,LAReceiveByteToC … … 148 137 set indicOnly,(iy+indicFlags) 149 138 di 150 res 5,(iy+3Dh)151 139 call NZIf83Plus 152 140 jr nz,cgbNoAssist 153 141 di 154 call ReceiveLAByteToC 155 ret 142 jr ReceiveLAByteToC 156 143 cgbNoAssist: 157 144 ld b,8 158 call ReceiveByteToC_Ready 159 ret 145 jr ReceiveByteToC_Ready 160 146 161 147 Send4Bytes: … … 239 225 sendByteLA_1: 240 226 ld a,0FAh 241 ld ( 9C86h),a242 in a,( 9)227 ld (laTimer),a 228 in a,(laStatusPort) 243 229 bit 5,a 244 230 jr z,$F 245 231 ld a,c 246 out ( 0Dh),a232 out (laSendPort),a 247 233 ret 248 234 $$: call NZIfTimeout -
trunk/page1C/linkprotocol.asm
r22 r24 71 71 72 72 SendSkipExitPacket: 73 ld hl, 867Ch73 ld hl,header+8 74 74 ld (hl),a 75 75 ld a,36h … … 78 78 ReceiveHeaderPacket: 79 79 xor a 80 ld ( ioNewData-1),a80 ld (header+8),a 81 81 ld (ioNewData),a 82 82 ld hl,ioData … … 96 96 jr receiveRestOfDataPacket 97 97 GetSmallDataPacket: 98 ld hl, ioData-198 ld hl,header+8 99 99 $$: ld (iMathPtr5),hl 100 100 ld hl,(header+2) … … 117 117 ld hl,(iMathPtr5) 118 118 receiveDataLoop: 119 in a,( 4)120 bit 3,a119 in a,(interruptStatusPort) 120 bit INT_STATUS_ON,a 121 121 jr z,JErrorNo 122 122 push bc … … 133 133 inc a 134 134 ld (pagedCount),a 135 cp 16 135 cp 16 ;buffer 16 bytes at a time 136 136 call z,SaveFlashBytes 137 137 jr receiveDataContinue … … 152 152 ld a,(pagedCount) 153 153 or a 154 call nz,SaveFlashBytes 154 call nz,SaveFlashBytes ;flush out the buffer 155 155 receiveDataDone: 156 156 call RecAByteIO … … 188 188 or a 189 189 sbc hl,bc 190 or a191 ret ;UH?!192 190 jr nz,$F 193 191 ret … … 205 203 ei 206 204 jr ReceiveAcknowledge 205 -
trunk/page1C/linkutil.asm
r22 r24 42 42 jr Send4Bytes 43 43 44 Get4BytesNC:44 Get4BytesNC: 45 45 call Rec1stByteNC 46 46 Get3Bytes: -
trunk/page1C/silentlink.asm
r22 r24 132 132 di 133 133 res indicOnly,(iy+indicFlags) 134 ld a, 5134 ld a,lcdXAutoIncrementMode 135 135 out (LCDinstPort),a 136 136 eiRet: ei
