In order to ease porting KeyTech to new hardware, a machine independent debugger is desirable. This proposal provides fairly general access to the machine independent facilities provided by a domain key. The access to the machine dependent facilities (such as registers) is much more limited to ease porting.
Design Alternatives.
Using C syntax for expressions.
Using C syntax for gate jumps.
Is a call to the returner sufficent for this requirement? (Would need to have a returner key handy or built in.) - WSF
Might I suggest a DS format|number command to display a string. I realize that calling returner with %p might apply - ACB
By popular demand see the DE (display expression value) command below. - WSF
Not in the current design - WSF
Utility Commands
We could do what the new command system does. i.e. If the string is all printable characters, then display it as characters, otherwise in dump format. Hex only with no formating to help determine offsets is a bad joke on the user. I think dump only for the initial version is the way to go. - WSF
Is a KEYFORK operations needed/useful?
DM <address> <length>
Always at the user address. I get anoyed at things (like CP) that show me what they want and not what I asked for. - WSF
I have seen displays that nominally align but supply leading blanks on the first line of the display until the requested address comes up. - ACB
The trouble with that approach is frequently you are after consistant offsets in data that is not naturally aligned on word boundries. An example is stepping through the nodes in a node pot. To aid recognization of the fields in a node you would like the start of each node to be in the same place in the display, not marching all over the screen. If you want word aligned displays you can always provide word aligned addresses. - WSF
Would D be better??? - WSF
I am assuming a #define for machine dependencies such as word size. The question in my mind is: Is this debugger, and KeyTech itself, portable to architectures where word size is not a multiple of character size? - WSF
G