2021-03-21 18:35:04 +00:00
|
|
|
#pragma option -zCSHARED_ -k-
|
2020-11-15 20:13:45 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include "master.hpp"
|
|
|
|
#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"
|
|
|
|
|
|
|
|
}
|