pushing to dev
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
BIN
bootrom.gb
Normal file
Binary file not shown.
@@ -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
BIN
harvest_moon.gb
Normal file
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user