1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 03:34:05 +00:00
8bitworkshop/presets/c64/rasterirq.h
2022-08-20 18:03:54 -05:00

24 lines
458 B
C

#ifndef _RASTERIRQ_H
#define _RASTERIRQ_H
// internal function, use macro instead
void __dlist_setup(void* ptr);
// initialize display list with function 'func'
#define DLIST_SETUP(func) \
__dlist_setup(((char*)func)-1)
// continue on line 'line'
#define DLIST_NEXT(line) \
__A__ = line; \
asm ("jsr DLIST_IRQ_NEXT");
// restart display list on line 'line'
#define DLIST_RESTART(line) \
__A__ = line; \
asm ("jmp DLIST_IRQ_RESTART");
#endif