mirror of https://github.com/nmlgc/ReC98.git
19 lines
297 B
C++
19 lines
297 B
C++
|
#pragma codeseg SHARED_
|
||
|
#pragma option -k-
|
||
|
|
||
|
extern "C" {
|
||
|
#include "master.hpp"
|
||
|
#include "th02/hardware/frmdelay.h"
|
||
|
|
||
|
void pascal far frame_delay(int frames)
|
||
|
{
|
||
|
_BX = _SP;
|
||
|
__asm { mov bx, ss:[bx+4]; } /* = */ (frames);
|
||
|
vsync_reset1();
|
||
|
while(vsync_Count1 < _BX) {}
|
||
|
}
|
||
|
|
||
|
#pragma codestring "\x00"
|
||
|
|
||
|
}
|