diff --git a/src/main/doc/KickC Reference Manual.pdf b/src/main/doc/KickC Reference Manual.pdf index 28906a542..2de5b3063 100644 Binary files a/src/main/doc/KickC Reference Manual.pdf and b/src/main/doc/KickC Reference Manual.pdf differ diff --git a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java index 7c08f1848..8d784d48a 100644 --- a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java +++ b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java @@ -236,6 +236,12 @@ public class TestPrograms { compileAndCompare("register-0.c"); } + // TODO: Fix this. Currently a volatile __address() variable can still be optimized away completely. + //@Test + //public void testAddress7() throws IOException, URISyntaxException { + // compileAndCompare("address-7.c", log()); + //} + @Test public void testAddress6() throws IOException, URISyntaxException { compileAndCompare("address-6.c"); diff --git a/src/test/kc/address-7.c b/src/test/kc/address-7.c new file mode 100644 index 000000000..69b80849a --- /dev/null +++ b/src/test/kc/address-7.c @@ -0,0 +1,9 @@ +// Test declaring a variable as at a hard-coded address +// Changing border color using an __address variable + +volatile char __address(0xd020) bgcol; + +void main() { + bgcol = 0; +} +