mirror of
https://github.com/irmen/prog8.git
synced 2024-12-23 09:32:43 +00:00
fix cx16/bdmusic and sincos examples
This commit is contained in:
parent
f9c4632b8d
commit
d4c750beb4
@ -59,7 +59,7 @@ main {
|
||||
psg.silent()
|
||||
psg.voice(0, psg.LEFT, 63, psg.TRIANGLE, 0)
|
||||
psg.voice(1, psg.RIGHT, 63, psg.TRIANGLE, 0)
|
||||
cx16.set_irq(&psg.envelopes_irq, false)
|
||||
cx16.set_irq(&psg.envelopes_irq, true)
|
||||
|
||||
repeat {
|
||||
uword note
|
||||
|
@ -82,7 +82,7 @@ main {
|
||||
|
||||
; circle with "degrees" from 0 to 255
|
||||
for r in 0 to 255 {
|
||||
pixelxw = (math.sin8(r)/2 as uword) + 80
|
||||
pixelxw = (math.sin8(r)/2 as word) + 80 as uword
|
||||
pixelyb = (math.cos8(r)/2 as uword + height/2) as ubyte
|
||||
graphics.plot(pixelxw, pixelyb)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user