mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 03:34:05 +00:00
27 lines
537 B
C
27 lines
537 B
C
#ifndef _RASTERIRQ_H
|
|
#define _RASTERIRQ_H
|
|
|
|
|
|
// internal function, use macro instead
|
|
void __dlist_setup(void* ptr);
|
|
void __dlist_done();
|
|
|
|
// 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");
|
|
|
|
// stop display list
|
|
#define DLIST_DONE() __dlist_done();
|
|
|
|
#endif
|