pushing to dev

This commit is contained in:
2018-02-18 12:51:10 -08:00
parent d62a8d3f0e
commit 9b69088b35
6 changed files with 8 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ APP_DIR=$(SRC_DIR)apps
CC=gcc
SHELL=/bin/bash
CCFLAGS = -Wall -Werror
CCFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L
CCFLAGS += -I$(SRC_DIR)

BIN
bootrom.gb Normal file

Binary file not shown.

View File

@@ -147,7 +147,7 @@ step; step
assert $pc == 0x42
assert $a == 0x19
step;
step
assert $pc == 0x45
step
@@ -159,6 +159,8 @@ assert $pc == 0x4a
assert $c == 0x0c
echo Test passed!
step 10000000
regs
stat
# exit
exit

BIN
harvest_moon.gb Normal file

Binary file not shown.

View File

@@ -39,7 +39,9 @@ int main(int argc, char **argv)
close(out_fd);
}
out_fd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC);
out_fd = open(optarg,
O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR);
if (out_fd < 0) {
fprintf(stderr, "failed to open output file %s\n", optarg);
exit(1);

View File

@@ -19,7 +19,7 @@
#include "common/tri.h"
#define INPUT_MAX_LEN 512
#define MAX_BREAKPTS 256 /* Should be plenty for anyone */
#define MAX_BREAKPTS 4 /* Should be plenty for anyone */
#define MAX_RAM_LEN (1 << 20) /* Up to 8Mb Cartridge */
#define UNMAP_BOOTROM_ADDR 0xff50