mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-08-06 15:25:38 +00:00
13 lines
189 B
C
13 lines
189 B
C
// Test __varcall calling convention
|
|
// Parameter passing
|
|
|
|
void main() {
|
|
setbg(0);
|
|
setbg(0x0b);
|
|
}
|
|
|
|
char * const BGCOL = 0xd021;
|
|
|
|
__varcall void setbg(char col) {
|
|
*BGCOL = col;
|
|
} |