Minor Debugger improvements, notes, etc, while debugging the PDP-11 BASIC
This commit is contained in:
parent
aa2a25c5ec
commit
e1e9a6ed27
1 changed files with 3 additions and 3 deletions
|
|
@ -23,9 +23,9 @@ Third-party resources include:
|
||||||
Debugging Notes
|
Debugging Notes
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
One of the first things I noticed when debugging PDP-11 BASIC was its reliance on TRAP instructions.
|
One of the first things I noticed when debugging PDP-11 BASIC was its heavy reliance on TRAP instructions.
|
||||||
For example, `TRAP 000` used to output the character in R2 to the terminal. Let's take a closer look at how its
|
For example, `TRAP 000` is used to output the character in R2 to the terminal. Let's take a closer look at how
|
||||||
TRAP handler works.
|
its TRAP handler works.
|
||||||
|
|
||||||
First, if you check the table of PDP-11 trap vectors, you'll see that the vector for TRAP instructions is 000034.
|
First, if you check the table of PDP-11 trap vectors, you'll see that the vector for TRAP instructions is 000034.
|
||||||
So let's dump the contents of the two-word vector at 000034:
|
So let's dump the contents of the two-word vector at 000034:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue