Download Print this page

Intel EV80Cl96KB User Manual page 108

Microcontroller evaluation board

Advertisement

*; To change the Program Counter use "pc = 2080<cr>".
*;
*pause
;
Hit the space bar to continue...
*;
*go from 2080 forever ; This command clears all breakpoints and executes
code.
>;
>; The LED's for I/O Port 1 should be incrementing regularly.
>;
>pause
;
Hit the space bar to continue...
';
>dasm .past,8 ; The disassmbler and all other memory read commands can
be....
;
I PAST:
; 20A6: 8900801E
I
CMP
BX,#8000
; 20AA: D7E9
I
JNE
LOOP
; 20AC: AlBF201E
I
LD
BX,#20BF
; ZOBO: 0722
I
INC
DX
; 20B2: 170F
I
INCB
IOPORTl
; 20B4: BOOF17
I
LDB
17,IOPORTl
; 20B7: 27DC
I
SJMP
LOOP
;
I FAILED:
; 20B9: AlFFFF20
I
LD
CX,#OFFFF
>;
>:
used while code is running on the board.
>:
>pause
Hit the space bar to continue...
':
>asm
20b2 ; start assembling code at address ZObZH, see disassembly list-
1qg.
Single Line Assembler activated, exit with "end" directive
: 2OB2H: decb .ioportl
: 20B4H: end
'pause
;
Hit the space bar to continue...
':
>; The LED's for I/O Port 1
should now be decrementing.
';
>;
Note
that not only is there an assembler, it and all other memory modi-
fing
>; commands can be used while the board is executing user code.
However,
use
>; caution when modifing code while it is running, the resulting code may
>; cause errors due to variable length instructions.
>;
>pause

Advertisement

loading