Changeset 47 for trunk/page00/boot.asm

Show
Ignore:
Timestamp:
10/10/09 03:20:47 (3 years ago)
Author:
brandonlw
Message:

I'm reaching a point where I really need to be adding oncalc debugging tools, so I guess I'll start working on the system monitor and a basic menu system, rebuilding the APPS and PRGM menus to start with.
From there I can get a Calcsys-style hex editor in there and oncalc usb8x/USBTools-style logging.
Heck, maybe I can even transfer Calcsys TO it and execute at least part of it.
It's a lot of work and kind of off-track, but it's the only way I'm going to diagnose the dual booting and linking problems.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/page00/boot.asm

    r44 r47  
    1111 EXTERN outputPage,NZIf83Plus,_ZERO_PORT_3,_OUT_PORT_3,AnimateRunIndicator,PowerOff 
    1212 EXTERN DispHexA,DispHexHL,IPutC,ReadKeyboardKey,ReadKeypad,ClrLCDFull 
    13  EXTERN curBlink,resetAPDTimer,UpdateAPD,BCALL,BJUMP,CopyRAMToFlashPage 
     13 EXTERN curBlink,resetAPDTimer,UpdateAPD,BCALL,BJUMP,CopyRAMToFlashPage,cphlde,CalculateOSChecksum 
    1414 EXTERN _HandleDefaultUSBInterrupt,_ReadUSBInterruptData,_HandleUSBInterruptInitialize,CopyToRAMPage 
    1515 EXTERN _HandleUSBACablePluggedIn,_HandleUSBACableUnplugged,_HandleUSBBCablePluggedIn,_HandleUSBBCableUnplugged 
    16  EXTERN GetHexA,GetHexHL,CursorOff,RunIndicOn,SetFastSpeed,CanAlph,homescreenContextVectors,SetContrast 
     16 EXTERN GetHexA,GetHexHL,CursorOff,RunIndicOn,SetFastSpeed,CanAlph,homescreenContextVectors,SetContrast,_PULLDOWNCHK 
    1717 
    1818;0000h: 
     
    438438       ld sp,0FFC5h 
    439439       ld iy,flags 
     440       B_CALL ClrScrnFull 
    440441       ;Do any other initialization 
    441442       ;Appear "off" 
     
    474475       res receiveTIOS,(iy+linkFlags2) 
    475476;Start the OS, minimal as it is 
     477       call CalculateOSChecksum 
     478       ld de,(RAMChecksum) 
     479       call cphlde 
     480       jr z,$F 
     481       ;The RAM checksum check has failed, so wipe out RAM and hope for the best 
     482       ;TODO: figure out what this actually needs to do 
     483;       ld hl,appData 
     484;       ld de,appData+1 
     485;       ld bc,7FFFh 
     486;       ld (hl),0 
     487;       ldir 
     488;       jp 0000h 
     489$$:    ;Screw up the RAM checksum so it's no longer valid 
     490       dec de 
     491       ld (RAMChecksum),de 
    476492       call ClrLCDFull 
    477493       res indicOnly,(iy+indicFlags) 
     
    507523       call APP_PUSH_ERRORH 
    508524       ld (onSP),sp 
     525RestartMon: 
    509526_Mon:  xor a 
    510527       ld (kbdKey),a 
     
    515532       call CursorOff 
    516533       call RunIndicOn 
     534       call _PULLDOWNCHK 
     535       jr c,RestartMon 
    517536       call CallcxMain 
    518537       jr _Mon