Skip to Content
The Alchemy Project

src/system/system_io_write_queue.c

The register write queue that VBlank carries out after each finished tick. More…

Included by system.c.

Macros

NameDescription
#defineIO_QUEUE_DEFINE_WRITE (name, control)The queued register writers: each adds a write of value to addr that the VBlank handler carries out once the tick loop has finished the tick.

Typedefs

NameDescription
typedef void (*QUEUE_FLUSH_ROUTINE )(IO_WRITE_QUEUE *queue, Uint32 count);

Functions

NameDescription
voidsyIOWriteQueueFlushPending (void)Runs the queued register writes and empties the queue, with a copy of the executor function on the stack.

Description

The register write queue that VBlank carries out after each finished tick. Part of system.c.

Macros in detail

IO_QUEUE_DEFINE_WRITE

#define IO_QUEUE_DEFINE_WRITE(name, control)

The queued register writers: each adds a write of value to addr that the VBlank handler carries out once the tick loop has finished the tick.

Definition at line 8 of file system_io_write_queue.c.

Typedefs in detail

QUEUE_FLUSH_ROUTINE

typedef void (*QUEUE_FLUSH_ROUTINE)(IO_WRITE_QUEUE *queue, Uint32 count);

Referenced by syIOWriteQueueFlushPending().

Definition at line 4 of file system_io_write_queue.c.

Functions in detail

syIOWriteQueueFlushPending

void syIOWriteQueueFlushPending(void)

Runs the queued register writes and empties the queue, with a copy of the executor function on the stack.

References IoWriteQueueWork, syDMAXCopy(), syResourceExecuteTransfer and syResourceExecuteTransferCodeSize.

Referenced by syVBlankHandler().

Definition at line 36 of file system_io_write_queue.c.