Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0xE5'''
* Short name: '''STPAL'''
* Long name: Store Palette
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xE5
! width="40" | ''B1/B2''
! width="40" | ''Vram palette id''
! width="40" | ''Palette array id''
! width="40" | ''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 in special array 0x20 size of each item. So this is only works with 4bit per pixel images.
* '''const UByte''' ''Size'': Looks like size of palette to copy (not sure yet).
==== Description ====
Stores palette data to special array (0x80095de0 in english psx version).
* Short name: '''STPAL'''
* Long name: Store Palette
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xE5
! width="40" | ''B1/B2''
! width="40" | ''Vram palette id''
! width="40" | ''Palette array id''
! width="40" | ''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 in special array 0x20 size of each item. So this is only works with 4bit per pixel images.
* '''const UByte''' ''Size'': Looks like size of palette to copy (not sure yet).
==== Description ====
Stores palette data to special array (0x80095de0 in english psx version).