Skip to navigation

Revs on the BBC Micro

3D objects: HideObject

Name: HideObject [Show more] Type: Subroutine Category: 3D objects Summary: Set an object to be hidden
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * BuildVisibleCar calls HideObject * SetObjectDetails calls HideObject

Arguments: objectNumber The number of the object to hide
.HideObject LDY objectNumber \ Set Y to the number of the object to hide LDA objectStatus,Y \ Set A to the object's status byte ORA #%10000000 \ Set bit 7 in the object's status byte in A, which \ marks the object as hidden \ Fall through into SetObjectStatus to store the updated \ object status byte