Go to the documentation of this file.
20 #define KWriteCharacterInline(c) \
21 __attribute__((leaf)) asm volatile("jsr 0xFFF5\n.byte %0\n" : : "i"(c) : "p")
29 static inline void KReadLine(
char *s) {
32 __attribute__((leaf))
asm volatile(
"jsr 0xFFEB" : :
"x"(sl),
"y"(sh) :
"p");
41 static inline char KReadCharacter(
void) {
43 __attribute__((leaf))
asm volatile(
"jsr 0xFFEE" :
"=a"(
c) : :
"p");
53 static inline void KWriteCharacter(
char c) {
54 __attribute__((leaf))
asm volatile(
"jsr 0xFFF1" : :
"a"(
c) :
"p");
61 static inline void KWaitMessage(
void) {
62 __attribute__((leaf))
asm volatile(
"jsr 0xFFF4" : : :
"p");
71 #define KSendMessage(group, function) \
72 __attribute__((leaf)) asm volatile("jsr 0xFFF7\n.byte %0, %1\n" : : "i"(group), "i"(function) : "p")
77 #define KSendMessageSync(group, function) \
78 KSendMessage(group, function); \
::uint16_t uint16_t
Definition: cstdint:22
::uint8_t uint8_t
Definition: cstdint:21
byte byte c
Definition: api.h:59