Difference between revisions of "FF7/Field/Script/Opcodes/99 RANDOM"

From QhimmWiki
Jump to navigation Jump to search
Qhimm>Synergy Blades
m (8/16-bit clarification)
Qhimm>Synergy Blades
m
Line 12: Line 12:
==== Arguments ====
==== Arguments ====


* '''const UByte''' ''B'': Destination bank
* '''const UByte''' ''B'': Destination bank.
* '''const UByte''' ''A'': Destination address
* '''const UByte''' ''A'': Destination address.


==== Description ====
==== Description ====


Places a random 8-bit value into the destination bank and address specified. If you specify a 16-bit bank, only the lower byte is randomised.
Places a random 8-bit value into the destination bank and address specified. If you specify a 16-bit bank, only the lower byte is randomised.

Revision as of 01:09, 15 September 2006

  • Opcode: 0x99
  • Short name: RANDOM
  • Long name: Random

Memory layout

0x99 B A

Arguments

  • const UByte B: Destination bank.
  • const UByte A: Destination address.

Description

Places a random 8-bit value into the destination bank and address specified. If you specify a 16-bit bank, only the lower byte is randomised.