mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +00:00
direct memory access and sprite fixes
This commit is contained in:
parent
a319e6f9ec
commit
7b41a4b5fa
@ -64,20 +64,20 @@
|
|||||||
~ irq {
|
~ irq {
|
||||||
; @todo no longer auto-set this as irq handler. instead, add builtins functions activate_irqvec() / restore_irqvec()
|
; @todo no longer auto-set this as irq handler. instead, add builtins functions activate_irqvec() / restore_irqvec()
|
||||||
sub irq() {
|
sub irq() {
|
||||||
;return ; @todo return statements in the irqhandler should not do rts, but instead jmp c64.IRQDFRT
|
;return ; @todo return statements in the irqhandler should not do rts, but instead jmp c64.IRQDFRT (RETURNFROMIRQ)
|
||||||
; @todo also when including this return, the jmp c64.IRQDFRT at the end gets omitted.....:(
|
; @todo also when including this return, the jmp c64.IRQDFRT at the end gets omitted.....:(
|
||||||
c64.EXTCOL++
|
c64.EXTCOL++
|
||||||
for ubyte i in 0 to 7 {
|
for ubyte i in 0 to 7 {
|
||||||
@(main.SP0Y+i+i)-- ; float up
|
@(main.SP0Y+i*2)-- ; float up
|
||||||
|
|
||||||
; horizontal wobble effect
|
; horizontal wobble effect
|
||||||
ubyte r = rnd()
|
ubyte r = rnd()
|
||||||
if r>208
|
if r>208
|
||||||
@(main.SP0X+i+i)++
|
@(main.SP0X+i*2)++
|
||||||
else {
|
else {
|
||||||
; @todo if-else if -else syntax without curly braces
|
; @todo if-else if -else syntax without curly braces
|
||||||
if r<48
|
if r<48
|
||||||
@(main.SP0X+i+i)--
|
@(main.SP0X+i*2)--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c64.EXTCOL--
|
c64.EXTCOL--
|
||||||
|
Loading…
Reference in New Issue
Block a user