Changeset 59
- Timestamp:
- 11/01/09 14:00:18 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
page00/boot.asm (modified) (5 diffs)
-
page1C/silentlink.asm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/page00/boot.asm
r58 r59 806 806 ld hl,sTIOS-BootLoader+userMem 807 807 $$: B_CALL PutS 808 ld hl,5 809 ld (curRow),hl 810 ld hl,sInstructions-BootLoader+userMem 811 B_CALL PutS 808 812 ld hl,6 809 813 ld (curRow),hl 810 ld hl,sInstructions -BootLoader+userMem814 ld hl,sInstructions2-BootLoader+userMem 811 815 B_CALL PutS 812 816 ld hl,7 … … 821 825 cp skDel 822 826 jr z,ReceiveTIOS 827 cp sk0 828 jr z,DeleteOS 823 829 ld hl,contrast 824 830 cp skAdd … … 940 946 B_CALL ClrLCDFull 941 947 rst 00h 948 DeleteOS: 949 call UniversalUnlockFlash-BootLoader+userMem 950 ld a,70h 951 ld b,0 952 ld de,4056h 953 B_CALL WriteAByte 954 ;Restart. 955 rst 00h 942 956 ReceiveTIOS: 943 957 ;We don't have a copy of the TI-OS, receive one … … 973 987 ld a,70h 974 988 out (memPageAPort),a 975 ld hl,(4000h) 976 inc hl 977 ld a,h 978 or l 989 ld a,(4000h+0056h) 990 ;HACK: be smarter about this... 991 cp 5Ah 992 jr z,$F 993 xor a 994 jr NZIfTIOSExists_1 995 $$: or 1 996 NZIfTIOSExists_1: 979 997 pop bc 980 998 ld a,b … … 1191 1209 sInstructions: 1192 1210 DB LlBrack,"Y=] to switch",0CEh,0 1211 sInstructions2: 1212 DB LlBrack,"0] to delete",0CEh,0 1193 1213 sClearToCancel: 1194 1214 DB LlBrack,"CLEAR] to exit",0 -
trunk/page1C/silentlink.asm
r57 r59 11 11 EXTERN SetYAutoIncrementMode,SendContinue,ReceiveDataPacket,DispHexHL,PutC,receiveRestOfDataPacket 12 12 EXTERN CopyToRAMPage,CopyRAMToFlashPage,EraseEOL,PowerOff,SendHCommand,IPutSB,IPutC,CheckForBootLoader 13 EXTERN SetupPagedPtr,PagedGet,SendChecksumGetAcknowledge,RecAByteIO 13 EXTERN SetupPagedPtr,PagedGet,SendChecksumGetAcknowledge,RecAByteIO,cphlde,NZIf84PlusSeries 14 14 15 15 keyscnlnk: … … 312 312 ld (curRow),hl 313 313 ld a,(ioData+8) 314 call DispHexA314 ; call DispHexA 315 315 ld hl,(ioData+6) 316 call DispHexHL316 ; call DispHexHL 317 317 call EraseEOL 318 318 pop hl … … 386 386 push af 387 387 ld a,5 388 call IPutC389 ex de,hl 390 call DispHexHL388 ; call IPutC 389 ex de,hl 390 ; call DispHexHL 391 391 ex de,hl 392 392 ld a,d … … 394 394 ld d,a 395 395 ex de,hl 396 call DispHexHL396 ; call DispHexHL 397 397 ex de,hl 398 398 pop af … … 429 429 ld hl,6 430 430 ld (curRow),hl 431 call DispHexA432 ex de,hl 433 call DispHexHL431 ; call DispHexA 432 ex de,hl 433 ; call DispHexHL 434 434 ex de,hl 435 435 pop bc 436 436 push bc 437 437 pop hl 438 call DispHexHL438 ; call DispHexHL 439 439 ld hl,appData 440 440 B_CALL UnlockFlash … … 472 472 ld hl,(0054h+8000h) 473 473 ld (3FFEh+8000h),hl 474 ;While we're at it, mark the OS as valid 475 ld a,5Ah 476 ld (0056h+8000h),a 474 ;Find the jump to the boot code and modify it to be appropriate for the model 475 ld de,8000h 476 add hl,de 477 push hl 478 pop ix 479 findBootCodeJumpLoop: 480 ld l,(ix+0) 481 ld h,(ix+1) 482 ld de,80D5h 483 call cphlde 484 jr z,$F 485 ld de,812Ch 486 jr z,$F 487 inc ix 488 push ix 489 pop bc 490 bit 6,b 491 jr z,findBootCodeJumpLoop 492 jr skipBootCodeJump 493 $$: ld de,812Ch 494 call NZIf84PlusSeries 495 jr nz,$F 496 ld de,80D5h 497 $$: ld (ix+0),e 498 ld (ix+1),d 499 skipBootCodeJump: 477 500 ;Find the page 0 routine for this OS 478 501 ld a,7Bh … … 522 545 dec c 523 546 jr nz,$B 547 ;Mark the OS as valid 548 xor a 549 ld b,5Ah 550 ld de,0056h 551 B_CALL WriteAByte 524 552 ld hl,0 525 553 ld (curRow),hl … … 529 557 ld a,81h 530 558 out (7),a 531 call DispHexHL559 ; call DispHexHL 532 560 ld a,'Y' 533 call PutC561 ; call PutC 534 562 res indicOnly,(iy+indicFlags) 535 B_CALL GetKey563 ; B_CALL GetKey 536 564 call SendAcknowledge 537 565 ;Couldn't hurt to try to send another acknowledge, because TI Connect sucks
