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/display.asm

    r42 r47  
    33 
    44 PUBLIC AnimateRunIndicator,DispHexA,PutS,PutC,curBlink,SaveOScreen,DispHexHL,EraseEOL,ClrLCDFull 
    5  PUBLIC _LCD_COMMAND,SetXAutoIncrementMode,SetYAutoIncrementMode,IPutSB,PutMap 
     5 PUBLIC _LCD_COMMAND,SetXAutoIncrementMode,SetYAutoIncrementMode,IPutSB,PutMap,ClrScrnFull,ClrTxtShd 
    66 PUBLIC saveTR,restoreTR,showCursor,CursorOff,CursorOn,hideCursor,RunIndicOn,IPutC 
    7  EXTERN IsAtEditTail,IsAtBtm,LCDDelay 
     7 EXTERN IsAtEditTail,IsAtBtm,LCDDelay,ATimes16 
    88 
    99 include "includes\os2.inc" 
     
    1616CursorOn: 
    1717;TODO: come back to these... 
     18       ret 
     19 
     20ClrScrnFull: 
     21       call ClrLCDFull 
     22ClrTxtShd: 
     23       bit appTextSave,(iy+appFlags) 
     24       ret z 
     25       ld hl,textShadow 
     26       ld (hl),' ' 
     27       ld de,textShadow+1 
     28       ld bc,127 
     29       ldir 
    1830       ret 
    1931 
     
    229241;TODO: get this using a built-in font table instead of this boot code hack 
    230242PutC: 
    231        ld b,a 
     243       push af 
     244       push bc 
     245       push de 
     246       push hl 
     247       push ix 
     248       bit appTextSave,(iy+appFlags) 
     249       jr z,$F 
     250       call GetTextShadowOffset 
     251       ld (hl),a 
     252$$:    ld b,a 
    232253       in a,(6) 
    233254       push af 
     
    265286       ld a,b 
    266287       out (6),a 
     288       pop ix 
     289       pop hl 
     290       pop de 
     291       pop bc 
     292       pop af 
     293       ret 
     294GetTextShadowOffset: 
     295       push af 
     296       push bc 
     297       push de 
     298       ld hl,(curRow) 
     299       ld a,l 
     300       call ATimes16 
     301       add a,h 
     302       ld l,a 
     303       ld h,0 
     304       ld de,textShadow 
     305       add hl,de 
     306       pop de 
     307       pop bc 
     308       pop af 
    267309       ret 
    268310