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);Runs the queued register writes and empties the queue, with a copy of the executor function on the stack.

Functions

NameDescription
voidsyIOWriteQueueFlushPending (void)The io_write_queue group.

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 6 of file system_io_write_queue.c.

Typedefs in detail

QUEUE_FLUSH_ROUTINE

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

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

Referenced by syIOWriteQueueFlushPending().

Definition at line 34 of file system_io_write_queue.c.

Functions in detail

syIOWriteQueueFlushPending

void syIOWriteQueueFlushPending(void)

The io_write_queue group. The I/O write queue: register writes held until VBlank.

References IoWriteQueueWork, ResourceExecuteTransferCode, ResourceExecuteTransferSize and syDMAXCopy().

Referenced by syVBlankHandler().

Definition at line 36 of file system_io_write_queue.c.