Changeset 57
- Timestamp:
- 11/01/09 02:29:06 (2 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
includes/os2.inc (modified) (1 diff)
-
page00/boot.asm (modified) (7 diffs)
-
page00/home.asm (modified) (2 diffs)
-
page00/util.asm (modified) (2 diffs)
-
page1C/silentlink.asm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/os2.inc
r56 r57 409 409 statusIsSE84P EQU 7 410 410 STATUS_NON_83P_MASK EQU 80h 411 STATUS_84P_SERIES_MASK EQU 00100000b 411 412 412 413 ;====================================================================== -
trunk/page00/boot.asm
r56 r57 6 6 PUBLIC LdHLInd,BCALLRoutine,CheckForBootLoader,OS2Marker,AppInit,JForceCmdNoChar,JForceCmd 7 7 EXTERN PutS,PutC,ifastcopy,CallUSBActivityHook,CheckLowBatteriesTurnOff,SaveOScreen 8 EXTERN RunLinkActivityHook,HandleLinkKeyActivity,ResetStacks,_LCD_DRIVERON 8 EXTERN RunLinkActivityHook,HandleLinkKeyActivity,ResetStacks,_LCD_DRIVERON,NZIf84PlusSeries 9 9 EXTERN _APP_PUSH_ERRORH,_APP_POP_ERRORH,FindSym,PushRealO1,Mov9ToOP1,FPAdd,OP1ToOP2,LCDDelay 10 10 EXTERN Placeholder005Fh,Placeholder0006h,Placeholder004Eh,Placeholder0003h,Placeholder0035h … … 133 133 ex af,af' 134 134 exx 135 call NZIf84PlusSeries 136 jr z,resumeInterruptHandler 135 137 in a,(usbStatusPort) 136 138 xor 0FFh … … 224 226 exx 225 227 ei 226 ret i228 ret ;i 227 229 secondHardwareTimerTriggered: 228 230 ;This only fires when enableHW2Timer,(iy+interruptFlags) is set, and that's only done by _getKey. … … 525 527 set apdAble,(iy+apdFlags) 526 528 set apdRunning,(iy+apdFlags) 529 set batteriesGood,(iy+interruptFlags) 527 530 xor a 528 531 ld (menuCurrent),a … … 756 759 nop 757 760 nop 758 ld a,0 BFh761 ld a,0EFh 759 762 out (1),a 760 763 nop … … 762 765 nop 763 766 in a,(1) 764 and 0 FEh767 and 07Fh 765 768 ld a,0FFh 766 769 out (1),a … … 774 777 ;We need to put a loader in RAM and call that, which might return and we're good, or it'll switch OSes. 775 778 ;TODO: this whole thing needs to run from RAM and depend on neither OS (or both, you might say) 779 ld a,(OS2Marker) 780 or a 776 781 ld hl,BootLoader 777 ld de,userMem 782 jr z,$F 783 ld hl,BootLoader+4000h 784 $$: ld de,userMem 778 785 ld bc,BootLoaderEnd-BootLoader 779 786 ldir -
trunk/page00/home.asm
r55 r57 49 49 pop hl 50 50 ld (curRow),hl 51 cp kGraph 52 jr z,killOtherOS 51 53 cp kYequ 52 54 ret nz … … 83 85 set curAble,(iy+curFlags) 84 86 ret 87 killOtherOS: 88 B_CALL UnlockFlash 89 ld a,70h 90 B_CALL EraseFlashPage 91 ret 85 92 -
trunk/page00/util.asm
r52 r57 3 3 4 4 PUBLIC _APP_PUSH_ERRORH,_APP_POP_ERRORH,PushRealO1,Mov9ToOP1,FPAdd,LCDDelay 5 PUBLIC CopyFlashPage,ATimes16,CalculateOSChecksum 5 PUBLIC CopyFlashPage,ATimes16,CalculateOSChecksum,Is84P,NZIf84PlusSeries 6 6 PUBLIC Placeholder005Fh,Placeholder0006h,Placeholder004Eh,Placeholder0003h,Placeholder0035h 7 7 PUBLIC outputPage,NZIf83Plus,ZIfSlowSpeed,GetBytePaged,MakeOffPageCall,CopyToRAMPage … … 624 624 ret 625 625 626 NZIf84PlusSeries: 627 push bc 628 push af 629 in a,(statusPort) 630 and STATUS_84P_SERIES_MASK 631 pop bc 632 ld a,b 633 pop bc 634 ret 635 -
trunk/page1C/silentlink.asm
r53 r57 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 477 ;Find the page 0 routine for this OS 475 478 ld a,7Bh
