2024-01-24 09:18:02 +00:00
|
|
|
#pragma option -zCSHARED -k-
|
2020-11-15 20:13:45 +00:00
|
|
|
|
2024-05-20 18:02:24 +00:00
|
|
|
#include "libs/master.lib/master.hpp"
|
2020-11-15 20:13:45 +00:00
|
|
|
#include "th02/hardware/frmdelay.h"
|
|
|
|
|
2021-02-04 19:16:03 +00:00
|
|
|
void pascal frame_delay(int frames)
|
2020-11-15 20:13:45 +00:00
|
|
|
{
|
|
|
|
_BX = _SP;
|
2022-02-12 16:29:37 +00:00
|
|
|
asm { mov bx, ss:[bx+4]; } /* = */ (frames);
|
2023-01-30 03:57:33 +00:00
|
|
|
vsync_Count1 = 0;
|
2020-11-15 20:13:45 +00:00
|
|
|
while(vsync_Count1 < _BX) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma codestring "\x00"
|