Download Print this page

Intel EV80Cl96KB User Manual page 70

Microcontroller evaluation board

Advertisement

MCS-96
MACRO
ASSEMBLER
EV96
01/24/89
13:55:41
PAGE
11
ERR LOC
OBJECT
i,l
NE
( '9
I 8 0
ia1
(82
i83
384
385
AlOD
386
387
All0
A1000118
389
A114
A1000036
390
Ail8
CO3C36
391
392
AllB
A1002236
393
AllF
C03A36
394
395
Al22
396
A122
B1550F
397
Al25
398
A125
3516FD
399
A128
3516FD
400
A12B
95FFOF
401
A12E
27F5
402
403
404
>OIIH('h ;TATEMENT
l'his code places
the board
in diagnostics
mode
until
the next
RESET
or
RISM
STAT
gets
altered
somehow.
The user's
PC is loaded
with
the
; address
of the memory
test
and a 55H/OAAH
pattern
flashes
on the
; ioportl
LEDs
while
the monitor
is waiting
for a command.
; ----------------------------------------------------------------------
set diag:
-
SET BIT RISM
STAT,
DIAGNOSTIC
FLAG
Id -
sp, ltlOOH
-
; clear
stack
Id
tempw,
trism-psw
; value
for rism
and
initial
user
value
st
tempw,
dUSER
PSW
;
-
store
rism psw
as initial
user
psw
Id
tempw,
#(mem-tst-offset)
; Set up user
pc
st
tempw,
dUSER_PC
diag-pause:
ldb
ioportl,
#55h
diag-pause-loop:
bbc
iosl,S,
$
bbc
iosl,5,
$
xorb
ioportl,
#Offh
br
diag-pause-loop
Seject
; wait
for a timer1
overflow
; . . . twice
; invert
ioportl

Advertisement

loading