Rism Command Examples - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
Table 16-15. RISM Command Descriptions (Continued)
Value
Command
0AH
DATA_TO_ADDR
0BH
INDIRECT
12H
GO
13H
HALT
14H
REPORT

16.10.6 RISM Command Examples

This section provides examples of ways in which you might use the RISM commands.
16-38
Puts the low word of the DATA register into the ADDR register.
ADDR
Before command
After command
22
Puts the word from the memory address pointed to by the ADDR register into the
ADDR register.
ADDR
Before command
22
After command
80
PUSHes the user PC, PSW, and WSR onto the stack and starts your program
from the location contained in the user PC. The RISM PC, PSW, and WSR will
also be in the stack, so allow enough room on the stack for all six words. Your
program must not directly alter memory locations 56H–5CH; the RISM uses these
locations if your program reads from or writes to any memory.
You can interrogate memory locations while your program is running. The RISM
interrupts your program to process the command, then returns execution to your
program.
Stops executing your program, POPs the user PC, PSW, and WSR from the
stack, and PUSHes the RISM PC, PSW, and WSR back onto the stack. The RISM
PC contains the location of the Monitor_Pause routine, so the RISM returns to
Monitor_Pause.
Loads a value into the DATA register. This value indicates the status of your
program:
Value
Status
00
halted
01
running
02
trapped
Description
DATA
F1
05
22
16
F1
05
22
16
09
16
16
Memory Addr.
2217
2216
80
09
80
09

Advertisement

Table of Contents
loading

Table of Contents