Skip to navigation


Driving model: SetEngineTorque

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

Set the following: * engineTorque = A * soundRevTarget = revTarget + 25
.SetEngineTorque STA engineTorque \ Set engineTorque = A LDA revCount \ Set soundRevTarget = revCount + 25 CLC ADC #25 STA soundRevTarget RTS \ Return from the subroutine