1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-03 07:29:37 +00:00
kickc/src/test/kc/library/test7-multiple-libs/main.c
Flight_Control 00df07b7bf - Fixed test cases. Full retest of all test cases.
- 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).
2024-04-20 07:03:31 +03:00

19 lines
265 B
C

#pragma encoding(screencode_mixed)
#pragma var_model(zp)
#include <plus_lib_asm.h>
#include <min_lib_asm.h>
#include <print_lib_asm.h>
#include <stdio.h>
char r = 3;
void main() {
r = plus(r, 2);
r = min(r, 1);
clrscr();
printf("r = %u", r);
}