- Announcement about May 10th, 2018 update and your password.
P2 Monitor/Debug for possible inclusion in the ROM
This is in case Peter cannot fit TAQOZ into the ROM.
The code runs in hub in hubexec mode and supports Serial I/O on P62&63 as well as various list commands that may be called from a users program.
I have detailed the output in previous thread(s).
This code requires COG $1E0-$1EF for parameter passing to the hubexec code, and a further 128 bytes somewhere in hub ram for buffer and stack space. Currently this is a fixed location, but is intended to be set as a parameter when the serial code is initialised. The baud is already set by a passed parameter to _SerialInit. This will be a second parameter.
The following calls are supported...
_HubTx transmit a serial character
_HubTxString transmit a serial string, $0 terminated
_HubHex transmit in hex
_HubList list cog/lut/hub data
_HubRx receive a serial character
_HubRxString receive a serial string, <cr> terminated
_HubMonitor call the monitor/debug with following command formats
[[#]xxxxxxxx] [-] [.yyyyy] [,[$]ccccc] z [m] <cr>
[xxxxxx] . [yyyyyy] L <cr> List COG/LUT/HUB from addr1 to addr2
Q <cr> Return to user program
? <cr> Display help
[xxxxxx] - [xxxxxxxx] ... <cr> Store to address with data...
(will take paste of list output format)
To do (time permitting)
[xxxxxx] G <cr> Goto address
[xxxxxx] . [yyyyyy] , [ccccc] M<cr> Move COG/LUT/HUB from addr1 to addr2 for count
#[xxxxxxxx] . [yyyyyy] , [ccccc] M<cr> Fill COG/LUT/HUB with data to addr2 for count
Attached is the code for testing.
Please don't ask for features as I don't have the time for discussion as the ROM closes Friday !!!