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).
22 lines
313 B
C
22 lines
313 B
C
#pragma encoding(screencode_mixed)
|
|
#pragma var_model(local_zp)
|
|
|
|
#pragma asm_library
|
|
#pragma calling(__varcall)
|
|
#pragma asm_export(get_y)
|
|
#pragma calling(__phicall)
|
|
|
|
typedef struct {
|
|
char y1;
|
|
char y2;
|
|
char y3;
|
|
} data_t;
|
|
|
|
data_t y = {128,129,130};
|
|
|
|
char get_y(char i) {
|
|
|
|
return ((char*)(&y))[i];
|
|
}
|
|
|