-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #582 from paulscottrobson/openbug
Fixed open.
- Loading branch information
Showing
2 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
sound 0,100,100,14 | ||
end | ||
if exists("test.txt") then mos "del test.txt" | ||
|
||
call snd(0,660,50,0,0,100) | ||
call snd(0,440,50,0,0,30) | ||
end | ||
|
||
proc snd(ch,fq,ms,sl,ty,v) | ||
while peek($FF00):wend | ||
poke $FF04,ch | ||
doke $FF05,fq | ||
doke $FF07,ms | ||
doke $FF09,sl | ||
poke $FF0B,ty | ||
poke $FF0C,v | ||
poke $FF01,7 | ||
poke $FF00,8 | ||
endproc | ||
open output 1,"test.txt" | ||
print #1,"Hello world" | ||
close 1 | ||
cat | ||
open output 1,"test.txt" | ||
close 1 | ||
cat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters