home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
disasm
/
at86demo
/
demo.t86
< prev
next >
Wrap
Text File
|
1985-11-15
|
1KB
|
80 lines
pause 10
cls
f100 1000 ff
db400
This is a demo to show how various AT86 features work. Type left arrow to slow down, right to speed up, Ctrl-S to pauseTo quit the demo, press the <Esc> key twice.
new
a100
start: inc ax ;Type labels and comments
push ax
next: mov di,123s ; Oops! A mistake.
123
call alpha ;This is initially undefined
pop ax
loop start
nop
alpha: inc dx ;Now alpha is defined
ret
trace
u u u uuuuuuuuu ? @
delete next
list
insert 101
new: mov di,1234 ;This is inserted
push di
pop di
list
f100 1000 "abcdefg"
da100
? 2322222888899999
@@
?
cls
a??
b?
c?
d?
e?
f?
g?
h?
i?
k?
l?
m?
n?
o?
p?
q?
r?
s?
t?
u?
v?
w?
x?
y?
z?
cls
cpu
pause 20
dd;
2222 3
db40;0
cls
You have a built-in reverse Polish calculator!
123 456+
ds ax+ 2*
You also have a hex/decimal converter.
4000
256.
cls
Now let's start over
n<demo.t86