Add basic CRT interaction routine from frame sync.
This commit is contained in:
parent
828bb38a9a
commit
600b1d7ab3
10
src/crt.c
Normal file
10
src/crt.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include "crt.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void crt_waitNextFrame(void) {
|
||||
void (*frame_sync_detection_routine)(void) = (void *)0xc75b;
|
||||
__asm__("push af");
|
||||
frame_sync_detection_routine();
|
||||
__asm__("pop af");
|
||||
}
|
Loading…
Reference in New Issue
Block a user