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/page1C/silentlink.asm

    r44 r47  
    1111 EXTERN SetYAutoIncrementMode,SendContinue,ReceiveDataPacket,DispHexHL,PutC,receiveRestOfDataPacket 
    1212 EXTERN CopyToRAMPage,CopyRAMToFlashPage,EraseEOL,PowerOff,SendHCommand,IPutSB,IPutC,CheckForBootLoader 
    13  EXTERN SetupPagedPtr,PagedGet,SendChecksumGetAcknowledge 
     13 EXTERN SetupPagedPtr,PagedGet,SendChecksumGetAcknowledge,RecAByteIO 
    1414 
    1515keyscnlnk: 
     
    4040       ld a,(ioData) 
    4141       call ContinueGetByte 
     42       bit 5,(iy+3Dh) 
     43       jr nz,keyscnlnkEnd 
     44       ;HACK: until I figure out where the extra zero's coming from... 
    4245       call Get3Bytes 
     46HandleLinkPacket: 
    4347       ld hl,cmdTable 
    4448       ld b,(hl) 
     
    110114 
    111115memoryDumpPacket: 
     116       ld hl,ioData 
     117       ld (iMathPtr5),hl 
    112118       call receiveRestOfDataPacket 
    113119       ld bc,(ioData) 
    114120       ld b,c 
    115121       ld de,(ioOP1) 
     122       ld a,b 
     123       ld hl,0 
     124       ld (curRow),hl 
     125       call DispHexA 
     126       ex de,hl 
     127       call DispHexHL 
     128       ex de,hl 
    116129       call SetupPagedPtr 
    117130       ld de,(ioOP1+2) 
    118131       ld (header+2),de 
     132       push de 
    119133       ld hl,1573h 
    120134       ld (header),hl 
    121135       call Send4Bytes 
    122136       ld hl,0 
    123        ld (checksum),hl 
    124        ld de,(header+2) 
     137       ld (header+4),hl 
     138       pop de 
    125139$$:    push de 
    126140       call PagedGet 
     
    135149 
    136150receivedRequestToSend: 
     151       ld hl,ioData 
     152       ld (iMathPtr5),hl 
    137153       call receiveRestOfDataPacket 
    138154       ld a,(ioOP1)