initial checkin
This commit is contained in:
16
ganonfixes.asm
Normal file
16
ganonfixes.asm
Normal file
@@ -0,0 +1,16 @@
|
||||
;================================================================================
|
||||
; Ganon Fixes
|
||||
;================================================================================
|
||||
|
||||
;--------------------------------------------------------------------------------
|
||||
; GanonWarpRNG
|
||||
; out: Accumulator - #$00 or #01 randomly, with no repeated #$01s
|
||||
;--------------------------------------------------------------------------------
|
||||
GanonWarpRNG:
|
||||
JSL GetRandomInt : AND.b #$01 : BEQ .zero
|
||||
LDA !GANON_WARP_CHAIN : EOR #$01 : STA !GANON_WARP_CHAIN
|
||||
RTL
|
||||
.zero
|
||||
STA !GANON_WARP_CHAIN
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user