Changes
From Final Fantasy Inside
no edit summary
* Opcode: '''0x37'''
* Short name: '''WNUMB'''
* Long name: Set Number
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x37
! width="50" | ''B1 / B2''
! width="40" | ''W''
! width="160" | ''N''
! width="40" | ''C''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Bank to retrieve lower two bytes of number, or zero if number is given as a literal value.
* '''const Bit[4]''' ''B2'': Bank to retrieve higher two bytes of number, or zero if number is given as a literal value.
* '''const UByte''' ''W'': Window ID whose numerical display will be set.
* '''const ULong''' ''N'': A four-byte number to set the numerical display.
* '''const UByte''' ''C'': The number of digits to display, from 1 to 8.
==== Description ====
Sets the numerical display, as found in the [[FF7/Field/Script/Opcodes/36 WSPCL|WSPCL]] opcode. The number may be set with a specified value or retrieved from two 16-bit values, and the number of digits to show is specified with ''C''. The [[FF7/Field/Script/Opcodes/50 WINDOW|WINDOW]] ID must also be given.
* Short name: '''WNUMB'''
* Long name: Set Number
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x37
! width="50" | ''B1 / B2''
! width="40" | ''W''
! width="160" | ''N''
! width="40" | ''C''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Bank to retrieve lower two bytes of number, or zero if number is given as a literal value.
* '''const Bit[4]''' ''B2'': Bank to retrieve higher two bytes of number, or zero if number is given as a literal value.
* '''const UByte''' ''W'': Window ID whose numerical display will be set.
* '''const ULong''' ''N'': A four-byte number to set the numerical display.
* '''const UByte''' ''C'': The number of digits to display, from 1 to 8.
==== Description ====
Sets the numerical display, as found in the [[FF7/Field/Script/Opcodes/36 WSPCL|WSPCL]] opcode. The number may be set with a specified value or retrieved from two 16-bit values, and the number of digits to show is specified with ''C''. The [[FF7/Field/Script/Opcodes/50 WINDOW|WINDOW]] ID must also be given.