Go to the documentation of this file.
20 typedef struct __attribute__((packed)) {
35 typedef struct __attribute__((packed)) {
44 typedef struct __attribute__((packed)) {
54 typedef struct __attribute__((packed)) {
66 typedef struct __attribute__((packed)) {
106 extern __attribute__((leaf))
void _Noreturn cpm_warmboot(
void);
107 extern __attribute__((leaf))
uint8_t cpm_conin(
void);
108 extern __attribute__((leaf))
void cpm_conout(
uint8_t b);
109 extern __attribute__((leaf))
uint8_t cpm_auxin(
void);
110 extern __attribute__((leaf))
void cpm_auxout(
uint8_t b);
111 extern __attribute__((leaf))
void cpm_lstout(
uint8_t b);
113 extern __attribute__((leaf))
uint8_t cpm_get_iobyte(
void);
114 extern __attribute__((leaf))
void cpm_set_iobyte(
uint8_t iob);
115 extern __attribute__((leaf))
void cpm_printstring_i(
uint16_t s);
119 extern __attribute__((leaf))
uint8_t cpm_const(
void);
120 extern __attribute__((leaf))
uint16_t cpm_get_version(
void);
121 extern __attribute__((leaf))
void cpm_reset_disk_system(
void);
122 extern __attribute__((leaf))
void cpm_select_drive(
uint8_t disk);
133 extern __attribute__((leaf))
uint8_t
134 cpm_read_sequential_i(
uint16_t fcb);
136 extern __attribute__((leaf))
uint8_t
137 cpm_write_sequential_i(
uint16_t fcb);
143 extern __attribute__((leaf))
uint16_t cpm_get_login_vector(
void);
144 extern __attribute__((leaf))
uint8_t cpm_get_current_drive(
void);
145 extern __attribute__((leaf))
void cpm_set_dma_i(
uint16_t ptr);
147 extern __attribute__((leaf))
uint16_t
148 cpm_get_allocation_vector_i(
void);
150 extern __attribute__((leaf))
void cpm_write_protect_drive(
void);
151 extern __attribute__((leaf))
uint16_t cpm_get_readonly_vector(
void);
152 extern __attribute__((leaf))
uint8_t
153 cpm_set_file_attributes_i(
uint16_t fcb);
155 extern __attribute__((leaf))
uint16_t cpm_get_dpb_i(
void);
157 extern __attribute__((leaf))
uint8_t cpm_get_set_user(
uint8_t user);
162 extern __attribute__((leaf))
void cpm_seek_to_end_i(
uint16_t fcb);
164 extern __attribute__((leaf))
void cpm_seek_to_seq_pos_i(
uint16_t fcb);
166 extern __attribute__((leaf))
uint8_t
167 cpm_reset_drives(
uint16_t drive_bitmap);
168 extern __attribute__((leaf))
uint8_t
169 cpm_write_random_filled_i(
uint16_t fcb);
171 extern __attribute__((leaf))
uint16_t cpm_getzp(
void);
172 extern __attribute__((leaf))
uint16_t cpm_gettpa(
void);
173 extern __attribute__((leaf))
uint16_t
174 cpm_parse_filename_i(
uint16_t buffer);
177 #define cpm_get_user() cpm_get_set_user(0xff)
178 #define cpm_set_user(u) cpm_get_set_user(u)
180 extern __attribute__((leaf))
uint8_t cpm_bios_const(
void);
181 extern __attribute__((leaf))
uint8_t cpm_bios_conin(
void);
182 extern __attribute__((leaf))
void cpm_bios_conout(
uint8_t c);
185 extern __attribute__((leaf))
void
188 extern __attribute__((leaf))
void cpm_bios_setdma_i(
uint16_t dma);
190 extern __attribute__((leaf))
uint8_t cpm_bios_read(
void);
191 extern __attribute__((leaf))
uint8_t cpm_bios_write(
uint8_t deblock);
193 extern __attribute__((leaf))
uint16_t cpm_bios_gettpa(
void);
195 extern __attribute__((leaf))
uint16_t cpm_bios_getzp(
void);
197 extern __attribute__((leaf))
void cpm_bios_adddrv_i(
uint16_t driver);
uint8_t end
Definition: cpm.h:194
const char * cpm_parse_filename(const char *buffer)
uint8_t cpm_read_sequential(FCB *fcb)
byte byte byte byte byte f
Definition: api.h:27
@ CPME_DIRFULL
Definition: cpm.h:87
uint16_t id
Definition: cpm.h:76
@ CPME_DISKFULL
Definition: cpm.h:84
uint8_t cpm_delete_file(FCB *fcb)
@ CPME_NOEXTENT
Definition: cpm.h:86
uint8_t cpm_write_random(FCB *fcb)
::uint16_t uint16_t
Definition: cstdint:22
const char * name
Definition: cpm.h:77
@ CPME_OK
Definition: cpm.h:82
uint8_t cpm_read_random(FCB *fcb)
void cpm_printstring(const char *s)
void * strategy
Definition: cpm.h:78
void * cpm_bios_finddrv(uint16_t id)
void cpm_bios_adddrv(DRIVER *driver)
void cpm_bios_setsec(uint32_t *sector)
uint8_t cpm_close_file(FCB *fcb)
uint8_t mem
Definition: cpm.h:192
::uint8_t uint8_t
Definition: cstdint:21
uint8_t cpm_write_random_filled(FCB *fcb)
uint8_t * cpm_get_allocation_vector(void)
DPH * cpm_bios_seldsk(uint8_t disk)
uint8_t cpm_open_file(FCB *fcb)
@ CONIO_READ_POLLING
Definition: cpm.h:102
const void * src
Definition: memory.h:57
void cpm_set_dma(void *ptr)
uint8_t cpm_findfirst(FCB *fcb)
@ CPME_BADFCB
Definition: cpm.h:88
void cpm_bios_setdma(void *dma)
@ CPME_CANTCLOSE
Definition: cpm.h:85
uint8_t cpm_make_file(FCB *fcb)
void cpm_seek_to_seq_pos(FCB *fcb)
uint8_t cpm_write_sequential(FCB *fcb)
uint8_t cpm_default_dma[128]
@ CONIO_READ_BLOCKING
Definition: cpm.h:103
uint8_t cpm_readline(uint8_t *buffer)
void cpm_seek_to_end(FCB *fcb)
@ CPME_FAILED
Definition: cpm.h:89
::uint32_t uint32_t
Definition: cstdint:23
uint8_t cpm_findnext(FCB *fcb)
uint8_t cpm_rename_file(RCB *rcb)
uint16_t cpm_bios_seldsk_i(uint8_t disk)
@ CPME_NOBLOCK
Definition: cpm.h:83
byte byte c
Definition: api.h:59
uint8_t cpm_set_file_attributes(FCB *fcb)