mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-02 23:31:53 +00:00
one single #include file
This commit is contained in:
parent
33b42ecfc5
commit
545096f224
@ -193,7 +193,7 @@ while(1) {
|
|||||||
|
|
||||||
### Building the source code
|
### 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.
|
from the `lib/` directory in your C source files.
|
||||||
|
|
||||||
Compile your sources with the KickC compiler, the `tools/`
|
Compile your sources with the KickC compiler, the `tools/`
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
#include "../lib/utils.h"
|
|
||||||
#include "../lib/apple1.h"
|
|
||||||
#include "../lib/tms9918.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_screen1.h"
|
||||||
#include "demo_screen2.h"
|
#include "demo_screen2.h"
|
||||||
|
@ -5,11 +5,12 @@
|
|||||||
// TODO do fonts need to start from 32 or 0?
|
// TODO do fonts need to start from 32 or 0?
|
||||||
// TODO sprite routines
|
// TODO sprite routines
|
||||||
// TODO test the interrupt 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
|
// TODO finalize hexdump.js and update README.md
|
||||||
|
|
||||||
#pragma encoding(ascii) // encode strings in plain ascii
|
#pragma encoding(ascii) // encode strings in plain ascii
|
||||||
|
|
||||||
|
#include "utils.h"
|
||||||
|
|
||||||
#ifdef APPLE1
|
#ifdef APPLE1
|
||||||
const byte *VDP_DATA = 0xCC00; // TMS9918 data port (VRAM)
|
const byte *VDP_DATA = 0xCC00; // TMS9918 data port (VRAM)
|
||||||
const byte *VDP_REG = 0xCC01; // TMS9918 register port (write) or status (read)
|
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;
|
if(val) regvalue |= REG0_EXTVID_MASK;
|
||||||
tms_write_reg(0, regvalue);
|
tms_write_reg(0, regvalue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "apple1.h"
|
||||||
|
#include "font8x8.h"
|
||||||
|
#include "tms_screen1.h"
|
||||||
|
#include "tms_screen2.h"
|
||||||
|
#include "interrupt.h"
|
||||||
|
@ -25,13 +25,7 @@
|
|||||||
|
|
||||||
// TODO solve division by counter_factor
|
// TODO solve division by counter_factor
|
||||||
|
|
||||||
#include "../lib/utils.h"
|
|
||||||
#include "../lib/apple1.h"
|
|
||||||
#include "../lib/tms9918.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 "draw.h"
|
||||||
#include "pieces.h"
|
#include "pieces.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user