Go to the documentation of this file.
55 # error This module may be used only when compiling for CBM machines!
64 #if defined(__C64__) && !defined(_C64_H)
66 #elif defined(__VIC20__) && !defined(_VIC20_H)
68 #elif defined(__C128__) && !defined(_C128_H)
70 #elif defined(__PLUS4__) && !defined(_PLUS4_H)
72 #elif defined(__C16__) && !defined(_C16_H)
74 #elif defined(__CBM510__) && !defined(_CBM510_H)
76 #elif defined(__CBM610__) && !defined(_CBM610_H)
78 #elif defined(__PET__) && !defined(_PET_H)
80 #elif defined(__CX16__) && !defined(_CX16_H)
87 #include <cbm_filetype.h>
92 #define JOY_FIRE_MASK JOY_BTN_1_MASK
93 #define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
119 #define CH_ULCORNER 176
120 #define CH_URCORNER 174
121 #define CH_LLCORNER 173
122 #define CH_LRCORNER 189
128 #define CH_CURS_UP 145
129 #define CH_CURS_DOWN 17
130 #define CH_CURS_LEFT 157
131 #define CH_CURS_RIGHT 29
140 #define CH_FONT_LOWER 14
141 #define CH_FONT_UPPER 142
177 unsigned char get_tv (
void);
180 #define KBREPEAT_CURSOR 0x00
181 #define KBREPEAT_NONE 0x40
182 #define KBREPEAT_ALL 0x80
184 unsigned char __fastcall__ kbrepeat (
unsigned char mode);
187 #if !defined(__CBM610__)
208 enum :
unsigned char {
221 unsigned char cbm_k_chkin (
unsigned char FN) __attribute__((leaf));
222 unsigned char cbm_k_chkout (
unsigned char FN) __attribute__((leaf));
227 unsigned char cbm_k_ckout (
unsigned char FN) __attribute__((leaf));
255 void *
cbm_k_load(
unsigned char flag,
void *load_addr);
257 unsigned char cbm_k_open (
void) __attribute__((leaf));
259 unsigned char cbm_k_save(
void *startaddr,
void *endaddr_plusone) __attribute__((leaf));
262 void cbm_k_setlfs (
unsigned char LFN,
unsigned char DEV,
263 unsigned char SA) __attribute__((leaf));
264 void cbm_k_setnam (
const char* Name) __attribute__((leaf));
300 unsigned int __fastcall__ cbm_load (
const char* name,
unsigned char device,
void*
data);
308 unsigned char __fastcall__ cbm_save (
const char* name,
unsigned char device,
309 const void* addr,
unsigned int size);
315 unsigned char __fastcall__ cbm_open (
unsigned char lfn,
unsigned char device,
316 unsigned char sec_addr,
const char* name);
322 void __fastcall__ cbm_close (
unsigned char lfn);
325 int __fastcall__ cbm_read (
unsigned char lfn,
void* buffer,
unsigned int size);
332 int __fastcall__ cbm_write (
unsigned char lfn,
const void* buffer,
339 unsigned char cbm_opendir (
unsigned char lfn,
unsigned char device, ...);
346 unsigned char __fastcall__ cbm_readdir (
unsigned char lfn,
362 void __fastcall__ cbm_closedir (
unsigned char lfn);
unsigned char type
Definition: cbm.h:159
void cbm_k_bsout(unsigned char C)
void cbm_k_chrout(unsigned char C)
unsigned int size
Definition: cbm.h:158
char const void * data
Definition: neslib.h:92
void cbm_k_tksa(unsigned char addr)
unsigned char cbm_k_save(void *startaddr, void *endaddr_plusone) __attribute__((leaf))
unsigned char cbm_k_basin(void)
void cbm_k_setlfs(unsigned char LFN, unsigned char DEV, unsigned char SA) __attribute__((leaf))
unsigned char cbm_k_chrin(void)
unsigned char cbm_k_ckout(unsigned char FN) __attribute__((leaf))
void * cbm_k_load(unsigned char flag, void *load_addr)
CBM KERNAL function to load or verify file.
unsigned char get_tv(void) __attribute__((leaf))
void cbm_k_listen(unsigned char dev)
void cbm_k_second(unsigned char addr)
@ CBM_LOAD_RAM
Load into RAM.
Definition: cbm.h:209
unsigned char cbm_k_chkout(unsigned char FN) __attribute__((leaf))
unsigned size
Definition: neslib.h:185
unsigned char cbm_k_acptr(void)
unsigned char access
Definition: cbm.h:160
void cbm_k_settim(unsigned long timer)
void cbm_k_close(unsigned char FN)
void cbm_k_ciout(unsigned char C)
unsigned cbm_k_iobase(void) __attribute__((leaf))
unsigned char cbm_k_getin(void)
void cbm_k_talk(unsigned char dev)
@ CBM_LOAD_VERIFY
Performs verify.
Definition: cbm.h:210
unsigned char cbm_k_open(void) __attribute__((leaf))
void cbm_k_setnam(const char *Name) __attribute__((leaf))
unsigned char cbm_k_chkin(unsigned char FN) __attribute__((leaf))
unsigned char cbm_k_readst(void)
const void uint16_t uint8_t mode
Definition: memory.h:58
char name[17]
Definition: cbm.h:157