English
Language : 

HD6475368CP Datasheet, PDF (24/108 Pages) Agilent(Hewlett-Packard) – H8/536 Emulator PC Interface
;***********************************************
;* An invalid command is entered.
;***********************************************
Cmd_I
MOV:I.W
#End_Msgs-Msg_I-1,R1
MOV:I.W
#Msg_I,R4
;***********************************************
;* Message is written to the destination.
;***********************************************
Write_Msg
MOV:I.W
#Msg_Dest,R5
Again
MOV:G.B
@R4+,R3
MOV:G.B
R3,@R5+
SCB/EQ
R1,Again
;***********************************************
;* The rest of the destination area is filled
;* with zeros.
;***********************************************
Fill_Dest
MOV:G.B
#0,@R5+
CMP:I.W
#Msg_Dest+H’20,R5
BNE
Fill_Dest
;***********************************************
;* Go back and scan for next command.
;***********************************************
BRA
Read_Cmd
.SECTION Data,COMMON
;***********************************************
;* Command input byte.
;***********************************************
Cmd_Input
.RES.B
1
.RES.B
1
;***********************************************
;* Destination of the command messages.
;***********************************************
Msg_Dest
.RES.W
H’3E
Stack
.RES.W
1
; Stack area.
Figure 2-1. Sample Program Listing (Cont’d)
Data Declarations
The "Table" section defines the messages used by the program to
respond to various command inputs. These messages are labeled
Msg_A, Msg_B, and Msg_I.
2-26 Getting Started