lr_door

by smwagent09af

Game: SMW

Description: Hold L/R to enter door/pipe.

; 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		; |
	+		; /

LDA $17
AND #$30
BNE door
RTL

door:
LDA #$06
STA $71
RTL
back to listings