llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
266 stars 53 forks source link

Allow for more kinds of VRAM_BUF operations #206

Closed cogwheel closed 11 months ago

cogwheel commented 11 months ago

This restructures the multivram* headers to use a byte for the opcode rather than overloading with the upper byte of the VRAM address. This makes it possible to add many more types of operations to the VRAM buffer in the future (some suggestions are shown in the comments).

For a 3-byte multi_vram_buffer call, this shaved 1 cycle of the initial call, and 14 cycles off the call to flush_vram_update2 during NMI.

cogwheel commented 11 months ago

Superseded by #208