Changeset 31
- Timestamp:
- 08/02/09 03:47:17 (3 years ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
includes/os2.inc (modified) (1 diff)
-
page00/boot.asm (modified) (2 diffs)
-
page1C/linkprotocol.asm (modified) (1 diff)
-
page1C/silentlink.asm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/os2.inc
r29 r31 201 201 linkFlags EQU 1Bh 202 202 useUSB EQU 5 203 204 linkFlags2 EQU 1Ch ;this is not used by the TI-OS as far as I know 205 receiveTIOS EQU 0 203 206 204 207 ;---------------------------------------------------------------------- -
trunk/page00/boot.asm
r30 r31 465 465 set onRunning,(iy+onFlags) 466 466 ;Start the OS, minimal as it is 467 res receiveTIOS,(iy+linkFlags2) 467 468 call ClrLCDFull 468 469 res indicOnly,(iy+indicFlags) … … 572 573 ld hl,sClearToCancel 573 574 call PutS 575 set receiveTIOS,(iy+linkFlags2) ;receive the TI-OS to the extra pages instead of just jumping to the boot code 574 576 BootLoaderKeyLoop: 575 577 B_CALL GetKey -
trunk/page1C/linkprotocol.asm
r29 r31 5 5 include "includes\internal.inc" 6 6 7 PUBLIC SendCommandA,ReceiveHeaderPacket,SendSkipExitPacket,SendCAndAddToChecksum 7 PUBLIC SendCommandA,ReceiveHeaderPacket,SendSkipExitPacket,SendCAndAddToChecksum,SendContinue,ReceiveDataPacket 8 8 EXTERN SetupPagedPtr,EnableLinkAssist,Send4Bytes,PagedGet,SendAByte,Get4BytesNC,JErrorNo 9 9 EXTERN SendCByte,RecAByteIO,SaveFlashBytes,SendAcknowledge 10 11 SendContinue: 12 ld hl,0973h 13 ld (header),hl 14 ld hl,0 15 ld (header+2),hl 16 jr Send4Bytes 10 17 11 18 SendCommandA: -
trunk/page1C/silentlink.asm
r30 r31 9 9 EXTERN DispHexA,LdHLInd,SendAcknowledge,ReceiveHeaderPacket,SendSkipExitPacket,Get4BytesNC,SendCommandA 10 10 EXTERN Send4Bytes,SendCAndAddToChecksum,LCDDelay,_LCD_COMMAND,SendAByte,SetXAutoIncrementMode 11 EXTERN SetYAutoIncrementMode 11 EXTERN SetYAutoIncrementMode,SendContinue,ReceiveDataPacket 12 12 13 13 keyscnlnk: … … 153 153 call SendAcknowledge 154 154 jr keyscnlnkEnd 155 155 156 receivedVariableHeader: 156 157 call ReceiveHeaderPacket … … 164 165 jr keyscnlnkEnd 165 166 receivingOS: 167 bit receiveTIOS,(iy+linkFlags2) 168 jr z,ReceiveNewOS 169 ld hl,receiveTIOSHandler 170 call APP_PUSH_ERRORH 171 ;TODO: actually implement all of this 172 ReceiveOSPage: 173 call SendContinue 174 ld bc,(ioData) 175 ld hl,appData 176 ld (iMathPtr5),hl 177 call ReceiveDataPacket 178 call Get4BytesNC 179 ld a,(header+1) 180 cp 92h 181 jr z,$F 182 call ReceiveHeaderPacket 183 jr ReceiveOSPage 184 $$: call SendAcknowledge 185 ;Receive a copy of the TI-OS to the spare Flash sectors 186 ;Patch the received TI-OS to not erase sector 70h (where we will be backed up) 187 ;Put the [X,T,theta,N] boot loader in page 0 188 call APP_POP_ERRORH 189 receiveTIOSHandler: 190 jr keyscnlnkEnd 191 ReceiveNewOS: 192 ;Start the process of receiving the OS to replace this one 166 193 call EnableLinkAssist 167 194 ld a,0FFh
