.SetEngineTorque STA engineTorque \ Set engineTorque = A LDA revCount \ Set soundRevTarget = revCount + 25 CLC ADC #25 STA soundRevTarget RTS \ Return from the subroutineName: SetEngineTorque [Show more] Type: Subroutine Category: Driving model Summary: Set engineTorque and soundRevTarget Deep dive: Modelling the engineContext: 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
[X]
Variable engineTorque in workspace Zero page
The power being generated by the engine
[X]
Variable soundRevTarget in workspace Zero page
The target pitch for the revs sound