Skip to navigation

Elite on the BBC Micro

Utility routines: DORND2 [Elite-A, Parasite]

Name: DORND2 [Show more] Type: Subroutine Category: Utility routines Summary: Generate random numbers, making sure the C flag doesn't affect the outcome Deep dive: Generating random numbers
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DOEXP calls DORND2
.DORND2 CLC \ Clear the C flag so the value of the C flag on entry \ doesn't affect the outcome JMP DORND \ Jump to DORND to generate random numbers in A and X, \ returning from the subroutine using a tail call