Changeset 35 for trunk/page00/boot.asm
- Timestamp:
- 08/05/09 02:59:44 (3 years ago)
- Files:
-
- 1 modified
-
trunk/page00/boot.asm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/page00/boot.asm
r34 r35 473 473 call ReadKeypad 474 474 cp skGraphvar 475 jrz,StartBootLoader475 call z,StartBootLoader 476 476 $$: set indicRun,(iy+indicFlags) 477 477 ld hl,1 … … 512 512 513 513 StartBootLoader: 514 ;TODO: this whole thing eventually needs to run from sector 70h or wherever I back myself up to 514 ;This is called in two places: during OS2 boot (we're on page 0) 515 ; while on page 70h and we're temporarily swapped in 516 ;We need to put a loader in RAM and call that, which might return and we're good, or it'll switch OSes. 517 ;TODO: this whole thing needs to run from RAM and depend on neither OS 518 ld hl,BootLoader 519 ld de,userMem 520 ld bc,BootLoaderEnd-BootLoader 521 ldir 522 jp userMem 523 BootLoader: 515 524 res indicOnly,(iy+indicFlags) 516 525 res curAble,(iy+curFlags) … … 552 561 jr BootLoaderKeyLoop 553 562 $$: call ClrLCDFull 554 j rTurnCalculatorOn563 jp TurnCalculatorOn 555 564 SwitchOS: 565 B_CALL UnlockFlash 566 ;NOTE: this loader of the loader needs to execute as if it were either from here or page 70h. 567 ;TODO: Uh...not yet! 556 568 ;Copy a loader to RAM which does the following: 557 569 ; Back up sector 0 to the extra RAM pages … … 566 578 ; Copy from the extra RAM pages to pages 68h-6Bh 567 579 ;Restart. 568 ;NOTE: this loader of the loader needs to execute as if it were either from here or page 70h. 569 ;TODO: Uh...not yet! 570 call ClrLCDFull 571 jr TurnCalculatorOn 580 rst 00h 572 581 NZIfTIOSExists: 573 582 in a,(memPageAPort) … … 601 610 DB "enable dual " 602 611 DB "booting.",0 612 BootLoaderEnd: 603 613
