src/battle_effect/blitter_operands.c
The ARM immediate operands for powers of two, which the blitter builder (battle_effect_blitter.c) adds to its clip words to fit the canvas width.
Macros
| Name | Description | |
|---|---|---|
#define | ARM_IMMEDIATE_BIT (n) | The 12-bit operand field that makes an ARM data-processing immediate equal to 1 << n: below 8 the value itself; from 8 the value 1 or 2 with the rotation in bits 8 to 11, rotated right by twice that (n 8 is 0xc01, 1 rotated right by 24). |
#define | ARM_IMMEDIATE_POWERS | ARM_IMMEDIATE_BIT of each bit number in turn. |
Variables
| Name | Description | |
|---|---|---|
Uint16 | BlitterUnusedImmediatePowers [] | Unused: a copy of BlitterImmediatePowers that nothing reads. |
Uint16 | BlitterImmediatePowers [] | The operand for 1 << n, by n from 0 to 15. |
Description
The ARM immediate operands for powers of two, which the blitter builder
(battle_effect_blitter.c) adds to its clip words to fit the canvas width.
Macros in detail
ARM_IMMEDIATE_BIT
#define ARM_IMMEDIATE_BIT(n)
The 12-bit operand field that makes an ARM data-processing immediate equal to 1 << n: below 8 the value itself; from 8 the value 1 or 2 with the rotation in bits 8 to 11, rotated right by twice that (n 8 is 0xc01, 1 rotated right by 24).
Definition at line 11 of file blitter_operands.c.
ARM_IMMEDIATE_POWERS
#define ARM_IMMEDIATE_POWERS
ARM_IMMEDIATE_BIT of each bit number in turn.
Referenced by BlitterImmediatePowers and BlitterUnusedImmediatePowers.
Definition at line 15 of file blitter_operands.c.
Variables in detail
BlitterUnusedImmediatePowers
Uint16 BlitterUnusedImmediatePowers[]
Unused: a copy of BlitterImmediatePowers that nothing reads.
Definition at line 24 of file blitter_operands.c.
BlitterImmediatePowers
Uint16 BlitterImmediatePowers[]
The operand for 1 << n, by n from 0 to 15. btEffectBuildBlitter
(battle_effect_blitter.c) adds the entry for the canvas width's power of two
(7 for the 128-pixel canvas) to two of the instructions that clip a picture
at the canvas's left and right edges, so that they hold the width.
Definition at line 29 of file blitter_operands.c.