Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0xDF'''
* Short name: '''MPPAL'''
* Long name: Multiply Palette
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xDF
! width="40" | ''B1/B2''
! width="40" | ''B3/B4''
! width="40" | ''0/B6''
! width="40" | ''Source palette array id''
! width="40" | ''Destination palette array id''
! width="40" | ''Start colour''
! width="40" | ''Multiply Blue''
! width="40" | ''Multiply Green''
! width="40" | ''Multiply Red''
! width="40" | ''Size''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Bank for start colour.
* '''const Bit[4]''' ''B2'': Bank for multiply blue colour.
* '''const Bit[4]''' ''B3'': Bank for multiply green colour.
* '''const Bit[4]''' ''B4'': Bank for multiply red colour.
* '''const Bit[4]''' ''B6'': Bank for size of palette data.
* '''const UByte''' ''Source palette array id'': Source palette array id. Take data from here and multiply it by BRG colour.
* '''const UByte''' ''Destination palette array id'': Destination palette array id. Here we store data after multiplication
* '''const UByte''' ''Start colour'': Start colour for multiplication.
* '''const UByte''' ''Multiply Blue'': Blue value for multiplying.
* '''const UByte''' ''Multiply Green'': green value for multiplying.
* '''const UByte''' ''Multiply Red'': Red value for multiplying.
* '''const UByte''' ''Size'': Size of palette data to multiply + 1.
==== Description ====
Multiply stored palette from start colour by some colour.
* Short name: '''MPPAL'''
* Long name: Multiply Palette
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xDF
! width="40" | ''B1/B2''
! width="40" | ''B3/B4''
! width="40" | ''0/B6''
! width="40" | ''Source palette array id''
! width="40" | ''Destination palette array id''
! width="40" | ''Start colour''
! width="40" | ''Multiply Blue''
! width="40" | ''Multiply Green''
! width="40" | ''Multiply Red''
! width="40" | ''Size''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Bank for start colour.
* '''const Bit[4]''' ''B2'': Bank for multiply blue colour.
* '''const Bit[4]''' ''B3'': Bank for multiply green colour.
* '''const Bit[4]''' ''B4'': Bank for multiply red colour.
* '''const Bit[4]''' ''B6'': Bank for size of palette data.
* '''const UByte''' ''Source palette array id'': Source palette array id. Take data from here and multiply it by BRG colour.
* '''const UByte''' ''Destination palette array id'': Destination palette array id. Here we store data after multiplication
* '''const UByte''' ''Start colour'': Start colour for multiplication.
* '''const UByte''' ''Multiply Blue'': Blue value for multiplying.
* '''const UByte''' ''Multiply Green'': green value for multiplying.
* '''const UByte''' ''Multiply Red'': Red value for multiplying.
* '''const UByte''' ''Size'': Size of palette data to multiply + 1.
==== Description ====
Multiply stored palette from start colour by some colour.