ducklight

by soapagent

Game: SMW

Description: Down = not dark

; Base ASM file - feel free to copy/paste this and use this for your own code.

	LDA $100	; \ only run in gamemode 14
	EOR #$14	; |
	ORA $9D		; | and when the game isn't paused
	BEQ +		; |
	RTL		; |
	+		; /
	
; YOUR CODE HERE
lda #$0f
sta !screen_display_value
lda $15
and #$04
bne notdark
lda #$05
sta !screen_display_value
notdark:
RTL
back to listings