Skip to navigation

Revs on the BBC Micro

Driving model: SquealTyres

Name: SquealTyres [Show more] Type: Subroutine Category: Driving model Summary: Make the tyres squeal
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * CheckForCrash calls SquealTyres

Arguments: A The new value for spinYawAngleTop
.SquealTyres STA spinYawAngleTop \ Set spinYawAngleTop = A LDA #%10000000 \ Set bit 7 in tyreSqueal for both tyres, so they squeal STA tyreSqueal STA tyreSqueal+1 LDA #4 \ Make sound #4 (crash/contact) at the current volume JSR MakeSound-3 \ level RTS \ Return from the subroutine