Untitled
public text v1 · immutableBoundary_Bottom:
move.w ($fffff726).w,d0 ; The boundaries thing... Thanks bobxp.
move.w ($fffff72e).w,d1
cmp.w d1,d0
bgt Still_Scrolling
cmpi.w #$501,($FFFFFE10).w ; is level SBZ2 ?
bne.w KillSonic_tmp ; if not,kill Sonic
cmpi.w #$2000,($FFFFd008).w
bcs.w KillSonic_tmp
clr.b ($FFFFFE30).w ; clear lamppost counter
move.w #1,($FFFFFE02).w ; restart the level
move.w #$103,($FFFFFE10).w ; set level to SBZ3 (LZ4)
Still_Scrolling: rts