Skip to navigation

Revs on the BBC Micro

Driving model: ZeroEngineTorque

Name: ZeroEngineTorque [Show more] Type: Subroutine Category: Driving model Summary: Zero engineTorque Deep dive: Modelling the engine
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * ApplyEngine calls ZeroEngineTorque

Set the following: * engineTorque = 0 * soundRevTarget = revTarget + 25
.ZeroEngineTorque LDA #0 \ Set A = 0 to set as the value of engineTorque JMP SetEngineTorque \ Jump to SetEngineTorque to set the following: \ \ engineTorque = 0 \ \ soundRevTarget = revTarget + 25 \ \ and return from the subroutine using a tail call