Преглед на файлове

Copyright year bumps; minor tweaks.

master
Ben Kurtovic преди 8 години
родител
ревизия
e66b158aa9
променени са 7 файла, в които са добавени 18 реда и са изтрити 16 реда
  1. +1
    -1
      LICENSE
  2. +11
    -8
      makefile
  3. +0
    -2
      src/assembler/instructions.c
  4. +1
    -1
      src/config.c
  5. +3
    -2
      src/logging.h
  6. +1
    -1
      src/rom.c
  7. +1
    -1
      src/z80_ops.inc.c

+ 1
- 1
LICENSE Целия файл

@@ -1,4 +1,4 @@
Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal


+ 11
- 8
makefile Целия файл

@@ -1,4 +1,4 @@
# Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
# Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
# Released under the terms of the MIT License. See LICENSE for details.

PROGRAM = crater
@@ -36,7 +36,7 @@ export CC
export FLAGS
export RM

.PHONY: all clean test-prereqs test tests $(TCPS)
.PHONY: all clean test tests test-prereqs test-make-prereqs $(TCPS)

all: $(BNRY)

@@ -61,13 +61,16 @@ ASM_INST = $(SOURCES)/assembler/instructions
$(ASM_INST).inc.c: $(ASM_INST).yml $(ASM_UP)
python $(ASM_UP)

test-prereqs:
$(MAKE) $(PROGRAM) DEBUG=
test-prereqs: $(PROGRAM)
@: # No-op; prevents make from cluttering output with "X is up to date"

test: test-prereqs
$(MAKE) -C tests all
test-make-prereqs:
@$(MAKE) test-prereqs DEBUG=

test: test-make-prereqs
@$(MAKE) -C tests -s all

tests: test

$(TCPS): test-prereqs
$(MAKE) -C tests $(subst test-,,$@)
$(TCPS): test-make-prereqs
@$(MAKE) -C tests -s $(subst test-,,$@)

+ 0
- 2
src/assembler/instructions.c Целия файл

@@ -98,8 +98,6 @@ static ASMErrorDesc parse_inst_##mnemonic( \

#define INST_INDEX_PREFIX(n) INST_PREFIX_(INST_INDEX(n).reg)

/* ----------------------------- END WORK BLOCK ---------------------------- */

/*
Fill an instruction's byte array with the given data.



+ 1
- 1
src/config.c Целия файл

@@ -90,7 +90,7 @@ static int get_rom_paths(char ***path_ptr)
}
closedir(dirp);
} else {
WARN_ERRNO("couldn't open 'roms/'")
WARN_ERRNO("couldn't open '" ROMS_DIR "/'")
}
*path_ptr = paths;
return npaths;


+ 3
- 2
src/logging.h Целия файл

@@ -10,12 +10,13 @@

/* Internal usage only */

#define LOG_MSG_(dest, level, extra, after, ...) { \
#define LOG_MSG_(dest, level, extra, after, ...) \
do { \
fprintf(dest, level ": " __VA_ARGS__); \
extra; \
fprintf(dest, "\n"); \
after; \
}
} while (0);

#define LOG_ERR_(...) LOG_MSG_(stderr, __VA_ARGS__)
#define LOG_OUT_(...) LOG_MSG_(stdout, __VA_ARGS__)


+ 1
- 1
src/rom.c Целия файл

@@ -32,7 +32,7 @@ static void print_header(const uint8_t *header)
snprintf(&header_chr[3 * i], 3, "%2c", header[i]);
else {
header_chr[3 * i] = ' ';
header_chr[3 * i + 1] = '?';
header_chr[3 * i + 1] = '.';
}
header_hex[3 * i + 2] = header_chr[3 * i + 2] = ' ';
}


+ 1
- 1
src/z80_ops.inc.c Целия файл

@@ -1,4 +1,4 @@
/* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
/* Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
Released under the terms of the MIT License. See LICENSE for details. */

/*


Зареждане…
Отказ
Запис