Description The debugger is an integral part of the emulator, and can be used to trace what the program is doing. Both Euphoric and Oricutron have a built in debugger, unfortunately they have different keyboard shortcuts so please make sure you use the correct ones :) |
|
Euphoric |
Oricutron |
To access Euphoric's debugger you need to press the F11 key. This will show you this screen: ![]() Pressing F11 again will leave the debugger. |
To access Oricutron's debugger you need to press the F2 key. This will show you this screen: ![]() In the monitor, number arguments are decimal by default, or prefixed with $ for hex or % for binary. Pretty much everything is output in hex. In most places where you can enter a number or address, you can pass a CPU or VIA register. (VIA registers are prefixed with V, e.g. VDDRA). Anywhere you can pass an address, you can also use a symbol. |
Commands |
|
To use Euphoric's debugger, you need to know some keys:
|
To use Oricutron's debugger, you need to know some keys:
You also have some more advanced commands:
|
Advanced features |
|
Euphoric's debugger has been slightly improved (there's a small assembler now) and made more consistent with existing PC debuggers (like debug :-). Here are the commands:
|
Oricutron supports two types of breakpoints. "Normal" breakpoints trigger when the CPU is about to execute an instruction at the breakpoint address. "Memory" breakpoints trigger when the breakpoint address is accessed or modified. There are three ways a memory breakpoint can be triggered; when the CPU is about to read the address (r), and the CPU is about to write the address (w), or after the value at the address changes for any reason (c). You specify which ways you'd like the breakpoint to trigger when you set the memory breakpoint:
|
Symbols Since the assemblers are compatible with both Euphoric and Oricutron's symbol formats, you should see all the symbols defined in your program directly while debugging. |