Changeset 47 for trunk/page00/util.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/util.asm

    r43 r47  
    33 
    44 PUBLIC _APP_PUSH_ERRORH,_APP_POP_ERRORH,FindSym,PushRealO1,Mov9ToOP1,FPAdd,OP1ToOP2,LCDDelay 
    5  PUBLIC CopyFlashPage 
     5 PUBLIC CopyFlashPage,ATimes16,CalculateOSChecksum 
    66 PUBLIC Placeholder005Fh,Placeholder0006h,Placeholder004Eh,Placeholder0003h,Placeholder0035h 
    77 PUBLIC outputPage,NZIf83Plus,ZIfSlowSpeed,GetBytePaged,MakeOffPageCall,CopyToRAMPage 
    8  PUBLIC CopyRAMToFlashPage,CanAlphIns,CanAlph,ResAlph,GetHexA,GetHexHL,SetFastSpeed 
     8 PUBLIC CopyRAMToFlashPage,CanAlphIns,CanAlph,ResAlph,GetHexA,GetHexHL,SetFastSpeed,cphlde 
    99 PUBLIC BCALL,BJUMP,JErrorNo,SetupPagedPtr,PagedGet,EraseRAMPage,SetContrast,MemClear 
    1010 EXTERN Page0Call,UpdateAPD,PowerOff,GetCSC,PutC,DispHexHL,PutMap,BCALLRoutine,OS2Marker 
     
    2222Placeholder004Eh: 
    2323Placeholder005Fh: 
     24       ret 
     25 
     26cphlde: 
     27       push hl 
     28       or a 
     29       sbc hl,de 
     30       pop hl 
     31       ret 
     32 
     33ATimes16: 
     34       add a,a 
     35       add a,a 
     36       add a,a 
     37       add a,a 
     38       ret 
     39 
     40CalculateOSChecksum: 
     41       push ix 
     42       ld ix,userMem 
     43       ld bc,0FE70h-userMem 
     44       ld hl,0011h 
     45       ld d,h 
     46$$:    ld e,(ix+0) 
     47       inc ix 
     48       add hl,de 
     49       dec bc 
     50       ld a,b 
     51       or c 
     52       jr nz,$B 
     53       ld e,d 
     54       ex de,hl 
     55       sbc hl,de 
     56       pop ix 
    2457       ret 
    2558