The Ctrl + V Game

  • Thread starter Thread starter smileyhead
  • Start date Start date
  • Views Views 573,950
  • Replies Replies 9,272
  • Likes Likes 15
One, two
One, two, three, uh!
I was working part time in a five-and-dime
My boss was Mr. McGee
He told me several times that he didn't like my kind
'Cause I was a bit too leisurely
 
1658857681293.png
 
Code:
;* Play the SFX currently set in memory, one frame every VBI

play_sfx
    lda #$FF             ; #$00 -> Play SFX until it's ended, #$FF -> SFX has finished playing and is stopped
is_playing_sfx equ *-1
    bmi play_sfx_done
    lda #2               ; 2 frames
    sta is_playing_sfx
    lda #0
sfx_offset equ *-1
    asl @
    tax
    inc sfx_offset
    lda #0
sfx_channel equ *-1
    asl @
    tay
    bpl begin_play_sfx
play_sfx_loop
    inx
    iny
begin_play_sfx
    lda $ffff,x
sfx_src equ *-2
    sta SDWPOK0,y
    dec is_playing_sfx
    bne play_sfx_loop
    lda SDWPOK0,y
    bne play_sfx_done
    dec is_playing_sfx
play_sfx_done
    rts

;-----------------
 
  • Love
Reactions: Shape
Iused to be a democrat. The speedrun community single-handedly transformed me into a republican over the course of the last 5 years. This is no exaggeration. They are so far to the left it's off the chart. You will get attacked and labeled a bigot for saying things that are scientifically true. They have no tolerance for difference of opinion, and many of these spoiled children are the same maniacs in antifa burning cities and trying to start civil war 2.0.
 
  • Haha
Reactions: jeffyTheHomebrewer

Site & Scene News

Popular threads in this forum