mirror of
https://github.com/safiire/n65.git
synced 2024-12-13 06:29:16 +00:00
Updating some of the demo asm files
This commit is contained in:
parent
8f01494fbb
commit
602ff6754d
2
beep.asm
2
beep.asm
@ -6,7 +6,7 @@
|
||||
start:
|
||||
LDA #$01 ; square 1
|
||||
STA $4015
|
||||
LDA #$08 ; period low
|
||||
LDA #$F8 ; period low
|
||||
STA $4002
|
||||
LDA #$02 ; period high
|
||||
STA $4003
|
||||
|
16
demo.asm
16
demo.asm
@ -31,7 +31,7 @@ sprite:
|
||||
main:
|
||||
; Disable interrupts and decimal flag
|
||||
sei
|
||||
cld
|
||||
cld
|
||||
|
||||
; Wait for 2 vblanks
|
||||
wait_vb1:
|
||||
@ -60,18 +60,18 @@ main:
|
||||
ldx #$FF
|
||||
txs
|
||||
|
||||
; Disable all graphics.
|
||||
; Disable all graphics.
|
||||
lda #$00
|
||||
sta $2000
|
||||
sta $2001
|
||||
|
||||
jsr init_graphics
|
||||
jsr init_input
|
||||
jsr init_sound
|
||||
jsr init_graphics
|
||||
jsr init_input
|
||||
jsr init_sound
|
||||
jsr init_ppu
|
||||
|
||||
; Resume interrupts and loop here forever
|
||||
cli
|
||||
cli
|
||||
forever:
|
||||
jmp forever
|
||||
|
||||
@ -112,8 +112,8 @@ init_sound:
|
||||
sta $4015
|
||||
lda #$00
|
||||
sta $4001
|
||||
lda #$40
|
||||
sta $4017
|
||||
lda #$40
|
||||
sta $4017
|
||||
rts
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user