Alchemy
Loading...
Searching...
No Matches

iowrite.h File Reference

Io_Write16, a 16-bit write to a register or memory. More...

Go to the source code of this file.

Macros

#define Io_Write16(v, reg)
 Writes a value to a 16-bit register or memory location.

Detailed Description

Io_Write16, a 16-bit write to a register or memory.

Definition in file iowrite.h.

Macro Definition Documentation

◆ Io_Write16

#define Io_Write16 ( v,
reg )
Value:
do { \
u32 value_ = (v); \
*(reg) = value_; \
} while (0)
unsigned int u32
Definition types.h:15

Writes a value to a 16-bit register or memory location.

A statement macro (S2: a layer the whole game uses, 106 sites): the value is built in a word before the address and the store stays where it is written. An inline function with a u32 parameter builds the same value but lets the store move.

Definition at line 14 of file iowrite.h.

Referenced by AltmillerCave_ApplyFadeBlend(), AltmillerCave_RestoreBabiAndInviteParty(), BattleFx_InitializeStarField(), BattleFx_PlayUnitElementEffect(), BattleFx_StartFadeOverlay(), BattleFx_StartWindowHBlankDma(), BattlePres_SetActorModes(), BattlePres_UpdateHBlankScroll(), BattlePresentation_WaitForAdvance(), BattlePresentation_WaitForPromptAt(), CrossboneIslePlatformRooms_InitializeScene2(), DebugText_Clear(), DisplayScroll_RunSlideshow(), Event_HurryToThePlaza(), Event_RevealEnds(), Field_StartEncounterTransition(), FieldFx_StartGroundParticles(), FieldMotes_Start(), Input_HandleKeyInterrupt(), LeaveTheShip(), LemurianShip_SetupScene(), Map_InitializePerspectiveScene(), Map_LoadLayeredScene(), Map_ShowBg1FromBuffer(), Map_ShowWorldMap(), MapAnimation_PresentFrame(), MercuryLighthouse_Initialize(), MercuryLighthouseEntrance_Initialize(), RaiseTheShip(), Runtime_InstallIwramAndIrqs(), Scene_RunEntrySetup(), SerialRuntime_CollectReceivedPayloads(), SerialRuntime_PollAndTransfer(), SerialRuntime_PollStatus(), SetSail(), Ship_UpdateSwell(), SolSanctumLunaSolRooms_ShowFloatingEye(), System_Initialize(), System_SoftReset(), TolbiSpring_Initialize(), TolbiSpring_RiseAndFadeIn(), Ui_LoadWindowGraphics(), and WaitFrames().