OPERATING INSTRUCTIONS
4-16
M68HC11EVB/D
CALL
CALL
4.6.6
Call
CALL [<address>]
where:
<address>
The starting address where user program subroutine execution begins.
The CALL command allows the user to execute a user program subroutine. Execution starts at
the current program counter (PC) address location, unless a starting address is specified. Two
extra bytes are placed onto the stack before the return from interrupt (RTI) is issued so that the
first unmatched return from subroutine (RTS) encountered will return control back to the monitor
program. Thus any user program subroutine can be called and executed via the monitor program.
Program execution continues until a breakpoint is encountered, or the EVB reset switch S1 is
activated (pressed).
Example program for CALL, G, and P command examples
>ASM C000<CR>
C000 STX $FFFF
>LDAA #44<CR>
86 44
C002 STX $FFFF
>STAA C7FC<CR>
B7 C7 FC
C005 STX $FFFF
>NOP<CR>
01
C006 STX $FFFF
>NOP<CR>
01
C007 STX $FFFF
>NOP<CR>
01
C008 STX $FFFF
>RTS<CR>
39
C009 STX $FFFF
>(CTRL)A
Summary of Contents for M68HC11EVB
Page 9: ...CONTENTS x M68HC11EVB D ...
Page 35: ...MONITOR PROGRAM 3 8 M68HC11EVB D ...
Page 81: ...OPERATING INSTRUCTIONS 4 46 M68HC11EVB D ...
Page 97: ...SUPPORT INFORMATION 6 12 M68HC11EVB D Figure 6 3 EVB Schematic Diagram Sheet 2 of 2 ...
Page 103: ...APPLICATIONS B 2 M68HC11EVB D Figure B 1 Single Chip Mode Configuration ...