It is possible to modify this " mov lmm_y, #_HEX+5 '\ set hex mode with 8 digits (8=0=default)" LMM mode
to show in one line that as it look's in example.
else made one HEX mode more
Here is the latest installment. There are now changes to make the commands easier/simpler.
'' RR20130419 0.55 code tidy: now push/pop lmm_y; lmm_y -> lmm_f (function/mode)
'------------------------------------------------------------------------------------------------
'' Call parameters (revised definition)...
'' lmm_f calling function/mode ( eg: mov lmm_f, #_DEBUG ) (was lmm_y)
'' lmm_x typically a value
'' lmm_2 typically a count (will become lmm_y later)
'' lmm_p typically a pointer to a hub location ( eg: location of a string ) (was sometimes lmm_x)
'' Return parameters (revised definition)...
'' lmm_f calling function/mode ( eg: mov lmm_f, #_DEBUG ) (was lmm_y)
'' always returns unchanged (ie: "sticky")
'' lmm_x typically a value
'' only valid for specific calls - maybe destroyed
'' lmm_2 typically a count (will become lmm_y later)
'' only valid for specific calls - maybe destroyed
'' lmm_p typically a pointer to a hub location ( eg: location of a string ) (was sometimes lmm_x)
'' returns set/unchanged/incremented/destroyed, according to the call function/mode
'------------------------------------------------------------------------------------------------
Direct DEBUG commands... prompt "*"
===================================
G<cr> Return to user program
0G<cr> Goto cog address $0 (restart without initialisation)
xxxG<cr> Goto cog address $xxx
xxxxxM<cr> Display (DUMP CODE) COG/HUB long
xxxxxL<cr> Display (DUMP LIST) COG/HUB 4 longs
xxxxx-hh hh hh hh ... hh<cr> stores byte(s) at hub
xxxxx-hhhh hhhh ... hhhh<cr> stores word(s) at hub
xxxxx-hhhhhhhh ... hhhhhhhh<cr> stores long(s) at cog/hub
Ctl-Q<cr> passes control to the Rom Monitor.
where xxxxx = cog/hub address, cog <$1FF else hub.
where G/g, M/m, L/l can be upper/lower case.
The following commands are not currently working...
<cr> Display (repeat DUMP CODE/LIST) from next address.
It is how I work. And what I will that type of load longs
Look in ZIP file.
Unzip in any DIR and run
1. Start "PNut Start LSD_055" by dual push left mouse button.
2. Mark and copy by ctrl-C HEX code attached.
3. activate "PNut Start LSD_055" and in time mouse pointer are in its window push RIGHT mouse button.
4. That if function will load COG with that HEX blob.
Here is changes as per post #138 except lmm_2 is lmm_c.
A single <cr> in debug mode does not currently work.
Sapieha, note that your 4 long output puts 4 spaces on the end also. Is this a problem?
There are examples of the new modes for DUMP in the main user code. eg _COUNT, _HDG
Here is changes as per post #138 except lmm_2 is lmm_c.
A single <cr> in debug mode does not currently work.
Sapieha, note that your 4 long output puts 4 spaces on the end also. Is this a problem?
There are examples of the new modes for DUMP in the main user code. eg _COUNT, _HDG
Thanks Sapieha. Do you like the repeat and heading options? Makes life simple to the caller.
As for your part 1 I have not really looked into the debug section yet - was concentrating of getting the dump working properly. But how do you feed this in to the debugger? Could it be too fast? Do you know what my code is failing on?
To that: I use Windows CUT by ctrl-C from that TXT file.
Then PASTE it in DEBUGER window by pushing RHGHT mouse button.
In this zip file You can find shortcut that starts DEBUGER with all needed option's SET For that PASTE option
Thanks Sapieha. Do you like the repeat and heading options? Makes life simple to the caller.
As for your part 1 I have not really looked into the debug section yet - was concentrating of getting the dump working properly. But how do you feed this in to the debugger? Could it be too fast? Do you know what my code is failing on?
Below are changes that should be in the next release (tomorrow?)...
They are changes to the calling convention. lmm_p will now be used when address pointers are given/returned.
Comments
Examples of code to transmit
Blank line that ends with <cr> ends transmition
It is possible to modify this " mov lmm_y, #_HEX+5 '\ set hex mode with 8 digits (8=0=default)" LMM mode
to show in one line that as it look's in example.
else made one HEX mode more
COG Value
120- 00000003
121- 00008
122- 0005
Hi Cluso.
I remade now Showing Longs as we both have modifing of COG-ram and GoTo XXX.
So no need for placing initial positions in code to compile.
LSD_055.spin
Thanks
Possibility to display DUMP in that manner with 4 " " betwen
Without ASCII at end.
It is for Showing VARIABLES in real manner.
Now it show it in that way
This don't function as wanted.
It need sample 4 bytes in one Long ---- NOT place every one in separate one
And it need sample them in same order as PNut show it
Else it don't function as automated CUT and paste from PNut
Ps. If it is <4 fill to long
It is any possibility to JUMP to: .
By Debuger CALL
Variable_G.<cr>
Variable = Address to JUMP to
Need that for repetitive GoTo on pushing KEY
Are you asking for a similar "G"oto command as a call? (this is what I think you want)
I think You are correct.
Here is how I will use it.
1. Input xxx variable by xxx- zzz
2. Wait for KEY's
2. read KEY's
3. if KEY 1 return
4 if KEY 2 GoTo xxx
5 Return
I will input that code to LONG's one line at time
And it need be placed in LONG's so it will be executable
Changed -- looks function.
Have You any examples on new functions usage?
I merged it.
Used.
It is how I work. And what I will that type of load longs
Look in ZIP file.
Unzip in any DIR and run
1. Start "PNut Start LSD_055" by dual push left mouse button.
2. Mark and copy by ctrl-C HEX code attached.
3. activate "PNut Start LSD_055" and in time mouse pointer are in its window push RIGHT mouse button.
4. That if function will load COG with that HEX blob.
000- 0D A4 FF 0C D3 A5 BF 80 00 A4 BF FC 9B 01 7C 1C
010- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
020- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
030- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
040- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
050- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
Ps. same for ASCII but that it be placed as TEXT --- ABCDEFGH
>
A single <cr> in debug mode does not currently work.
Sapieha, note that your 4 long output puts 4 spaces on the end also. Is this a problem?
There are examples of the new modes for DUMP in the main user code. eg _COUNT, _HDG
LSD_057.spin
Much to test --->
THANKS
1. Part of test's
As You can see from litle dump I attached it still dont function as wanted
As You can see line witrh address $000 inputs correctly but not line's after
== Cluso's P2 Debugger v0.57 ==
*000- 0D A4 FF 0C D3 A5 BF 80 00 A4 BF FC 9B 01 7C 1C
?*010- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*020- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*030- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*040- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*050- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*0- 0d a4 ff 0c d3 a5 bf 80 00 a4 bf fc 9b 01 7c 1c
?*0l
000- 0D BE FC 0C 60 BE BC 80 00 BE BC FC 0D E2 FC A0 '....`...........'
*010- 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43
?*
2. Part of test's
Function as desired BUT I can't find how I shall show that from COG
addr- ----0--- ----1--- ----2--- ----3---
01000- 0CFCC60D 80BCC664 FCBCC600 A0FFCA0D
01010- 1FFFC7DE A0FFC880 A0BFCA5E 1FFFC7DC
01020- A0FFCA37 1FFFC7DE A0FFCA38 1FFFC7DE
Forget this patr of previous post
2. Part of test's
Found it HOW ---- clever
As for your part 1 I have not really looked into the debug section yet - was concentrating of getting the dump working properly. But how do you feed this in to the debugger? Could it be too fast? Do you know what my code is failing on?
Look in next post.
In zip file You can find any TXT file.
To that: I use Windows CUT by ctrl-C from that TXT file.
Then PASTE it in DEBUGER window by pushing RHGHT mouse button.
In this zip file You can find
It is NOT complete YET --- But maybe give You some ideas.
I attach Version I work on That can be possible have AUTOSTART from FLASH.
And it is why I need that HEX input to.
And if possible STRINGS that can be CUT and paste LIKE !!
2000$Any STRING cut from TXT file.
INPUT end's only if else NUL (Maybe 3xNUL-$0D) string entered ---> That give PASTE of any text to Starting position $2000.
But You need test for $0A in end of every line and if present skip IT in both on HEX and TXT mode
That are good for tests of all type of CHARACTER based interpreter's
They are changes to the calling convention. lmm_p will now be used when address pointers are given/returned.