mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-24 20:32:39 +00:00
Removed support for inline kickasm in the global scope. Now only kickasm inside functions (code) or kickasm as initializer for arrays are supported.
This commit is contained in:
parent
f027b58a16
commit
3781096d01
@ -34,7 +34,6 @@ decl
|
||||
| structDef ';'
|
||||
| enumDef ';'
|
||||
| declFunction
|
||||
| declKasm
|
||||
| globalDirective
|
||||
| typeDef ';'
|
||||
;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -13,16 +13,16 @@ void main() {
|
||||
} else {
|
||||
f = &fn2;
|
||||
}
|
||||
kickasm(uses f) {{
|
||||
kickasm(uses f, uses ff) {{
|
||||
jsr ff
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
kickasm {{
|
||||
ff:
|
||||
// Inline KickAsm function
|
||||
char ff[] = kickasm {{
|
||||
jmp (main.f)
|
||||
}}
|
||||
}};
|
||||
|
||||
void fn1() {
|
||||
byte* const BORDER_COLOR = $d020;
|
||||
|
@ -12,4 +12,4 @@ void main() {
|
||||
// KickAsm data initializer
|
||||
export char A[] = kickasm {{
|
||||
.byte 1, 2, 3
|
||||
}}
|
||||
}};
|
Loading…
Reference in New Issue
Block a user