Difference between revisions of "FF7/Field/Script/Opcodes/E5 STPAL"
Jump to navigation
Jump to search
my_wiki>Akari |
m (4 revisions imported) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
* '''const Bit[4]''' ''B2'': Bank for palette array id. | * '''const Bit[4]''' ''B2'': Bank for palette array id. | ||
* '''const UByte''' ''Vram palette id'': Id of palette. All palettes stored starting from vram_x = 0, vram_y = 0x1e0, so this index is starting from vram_y. | * '''const UByte''' ''Vram palette id'': Id of palette. All palettes stored starting from vram_x = 0, vram_y = 0x1e0, so this index is starting from vram_y. | ||
− | * '''const UByte''' ''Palette array id'': All palette stored in special array 0x20 size of each item. | + | * '''const UByte''' ''Palette array id'': All palette stored from in special array 0x20 size of each item. But it just index and can be used lo load full 256 colours (it just takes 0x10 slots of array). |
− | * '''const UByte''' ''Size'': | + | * '''const UByte''' ''Size'': Size of palette to copy + 1. |
==== Description ==== | ==== Description ==== | ||
Stores palette data to special array (0x80095de0 in english psx version). | Stores palette data to special array (0x80095de0 in english psx version). |
Latest revision as of 05:19, 23 May 2019
- Opcode: 0xE5
- Short name: STPAL
- Long name: Store Palette
Memory layout
0xE5 | B1/B2 | Vram palette id | Palette array id | Size |
---|
Arguments
- const Bit[4] B1: Bank for palette id.
- const Bit[4] B2: Bank for palette array id.
- const UByte Vram palette id: Id of palette. All palettes stored starting from vram_x = 0, vram_y = 0x1e0, so this index is starting from vram_y.
- const UByte Palette array id: All palette stored from in special array 0x20 size of each item. But it just index and can be used lo load full 256 colours (it just takes 0x10 slots of array).
- const UByte Size: Size of palette to copy + 1.
Description
Stores palette data to special array (0x80095de0 in english psx version).