that should be it for the delay timer
This commit is contained in:
parent
35fabacc98
commit
620490e654
@ -1,4 +1,5 @@
|
|||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "chip8.h"
|
#include "chip8.h"
|
||||||
|
|
||||||
@ -78,6 +79,12 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_RenderPresent (renderer);
|
SDL_RenderPresent (renderer);
|
||||||
|
|
||||||
|
if (chip8.registers.DT > 0)
|
||||||
|
{
|
||||||
|
sleep (100);
|
||||||
|
chip8.registers.DT -= 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user