Download Print this page

Intel EV80Cl96KB User Manual page 73

Microcontroller evaluation board

Advertisement

MCS-96
MACRO
ASSEMBLER
EV96
01/24/89
13:55:41
PAGE
14
ERR LOC
OBJECT
i,lNE
450
451
452
453
454
455
456
457
458
459
461
463
464
465
466
467
468
471
472
473
474
475
476
477
478
479
480
481
482
484
485
488
489
5OURCE
STATEMENT
Al78
A17E
C701041E38
Al83
65040018
Al87
C83A
Al89
C83C
A18D
A18D
CC3C
A18F
CC3A
A191
A191
C92221
Al94
C90000
A19A
C701041E38
, The
following
routines,
all
named
beginning
with
a 'd' for diagnostics,
; are special
cases
of RISM
commands
used
when
the board
is in diagnostics
;
mode.
;
dSTART_USER:
.---------_
,
; Flush
the pause
routine
off
the
stack
and set up user's
context.
SET-BIT
RISM-STAT,
RUN-FLAG
CLR-BIT
RISM-STAT,
TRAP-FLAG
stb
RISM-STAT,
modem-contr[Ol
; update
running
signal
to host
add
sp,#4
push
dUSER
PC
push
dUSER:PSW
EXIT
RISM
-
; reset
sp to overwrite
RISM
pc & psw,
;
with
user
pc &
;
user
psw values
&TOP-USER:
: ---------
i
stops
"user"
execution
by setting
up the
stack
to return
to pause
with
i all interrupts
but
serial
i/o locked
out.
POP
dUSER_PSW
; remove
users
psw
& pc from
stack
POP
dUSER_PC
i
and save
dset-rism-idle:
push
#(diaggause-offset)
;
the new program
counter
& psw
push
Irism-psw
CLR-BIT
RISM-STAT,
RUN-FLAG
stb
RISM-STAT,
modem-contr[O]
; update
running
signal
to host
EXIT
RISM
-
;
Seject

Advertisement

loading