home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG013.ARC
/
GENSND.PRO
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
47 lines
procedure GENSND;
{ Procedure developed in Turbo Pascal
for sound routines to operate with
the MicroBee by Bob Burt }
{ Sound generator module to be
operated in conjunction with
procedure INITSND.PRO }
begin
inline(24/14/ { JUMP: JR START }
62/184/ { ONINT: LD A,0B8H }
211/2/ { LOOP0: OUT (2),A }
16/252/ { DJ NZ,LOOP0 }
201/ { RET }
62/248/ { OFFINT: LD A,0F8H }
211/2/ { LOOP1: OUT (2),A }
16/252/ { DJ NZ,LOOP1 }
201/ { RET }
245/ { START: PUSH AF }
197/ { PUSH BC }
229/ { PUSH HL }
6/80/ { LD B,SET_TONE }
33/4/0/ { LOOP3: LD HL,DURATION }
5/ { DEC B (UP_DOWN) }
72/ { LD C,B }
65/ { LOOP2: LD B,C }
205/*-26/ { CALL ONINT }
65/ { LD B,C (TIMBRE) }
205/*-23/ { CALL OFFINT }
43/ { DEC HL }
125/ { LD A,L }
180/ { OR H }
32/243/ { JR NZ,LOOP2 }
65/ { LD B,C }
120/ { LD A,B }
254/0/ { CP COMPARE }
32/232/ { ONE_MANY:JR NZ,LOOP3 }
225/ { POP HL }
193/ { POP BC }
241/ { POP AF }
201); { RET }
end; {procedure gensnd}