llvm-mos-sdk
Macros
kernel.h File Reference
#include <neo6502.h>
Include dependency graph for kernel.h:

Go to the source code of this file.

Macros

#define KWriteCharacterInline(c)   __attribute__((leaf)) asm volatile("jsr 0xFFF5\n.byte %0\n" : : "i"(c) : "p")
 Kernel call: Write a character to the current console, inlined. More...
 
#define KSendMessage(group, function)   __attribute__((leaf)) asm volatile("jsr 0xFFF7\n.byte %0, %1\n" : : "i"(group), "i"(function) : "p")
 Kernel call: Send a command, inlined. More...
 
#define KSendMessageSync(group, function)
 Combines KSendMessage and KWaitMessage. More...
 

Macro Definition Documentation

◆ KSendMessage

#define KSendMessage (   group,
  function 
)    __attribute__((leaf)) asm volatile("jsr 0xFFF7\n.byte %0, %1\n" : : "i"(group), "i"(function) : "p")

Kernel call: Send a command, inlined.

Parameters
groupThe command group.
functionThe command function.

◆ KSendMessageSync

#define KSendMessageSync (   group,
  function 
)
Value:
KSendMessage(group, function); \
KWaitMessage()

Combines KSendMessage and KWaitMessage.

◆ KWriteCharacterInline

#define KWriteCharacterInline (   c)    __attribute__((leaf)) asm volatile("jsr 0xFFF5\n.byte %0\n" : : "i"(c) : "p")

Kernel call: Write a character to the current console, inlined.

Parameters
cThe character to write.
KSendMessage
#define KSendMessage(group, function)
Kernel call: Send a command, inlined.
Definition: kernel.h:71