Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/E6 LDPAL

962 bytes added, 21:51, 13 June 2011
no edit summary
* Opcode: '''0xE6'''
* Short name: '''LDPAL'''
* Long name: Load Palette

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xE6
! width="40" | ''B1/B2''
! width="40" | ''Palette array id''
! width="40" | ''Vram palette id''
! width="40" | ''Size''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Bank for palette array id.
* '''const Bit[4]''' ''B2'': Bank for palette id.
* '''const UByte''' ''Vram palette id'': Id of palette. All palettes loaded starting from vram_x = 0, vram_y = 0x1e0, so this index is starting from vram_y.
* '''const UByte''' ''Palette array id'': All palette loaded 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 ====

Load palette from stored array back to vram.
Anonymous user

Navigation menu