psx
by perryman1138
Game: SMW
Description:
;psr - makes sprites rotate !amount = #02 !yamount = #03 main: ;get second hand timer ; LDA $0F33 ;second hand ; AND #04 ; BEQ .zero ;get button press LDA $15 ;pressed a BIT #$80 BEQ .end LDA #2 STA $19 JMP .routine .end RTL ;$7E00D8 12 bytes Sprites Sprite Y position, low byte. ;$7E00E4 12 bytes Sprites Sprite X position, low byte. ;$7E14D4 12 bytes Sprites Sprite Y position, high byte. ;$7E14E0 12 bytes Sprites Sprite X position, high byte. .routine ; LDX $D8 ; LDA $D9 ; STA $D8 ; LDA $DA ; STA $D9 ; LDA $DB ; STA $DA ; LDA $DC ; STA $DB ; LDA $DD ; STA $DC ; LDA $DE ; STA $DD ; LDA $DF ; STA $DE ; LDA $E0 ; STA $DF LDX $E0 LDA $E1 STA $E0 LDA $E2 STA $E1 LDA $E3 STA $E2 STX $E3 ; LDX $E4 ; LDA $E5 ; STA $E4 ; LDA $E6 ; STA $E5 ; LDA $E7 ; STA $E6 ; LDA $E8 ; STA $E7 ; LDA $E9 ; STA $E8 ; LDA $EA ; STA $E9 ; LDA $EB ; STA $EA ; LDA $EC ; STA $EB LDX $ED LDA $ED STA $EC LDA $EE STA $ED LDA $EF STA $EE STX $EF RTLback to listings