Bug fixes

Added stack collision detection.
Added SETD instruction.
This commit is contained in:
Anachronaut
2024-10-17 18:40:54 -04:00
committed by GitHub
parent d84e0397f7
commit 158cbf443d
3 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ uint32_t readLength(FILE *file) {
}
uint32_t readHeader(FILE *file, const char *expectedHeader) {
uint8_t header[HEADER_LENGTH];
char header[HEADER_LENGTH];
for (int i = 0; i < HEADER_LENGTH; i++) {
int byte = fgetc(file);
if (byte == EOF) {