mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-06-03 07:29:37 +00:00
00df07b7bf
- Treat global variables of libraries, as part of the .asm library .namespace. - Fix bugs. - Assign meaningful struct names to .asm internal variables and labels. (Remove the $x notation).
11 lines
219 B
C
11 lines
219 B
C
#pragma encoding(screencode_mixed)
|
|
#pragma var_model(zp)
|
|
|
|
|
|
#include <global_lib_asm.h>
|
|
|
|
__export char r = 5; // Ensure that r does not get deleted by the optimizer by exporting it.
|
|
|
|
void main() {
|
|
r = global1d[1];
|
|
} |