home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
decus
/
RB128
/
atod.txt
< prev
next >
Wrap
Text File
|
1995-06-04
|
602b
|
34 lines
/ Acquire 24-decimal (30-octal)
/ samples from the a/d as fast
/ as possible.
/ Store them in memory.
*200
cla
tad lim
cia
dca cntr
tad addrb
dca ptr / initialize pointer
loop, adstrt / start a-d
l1, adsf / wait for value
jmp l1
/ value is ready
adcrb / read value, clear flag
dca i ptr
/ increment the pointer,
/ using the "isz" instruction
isz ptr
nop
/ now check for termination
/ of loop-
isz cntr
jmp loop
hlt
ptr, 0 / for pointer
cntr,0 / for count
lim, 0030 /limit
addrb,buf1
*400
buf1,0
$