Browse Source

Menu/bootmessage: clear text buffer on boot

Maximilian Rehkopf 12 years ago
parent
commit
9d1907e56d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      snes/boot/main.a65

+ 8 - 0
snes/boot/main.a65

@@ -3,6 +3,7 @@
 
 GAME_MAIN:
 	sep #$20 : .as
+	rep #$10 : .xl
 	sei
 	stz $4200 ; inhibit VBlank NMI
 	jsr killdma
@@ -14,6 +15,13 @@ GAME_MAIN:
 	jsr setup_hdma
 	jsr tests
 
+	; clear text buffer
+	ldx #$0041
+	lda #$00
+-	dex
+	sta @MCU_TXT, x
+	bne -
+
 	; copy routines to WRAM
 	lda #^printloop_wram
 	ldx #!printloop_wram