;Determine which side of the block mario is touching 2, by GreenHammerBro. ;Unlike the previous version, this one uses $7E:009A (player X position touching ;the block), rather than using $7E:0077 (player blocked status, when touching ;solid objects). Making it compatable with horizontally moving layer 2 blocks ;or making it behave $25. marioSide: REP #$20 ;>begin 16-bit mode LDA $9A ;\the block position AND #$FFF0 ;/ CMP $94 ;\if block is right of mairo (if mario is hitting the SEP #$20 ;|left side), then branch to left side. BCS left_side ;/(end 16-bit mode) ;right_side: ;[right side code here] RTL left_side: ;[left side code here] RTL