Hitachi SH7760 Solution Engine2 Overview page 125

Table of Contents

Advertisement

(7) User program execution
Use the g command to run the program transferred to the user memory. Enter this g command as shown below.
Ready >G AC000000
As shown above, the address h'AC000000 is set in the program counter (PC), and the program is run from that
address. When Ctrl + C is input in the operation terminal (computer), the monitor program displays information
on all the registers and interrupts the execution of user programs.
--General Registers------------------------------------------------------------------------------------------------
R0- 7 00000000
R8-15 00000000
--Bank Registers-----------------------------------------------------------------------------------------------------
R0- 7 00000000
SR =600000E1 SSR=60000090 SPC=AC00001C GBR=00000000
VBR=00000000 SGR=AFFF0000 DBR=00000000
MD=1 RB=1 BL=0 FD=0 M=0 Q=0 IMASK=0xE S=0 T=1
--System Registers------------------------------------------------------------------------------------------------
PC =AC00001C PR =00000000 MACH=00000000 MACL=00000000
FPSCR= 00040001 FPUL=00000000
FR= 0 SZ=0 PR=0 DN=1 Cause=0x00 Enable=0x00 Flag=0x00 RM=0x1
Ready >
(8) User program execution in units of steps
Use the s command to run the program transferred to the user memory in units of steps. Enter the s command as
shown below.
Ready >S AC000000
If the s command is executed, the monitor program displays the executed addresses and information on all the
registers.
Ready >S AC000000
AC000000 0009 NOP
--General Registers---------------------------------------------------------------------------------------------
R0-7 00000000
R8-15 00000000 00000000 00000000 00000000 00000000 00000000 00000000 AFFF0000
--Bank Registers--------------------------------------------------------------------------------------------------
R0- 7 00000000
--Control Registers-----------------------------------------------------------------------------------------------
SR =600000F0 SSR=60000090 SPC=AC000002 GBR=00000000
VBR=00000000 SGR=AFFF0000 DBR=00000000
MD=1 RB=1 BL=0 FD=0 M=0 Q=0 IMASK=0xF S=0 T=0
--System Registers----------------------------------------------------------------------------------------------
PC = AC000002 PR =00000000 MACH=00000000 MACL=00000000
FPSCR=00040001 FPUL=00000000
FR=0 SZ=0 PR=0 DN=1 Cause=0x00 Enable=0x00 Flag=0x00 RM=0x1
Ready >
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 AFFF0000
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000
122

Advertisement

Table of Contents
loading

Table of Contents