that should be it for the delay timer

This commit is contained in:
Ghostie 2025-02-10 20:23:36 -05:00
parent 35fabacc98
commit 620490e654

View File

@ -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: