some documentation fixes

This commit is contained in:
Christian Groessler
2023-01-18 11:55:52 +01:00
parent dbefd12571
commit 60f56c43c7
2 changed files with 11 additions and 6 deletions

View File

@@ -2,14 +2,16 @@
; Mariano Domínguez
; 2022-12-4
;
; atari lib
; this file provides an equivalent to the BASIC SOUND function
;
; void __fastcall__ _sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume);
;
.include "atari.inc"
.export __sound
.import popa
.importzp tmp1,tmp2
; play sound, arguments: voice, pitch, distortion, volume. same as BASIC
; play sound, arguments: voice, pitch, distortion, volume
.proc __sound
sta tmp2 ;save volume
jsr popa ;get distortion