ZX81 – Sound Analysis

See all articles from Sinc-Link v10 n4
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v10 n4 (Volume 10, Issue 4)
Date: July/August 1992
Pages: 15

This machine code program for the ZX81 draws graphics illustrating sound. Sound is fed in on the Ear socket. To load the program, create a REM line 45 characters long. Use any Hex loader to enter the code. The program is executed by RAND USR 16526.

If you want the computer to draw one graphic and then return to Basic type:

POKE 16551,192 (Enter)
POKE 16552,0 "
POKE 16553,0 "

Otherwise the computer will clear the display and draw again. The program returns to Basic when any key is pressed. The sub-routine at 4082h (16514) gives, in C register, the frequency of the tone on the Ear socket.

Address   Value to be entered
(All values in HEX)

4082 01 00 FF DB FE 3C 20 01
408A 0C 10 F8 C9 16 00 CD 82
4092 40 2A 25 40 2C C0 41 4A
409A CB 38 CB 38 D5 CD B2 0B
4102 D1 14 D5 CB 72 C4 2A 0A
410A D1 CB B2 18 E1

from Your Computer magazine May 1983

GFC

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.