Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagenone
titleSR_RND (A = $09), random number
IN:
     -
OutOUT:
     DEBC = random number

The return value (random number) only changes when certain operating system functions occur in between calls to OS_Sr. Repeated fetching a random number may well result in the same value being returned.

Fixed and improved since OZ 5.0 using an xor-shift algorithm. All returned values are different.

SR_WPD

Code Block
languagenone
titleSR_WPD ($03) Write parameter data (mailbox)
IN:
     DE = name of information type (null-terminated)
     DE = 0, clear mailbox
     BHL = extended pointer to information
     C = length of information

OUT:
     Fc = 0, successful

Registers changed after return:
     A.BCDEHL/IXIY same
     .F....../.... different

...