From 97d7141fa038fd137b3a36fdb973415aed8e5e37 Mon Sep 17 00:00:00 2001 From: FlightControl Date: Tue, 26 Jan 2021 22:09:47 +0100 Subject: [PATCH] Created new functions to: - generate bitmap load files. - load bitmap files into banked memory on the cx16, cross banks between address space A000 and BFFF. - added cx16-kernal.c and cx16-kernal.h to load files. - created arithmetic to determine bank addressing using dwords over the 512K of memory (used in bnkcpy_vram_address() and LoadFileBanked()). - optimized functions for vera and conio. --- .../java/dk/camelot64/kickc/test/TestPrograms.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java index cc54987f7..f88d83526 100644 --- a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java +++ b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java @@ -472,6 +472,16 @@ public class TestPrograms { // compileAndCompare("examples/cx16/cx16-vera.c"); //} + @Test + public void testBankAddressing() throws IOException, URISyntaxException { + compileAndCompare("examples/cx16/bankaddressing.c"); + } + + @Test + public void testLoadFileInBank() throws IOException, URISyntaxException { + compileAndCompare("examples/cx16/load_file_in_bank.c"); + } + @Test public void testCx16VeraLayers() throws IOException, URISyntaxException { compileAndCompare("examples/cx16/cx16-veralayers.c");