one single #include file

This commit is contained in:
nino-porcino 2021-12-17 09:04:18 +01:00
parent 33b42ecfc5
commit 545096f224
4 changed files with 9 additions and 14 deletions

View File

@ -193,7 +193,7 @@ while(1) {
### Building the source code
To link the library, simply `#include` the `.h` files
To link the library, simply `#include` the `tms9918.h` file
from the `lib/` directory in your C source files.
Compile your sources with the KickC compiler, the `tools/`

View File

@ -1,10 +1,4 @@
#include "../lib/utils.h"
#include "../lib/apple1.h"
#include "../lib/tms9918.h"
#include "../lib/font8x8.h"
#include "../lib/tms_screen1.h"
#include "../lib/tms_screen2.h"
#include "../lib/interrupt.h"
#include "demo_screen1.h"
#include "demo_screen2.h"

View File

@ -5,11 +5,12 @@
// TODO do fonts need to start from 32 or 0?
// TODO sprite routines
// TODO test the interrupt routines
// TODO provide a single .h file (tms_lib.h or tms9918.h?)
// TODO finalize hexdump.js and update README.md
#pragma encoding(ascii) // encode strings in plain ascii
#include "utils.h"
#ifdef APPLE1
const byte *VDP_DATA = 0xCC00; // TMS9918 data port (VRAM)
const byte *VDP_REG = 0xCC01; // TMS9918 register port (write) or status (read)
@ -153,3 +154,9 @@ void tms_set_external_video(byte val) {
if(val) regvalue |= REG0_EXTVID_MASK;
tms_write_reg(0, regvalue);
}
#include "apple1.h"
#include "font8x8.h"
#include "tms_screen1.h"
#include "tms_screen2.h"
#include "interrupt.h"

View File

@ -25,13 +25,7 @@
// TODO solve division by counter_factor
#include "../lib/utils.h"
#include "../lib/apple1.h"
#include "../lib/tms9918.h"
#include "../lib/font8x8.h"
#include "../lib/tms_screen1.h"
#include "../lib/tms_screen2.h"
#include "../lib/interrupt.h"
#include "draw.h"
#include "pieces.h"