1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 02:24:34 +00:00

Implemented Xmega65 SYSCALLS.

This commit is contained in:
jespergravgaard 2019-08-10 00:17:55 +02:00
parent d70fbe4c34
commit 4430974f25
2 changed files with 3 additions and 9 deletions

View File

@ -16,17 +16,13 @@ void main() {
}
}
char* BORDERCOL = 0xd020;
void fn1() {
const byte* BORDERCOL = $d020;
const char* BORDERCOL = $d020;
(*BORDERCOL)++;
}
char* BGCOL = 0xd021;
void fn2() {
const byte* BGCOL = $d021;
const char* BGCOL = $d021;
(*BGCOL)++;
}
@ -41,4 +37,4 @@ char[] SYSCALLS = {
JMP, <&main, >&main, NOP
};
const unsigned int* CALLS = (word*)(SYSCALLS+1);
const unsigned int* CALLS = (unsigned int*)(SYSCALLS+1);

View File

@ -1,8 +1,6 @@
Loading link script "xmega65.ld"
Resolved forward reference CALLS to (word*) CALLS
Fixing pointer array-indexing *((word*) CALLS + (number~) main::$0)
Identified constant variable (byte*) BORDERCOL
Identified constant variable (byte*) BGCOL
Culled Empty Block (label) main::@5
Culled Empty Block (label) main::@3
Culled Empty Block (label) main::@6