Download Print this page

Intel EV80Cl96KB User Manual page 69

Microcontroller evaluation board

Advertisement

MCS-96
MACRO
ASSEMBLER
EV96
01/24/89
13:55:41
PAGE
10
ERR LOC
OBJECT
LINE
144
(45
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
374
375
376
377
;OIJRCE STATEMENT
AOE4
AOE4
3F3849
AOE7
C40F36
AOEA
1736
AOEC
C701001E36
AOFl
1536
AOF
992F36
AOF
DF15
AOF
995C36
AOFB
DFO3E713DF
A103
BlFFOF
A106
A1000118
AlOA
E7F3FB
This
code
is entered
from the nmi isr if the user
memory
map
is not turned
I on.
This
is the echo mode
and diagnostic
mode
of the board.
;
If the diagnostic
flag
is clear,
the board
is in echo mode.
Any
characters
; received
from the host
are
incremented
and sent
back
to the host.
They
; are also
tested
for the
set user
command
(I\') or the set diagnostics
; command
('/').
If either
command
was sent
it is carried
out.
:
; If the diagnostic
flag
is set,
the program
branches
to the diag.
mode
code.
; ___----------___-___-----------------~~--~-----------------------~--~~~~~~~
not user:
-
bbs
stb
inch
stb
decb
cmpb
be
cmpb
I
bne
RISM-STAT,
DIAGNOSTIC-FLAG,
diag-mode
char,
ioportl
; splash
received
char
on leds
char
; send back
incremented
char
char,
txd-rxd[Ol
char
char,
#('/'J
: '/' marks
end of serial
test...
set-diag
; and beginning
of diagnostic
mode
char,
#('\'I
; '\I marks
end of serial
test...
exit
; and beginning
of user
mode
;
: This
code
places
the board
in user
mode
until
the next
RESET
occurs,
or
;
until
RISM-STAT
gets
altered
somehow.
It branches
to a location
which
; does
not get
remaped,
and there,
a remap
will
be performed.
; _-__-------_____________________________--~~~~~~~----------~~~~~-~~~~~~~~
SET-BIT
RISM-STAT,
USER-MAP
ldb
ioportl,
#Offh
: reintialize
ioportl
Id
sp, #lOOH
; clear
stack
br
user-setup
378
Seject

Advertisement

loading