The dBug monitor provides a text-based interface for you to interact with the SBC. The main dBug commands we will use are shown in Table 1.
Rather than go through a lengthy explanation of each command, it is probably more efficient for you to learn by doing, and make use of the help command. For example, type rd at the dBug prompt to see the current register contents.
Let's enter and run the following code fragment by hand:
10000 303C 2468 move.w #0x2468,%d0
10004 33C0 0002 move.w %d0,0x20000
0000
1000a 7000 move.l #0x0000,%d0
1000c 4E4F trap #15
This is similar to code we used for the BSVC simulator. However, the last two instructions are used to provide a graceful means for exiting back to the dBug monitor.
Enter this code beginning at memory location 0x10000:
Next, run the code and check for correct operation:
go 10000to begin execution of your code beginning at memory location 0x10000.
From now one we will use the gcc cross development system to assemble/compile our code. This system will automatically take care of initialization termination issues associated with user programs. All code will start at memory address 0x10000.
ANU Engineering - ENGN3213