Screenshot debugger:
How to use the debugger: To invoke the debugger must press TAB.
Step Button - step forward.
BrPt Button - breakpoint - point of the program stops at the address listed in editbokse right.
Trace button - make the number of steps specified in editbokse right.
Patch- button writes the name in memory at the specified address.
To the text of the disassembled listing appeared in a string to edit it necessary to tap on the stylus.
Input syntax: [Address]: [command text]
To change the contents of the register - the same thing.
Tapan on the register list. In edtitbokse text appears below the list.
Or the rights of his or vvodimchto something new.
[Register Name]: [The register]
Once entered - click the Change button
An example of using the debugger:
Let's say we need to change a few bytes in the file ROM.BIN.
Take a hex-editor, change.
The microcomputer loaded, everything seems to be working fine. But if you enter the TEST command, the display will show the word "defect ROM".
That it was not - recruit TEST, and immediately press TAB. We fall into a long cycle of ROM parity at 1032-1034. Put breypoynt at 1036. There is a parity check (Flag Z, flag C). If the parity conditions are not met, we get to the address 1038 - pops inscription defect ROM. And if we get at 103C, then nothing will happen and the calculator will continue to test. The test is successful.
In order to get to the address 103C avoiding unfortunate message to the address in 1038 it is necessary to zanopit - insert 2 Nopal. Tapan on line 1038 and replace its contents for nop. Then mariae on the next line and also insert its contents instead of ALD.
All. All corrections made. Close the debugger and enjoy programming in BASIC.
Sources:
Attached files
mk85_ce_src.rar(149.83 KB)