llvm-mos-sdk
geos_routines.h
Go to the documentation of this file.
1 /***********************************************************************
2  * geos_routines.h
3  *
4  * This file contains symbol definitions for use in GEOS applications
5  * with llvm-mos C compiler.
6  *
7  * Transcribed from geoProgrammer manual by DiSc.
8  *
9  ***********************************************************************/
10 
11 #ifndef GEOS_ROUTINES_H
12 #define GEOS_ROUTINES_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /***********************************************************************
19  * Jump addresses within printer drivers
20  ***********************************************************************/
21 void InitForPrint(void);
22 uint8_t StartPrint(uint8_t *work_buf);
23 void PrintBuffer(const uint8_t *print_data, uint8_t *work_buf,
24  const uint8_t *color_data);
25 void StopPrint(uint8_t *temp_buf, uint8_t *work_buf);
26 uint8_t GetDimensions(uint8_t *cards_wide, uint8_t *cards_height);
27 void PrintASCII(const char *print_data, uint8_t *work_buf);
28 uint8_t StartASCII(uint8_t *work_buf);
29 void SetNLQ(uint8_t *work_buf);
30 
31 /***********************************************************************
32  * Jump addresses within disk drivers: these are only valid for non-1541
33  * disk drive types, and for the 128 versions of the 1541 driver.
34  ***********************************************************************/
36 disk_err_t GetNxtDirEntry(dir_entry_t **dir_entry, bool *end_of_dir);
37 disk_err_t GetOffPageTrSc(bool *no_geos_disk, tr_se_pair_t *border_block);
39 disk_err_t ReadLink(tr_se_pair_t block_addr, uint8_t *buffer);
40 
48 /***********************************************************************
49  * Graphics Routines
50  ***********************************************************************/
51 void HorizontalLine(uint16_t left, uint16_t right, uint8_t y, uint8_t pattern);
52 void InvertLine(uint16_t left, uint16_t right, uint8_t y);
53 void RecoverLine(uint16_t left, uint16_t right, uint8_t y);
54 void VerticalLine(uint16_t x, uint8_t top, uint8_t bottom, uint8_t pattern);
55 void Rectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom);
56 void FrameRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom,
57  uint8_t pattern);
58 void InvertRectangle(uint16_t left, uint8_t top, uint16_t right,
59  uint8_t bottom);
60 void RecoverRectangle(uint16_t left, uint8_t top, uint16_t right,
61  uint8_t bottom);
62 void DrawLine(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom,
63  bool recover, bool background);
64 void DrawPoint(uint16_t x, uint8_t y, bool recover, bool foreground);
65 void SetPattern(uint8_t pattern);
67 void ImprintRectangle(uint16_t left, uint8_t top, uint16_t right,
68  uint8_t bottom);
69 void BitmapUp(const uint8_t *bitmap, uint8_t card_left, uint8_t top,
70  uint8_t card_width, uint8_t height);
71 void BitmapClip(const uint8_t *bitmap, uint8_t card_left, uint8_t top,
72  uint8_t card_width, uint8_t height, uint8_t left_skip,
73  uint8_t right_skip, uint16_t top_skip);
74 void BitOtherClip(const uint8_t *bitmap, uint8_t card_left, uint8_t top,
75  uint8_t card_width, uint8_t height, uint8_t left_skip,
76  uint8_t right_skip, uint16_t top_skip, vector app_input,
77  vector sync);
78 void GraphicsString(const uint8_t *graph_string);
79 void GetScanLine(uint8_t scanline, uint16_t *first_screen_byte,
80  uint16_t *first_backgr_byte);
81 
82 /***********************************************************************
83  * Character Manipulation Routines
84  ***********************************************************************/
85 void PutString(uint16_t x, uint8_t y, const char *str);
86 void PutDecimal(uint16_t value, uint16_t x, uint8_t y, uint8_t format);
87 uint8_t GetString(char *buffer, uint16_t x, uint8_t y, uint8_t max_chars,
88  vector fault);
89 
90 char GetNextChar(void);
91 void InitTextPrompt(uint8_t height);
92 void PromptOn(void);
93 void PromptOff(void);
94 uint16_t PutChar(uint16_t x, uint8_t y, char ch);
96 void GetRealSize(char ch, uint8_t mode, uint8_t *width, uint8_t *height,
97  uint8_t *baseline_offset);
98 uint8_t GetCharWidth(char ch);
99 void LoadCharSet(uint8_t *font_info_tab);
100 void UseSystemFont(void);
101 
102 /***********************************************************************
103  * Jump addresses within input drivers for C64
104  ***********************************************************************/
105 void InitMouse(void);
106 void SlowMouse(void);
107 void UpdateMouse(void);
108 void SetMouse(void);
110 void MouseInit_128(void);
111 void SlowMouse_128(void);
112 void UpdateMouse_128(void);
113 void SetMouse_128(void);
114 
115 /***********************************************************************
116  * Mouse related routines
117  ***********************************************************************/
119 void ClearMouseMode(void);
120 void MouseOff(void);
121 void MouseUp(void);
122 bool IsMseInRegion(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom);
123 
124 /***********************************************************************
125  * Dialog Box Routines
126  ***********************************************************************/
127 uint8_t DoDlgBox(uint8_t *dlg_table);
128 void RstrFrmDialog(uint8_t icon_no);
129 
130 /***********************************************************************
131  * Routines for menus and icons
132  ***********************************************************************/
133 void DoMenu(const menu_tab_t *menu_table, uint8_t selected_menu_no);
134 void DoPreviousMenu(void);
135 void ReDoMenu(void);
136 void RecoverMenu(void);
137 void RecoverAllMenus(void);
138 void GotoFirstMenu(void);
139 
140 void DoIcons(const icon_table_t *icon_table);
141 
142 /***********************************************************************
143  * Routines for Sprite Support
144  ***********************************************************************/
145 void DrawSprite(uint8_t sprite_no, const uint8_t *sprite_data);
146 void PosSprite(uint8_t sprite_no, uint16_t x, uint8_t y);
147 void EnablSprite(uint8_t sprite_no);
148 void DisablSprite(uint8_t sprite_no);
149 
150 /***********************************************************************
151  * Routines for Process Support
152  ***********************************************************************/
153 void InitProcesses(uint8_t num_of_processes, const uint8_t *process_table);
154 void RestartProcess(uint8_t process_num);
155 void BlockProcess(uint8_t process_num);
156 void UnlockProcess(uint8_t process_num);
157 void FreezeProcess(uint8_t process_num);
158 void UnfreezeProcess(uint8_t process_num);
159 void Sleep(uint16_t jiffies);
160 void EnableProcess(uint8_t process_num);
161 
162 /***********************************************************************
163  * Utitlity & General Library Routines
164  ***********************************************************************/
165 uint16_t GetRandom(void);
166 void CopyString(char *src, char *dest);
167 void CopyFString(uint8_t *src, uint8_t *dest, uint8_t count);
168 int8_t CmpString(char *src, char *dest);
169 int8_t CmpFString(char *src, char *dest, uint8_t count);
170 void Panic(void);
171 void MoveData(const void *src, void *dest, uint16_t count);
172 void ClearRam(void *memory, uint16_t count);
173 void FillRam(void *memory, uint16_t count, uint8_t value);
174 void InitRam(uint8_t *init_table);
176 void ToBasic(uint8_t *basic_cmd);
177 void EnterDeskTop(void);
178 void FirstInit(void);
180 
181 /***********************************************************************
182  * High Level File Routines
183  ***********************************************************************/
185 disk_err_t OpenDisk(char **disk_name);
186 void GetPtrCurDkNm(disk_name_t buffer);
187 disk_err_t SetGEOSDisk(void);
189 uint8_t FindFTypes(char file_names[][17], geos_file_type_t file_type,
190  uint8_t max_filenames, const char *permanent_name);
191 disk_err_t GetFile(const char *file_name, uint8_t loadOptFlg,
192  const char *disk_name, const char *data_file,
193  uint8_t *load_addr, uint8_t daRecFlg);
194 disk_err_t FindFile(const char *file_name, tr_se_pair_t *tr_se,
196 disk_err_t SaveFile(file_header_block_t *header_block, uint8_t dir_page);
197 disk_err_t DeleteFile(const char *file_name);
198 disk_err_t RenameFile(const char *old_name, const char *new_name);
200 
201 /***********************************************************************
202  * Intermediate Level File Routines
203  ***********************************************************************/
207  uint8_t **load_addr);
209 disk_err_t WriteFile(const uint8_t *buffer, tr_se_pair_t *blocks);
211  uint8_t *value);
213 disk_err_t GetDirHead(void);
214 disk_err_t PutDirHead(void);
215 disk_err_t NewDisk(void);
217  const char *disk_name, const char *data_file,
218  uint8_t *load_addr);
219 void RstrAppl(void);
222 disk_err_t StartAppl(uint8_t loadOptFlg, const char *disk_name,
223  const char *data_file, uint8_t *start_addr);
224 disk_err_t GetFreeDirBlk(uint8_t dir_page_no, uint8_t *free_entry_idx,
225  uint8_t *page_no);
226 disk_err_t BlkAlloc(uint16_t bytecount, const tr_se_pair_t *tr_se_tab,
227  uint16_t *blocks_alloc, tr_se_pair_t *last_block);
228 disk_err_t NxtBlkAlloc(tr_se_pair_t start_block, uint16_t bytecount,
229  const tr_se_pair_t *tr_se_tab, uint16_t *blocks_alloc,
230  tr_se_pair_t *last_block);
231 uint8_t FindBAMBit(tr_se_pair_t tr_se, uint8_t *bam_offset);
233 disk_err_t SetGDirEntry(uint8_t dir_page, uint16_t num_blocks,
234  const file_tr_se_tab_t *ts_tab,
235  const file_header_t *file_header,
236  tr_se_pair_t **first_block);
237 tr_se_pair_t *BldGDirEntry(uint16_t num_blocks, const file_tr_se_tab_t *ts_tab,
238  const file_header_t *file_header);
240 disk_err_t FastDelFile(const char *file_name, file_tr_se_tab_t *ts_tab);
241 disk_err_t FreeFile(const dir_entry_t *buffer);
242 
243 /***********************************************************************
244  * Low Level File Routines
245  ***********************************************************************/
246 void InitForIO(void);
247 void DoneWithIO(void);
248 disk_err_t PurgeTurbo(void);
249 disk_err_t EnterTurbo(void);
250 disk_err_t ExitTurbo(void);
251 disk_err_t ReadBock(tr_se_pair_t block_ts, disk_block_t *block_buffer);
252 disk_err_t WriteBock(tr_se_pair_t block_ts, const disk_block_t *block_buffer);
254  const disk_block_t *block_buffer);
255 
256 /***********************************************************************
257  * VLIR Level File Routines
258  ***********************************************************************/
259 disk_err_t OpenRecordFile(const char *file_name);
262 disk_err_t PreviousRecord(uint8_t *record_no, bool *is_empty);
263 disk_err_t NextRecord(uint8_t *record_no, bool *is_empty);
264 disk_err_t PointRecord(uint8_t record_no, uint8_t *new_record_no,
265  bool *is_empty);
266 disk_err_t WriteRecord(const uint8_t *data, uint16_t num_bytes);
267 disk_err_t ReadRecord(uint8_t *data, uint16_t num_bytes, bool *is_empty);
271 
272 /***********************************************************************
273  * RAM Expansion Routines
274  ***********************************************************************/
275 uint8_t StashRAM(const uint8_t *cbm_source, uint8_t *reu_dest, uint16_t count,
276  uint8_t reu_bank);
277 uint8_t FetchRAM(const uint8_t *reu_source, uint8_t *cbm_dest, uint16_t count,
278  uint8_t reu_bank);
279 uint8_t SwapRAM(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count,
280  uint8_t reu_bank);
281 uint8_t VerifyRAM(const uint8_t *cbm_addr, const uint8_t *reu_addr,
282  uint16_t count, uint8_t reu_bank);
283 uint8_t DoRAMOp(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count,
284  uint8_t reu_bank, uint8_t cmd);
285 
286 /***********************************************************************
287  * only in GEOS 128
288  ***********************************************************************/
289 
291 void MoveBData(const uint8_t *source, uint8_t *dest, uint16_t count,
292  uint8_t src_bank, uint8_t dst_bank);
293 void SwapBData(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank,
294  uint8_t a2_bank);
295 uint8_t DoBOp(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank,
296  uint8_t a2_bank, uint8_t mode);
297 
299 void TempHideMouse(void);
300 void HideOnlyMouse(void);
301 void SetNewMode(void);
303 uint8_t AccessCache(uint8_t block_no, uint8_t *buffer, uint8_t mode,
304  uint8_t *verify_result);
305 void SetColorMode(uint8_t clr_mode);
306 void SetColorCard(uint16_t x, uint8_t y, uint8_t color);
308 void ColorRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom,
309  uint8_t fbcolor);
310 
311 void MainLoop(void);
312 
313 #ifdef __cplusplus
314 }
315 #endif
316 
317 #endif
LoadCharSet
void LoadCharSet(uint8_t *font_info_tab)
CalcBlksFree
uint16_t CalcBlksFree(dir_header_t *dir_header, uint16_t *total_blocks)
BitOtherClip
void BitOtherClip(const uint8_t *bitmap, uint8_t card_left, uint8_t top, uint8_t card_width, uint8_t height, uint8_t left_skip, uint8_t right_skip, uint16_t top_skip, vector app_input, vector sync)
DisablSprite
void DisablSprite(uint8_t sprite_no)
DoIcons
void DoIcons(const icon_table_t *icon_table)
FindFile
disk_err_t FindFile(const char *file_name, tr_se_pair_t *tr_se, dir_entry_t *dir_entry)
GetScanLine
void GetScanLine(uint8_t scanline, uint16_t *first_screen_byte, uint16_t *first_backgr_byte)
SetGEOSDisk
disk_err_t SetGEOSDisk(void)
AppendRecord
disk_err_t AppendRecord(void)
GetCharWidth
uint8_t GetCharWidth(char ch)
HideOnlyMouse
void HideOnlyMouse(void)
WriteBock
disk_err_t WriteBock(tr_se_pair_t block_ts, const disk_block_t *block_buffer)
SetMouse_128
void SetMouse_128(void)
tr_se_pair
Definition: geos_types.h:33
FrameRectangle
void FrameRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, uint8_t pattern)
std::uint16_t
::uint16_t uint16_t
Definition: cstdint:22
icon_table
Definition: geos_types.h:176
ReadRecord
disk_err_t ReadRecord(uint8_t *data, uint16_t num_bytes, bool *is_empty)
data
char const void * data
Definition: neslib.h:92
StashRAM
uint8_t StashRAM(const uint8_t *cbm_source, uint8_t *reu_dest, uint16_t count, uint8_t reu_bank)
PutBlock
disk_err_t PutBlock(tr_se_pair_t tr_se, const disk_block_t *disk_block)
SetNewMode
void SetNewMode(void)
MoveBData
void MoveBData(const uint8_t *source, uint8_t *dest, uint16_t count, uint8_t src_bank, uint8_t dst_bank)
InsertRecord
disk_err_t InsertRecord(void)
InitRam
void InitRam(uint8_t *init_table)
InitMouse
void InitMouse(void)
CRC
uint16_t CRC(uint8_t *data, uint16_t count)
GetString
uint8_t GetString(char *buffer, uint16_t x, uint8_t y, uint8_t max_chars, vector fault)
TempHideMouse
void TempHideMouse(void)
OpenDisk
disk_err_t OpenDisk(char **disk_name)
PurgeTurbo
disk_err_t PurgeTurbo(void)
BldGDirEntry
tr_se_pair_t * BldGDirEntry(uint16_t num_blocks, const file_tr_se_tab_t *ts_tab, const file_header_t *file_header)
FastDelFile
disk_err_t FastDelFile(const char *file_name, file_tr_se_tab_t *ts_tab)
SetDevice
disk_err_t SetDevice(uint8_t device)
InitTextPrompt
void InitTextPrompt(uint8_t height)
SmallPutChar
uint16_t SmallPutChar(uint16_t x, uint8_t y, char ch)
DrawPoint
void DrawPoint(uint16_t x, uint8_t y, bool recover, bool foreground)
DrawSprite
void DrawSprite(uint8_t sprite_no, const uint8_t *sprite_data)
DeleteFile
disk_err_t DeleteFile(const char *file_name)
VerWriteBock
disk_err_t VerWriteBock(tr_se_pair_t block_ts, const disk_block_t *block_buffer)
CopyFString
void CopyFString(uint8_t *src, uint8_t *dest, uint8_t count)
GetFreeDirBlk
disk_err_t GetFreeDirBlk(uint8_t dir_page_no, uint8_t *free_entry_idx, uint8_t *page_no)
FollowChain
disk_err_t FollowChain(tr_se_pair_t start_block, file_tr_se_tab_t *ts_tab)
GetRandom
uint16_t GetRandom(void)
FillRam
void FillRam(void *memory, uint16_t count, uint8_t value)
disk_name_t
char disk_name_t[DK_NM_ID_LEN]
Definition: geos_types.h:27
UnlockProcess
void UnlockProcess(uint8_t process_num)
MouseOff
void MouseOff(void)
UpdateMouse
void UpdateMouse(void)
file_header
Definition: geos_types.h:124
RstrAppl
void RstrAppl(void)
length
uint8_t uint16_t uint16_t length
Definition: bios.h:181
FindFTypes
uint8_t FindFTypes(char file_names[][17], geos_file_type_t file_type, uint8_t max_filenames, const char *permanent_name)
SetColorCard
void SetColorCard(uint16_t x, uint8_t y, uint8_t color)
InitProcesses
void InitProcesses(uint8_t num_of_processes, const uint8_t *process_table)
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
GetBlock
disk_err_t GetBlock(tr_se_pair_t tr_se, disk_block_t *disk_block)
SetNLQ
void SetNLQ(uint8_t *work_buf)
SetMouse
void SetMouse(void)
disk_block
Definition: geos_types.h:57
VerticalLine
void VerticalLine(uint16_t x, uint8_t top, uint8_t bottom, uint8_t pattern)
LdFile
disk_err_t LdFile(dir_entry_t *dir_entry)
RecoverMenu
void RecoverMenu(void)
BlkAlloc
disk_err_t BlkAlloc(uint16_t bytecount, const tr_se_pair_t *tr_se_tab, uint16_t *blocks_alloc, tr_se_pair_t *last_block)
ImprintRectangle
void ImprintRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
GetOffPageTrSc
disk_err_t GetOffPageTrSc(bool *no_geos_disk, tr_se_pair_t *border_block)
ReadFile
disk_err_t ReadFile(uint8_t *buffer, uint16_t length, tr_se_pair_t tr_se)
GetNxtDirEntry
disk_err_t GetNxtDirEntry(dir_entry_t **dir_entry, bool *end_of_dir)
FirstInit
void FirstInit(void)
GetSerialNumber
uint16_t GetSerialNumber(void)
EnterDeskTop
void EnterDeskTop(void)
SlowMouse_128
void SlowMouse_128(void)
NormalizeX
uint16_t NormalizeX(uint16_t x)
OpenRecordFile
disk_err_t OpenRecordFile(const char *file_name)
BitmapClip
void BitmapClip(const uint8_t *bitmap, uint8_t card_left, uint8_t top, uint8_t card_width, uint8_t height, uint8_t left_skip, uint8_t right_skip, uint16_t top_skip)
dir_header
Definition: geos_types.h:101
ReadByteNext
disk_err_t ReadByteNext(uint8_t *value)
PreviousRecord
disk_err_t PreviousRecord(uint8_t *record_no, bool *is_empty)
FreeFile
disk_err_t FreeFile(const dir_entry_t *buffer)
menu_tab
Definition: geos_types.h:195
std::int8_t
::int8_t int8_t
Definition: cstdint:7
PosSprite
void PosSprite(uint8_t sprite_no, uint16_t x, uint8_t y)
NxtBlkAlloc
disk_err_t NxtBlkAlloc(tr_se_pair_t start_block, uint16_t bytecount, const tr_se_pair_t *tr_se_tab, uint16_t *blocks_alloc, tr_se_pair_t *last_block)
SlowMouse
void SlowMouse(void)
DeleteRecord
disk_err_t DeleteRecord(void)
MoveData
void MoveData(const void *src, void *dest, uint16_t count)
StopPrint
void StopPrint(uint8_t *temp_buf, uint8_t *work_buf)
ReDoMenu
void ReDoMenu(void)
CloseRecordFile
disk_err_t CloseRecordFile(void)
InvertRectangle
void InvertRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
count
const void uint16_t count
Definition: memory.h:58
src
const void * src
Definition: memory.h:57
GotoFirstMenu
void GotoFirstMenu(void)
GetDirHead
disk_err_t GetDirHead(void)
RestartProcess
void RestartProcess(uint8_t process_num)
GetFile
disk_err_t GetFile(const char *file_name, uint8_t loadOptFlg, const char *disk_name, const char *data_file, uint8_t *load_addr, uint8_t daRecFlg)
x
byte x
Definition: api.h:26
InitForIO
void InitForIO(void)
DrawLine
void DrawLine(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, bool recover, bool background)
y
byte byte y
Definition: api.h:26
IsMseInRegion
bool IsMseInRegion(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
SwapRAM
uint8_t SwapRAM(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count, uint8_t reu_bank)
InvertLine
void InvertLine(uint16_t left, uint16_t right, uint8_t y)
PutString
void PutString(uint16_t x, uint8_t y, const char *str)
RecoverLine
void RecoverLine(uint16_t left, uint16_t right, uint8_t y)
UseSystemFont
void UseSystemFont(void)
GetDimensions
uint8_t GetDimensions(uint8_t *cards_wide, uint8_t *cards_height)
MouseUp
void MouseUp(void)
file_tr_se_tab_t
struct tr_se_pair file_tr_se_tab_t[128]
Definition: geos_types.h:40
SwapBData
void SwapBData(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank, uint8_t a2_bank)
HorizontalLine
void HorizontalLine(uint16_t left, uint16_t right, uint8_t y, uint8_t pattern)
DoBOp
uint8_t DoBOp(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank, uint8_t a2_bank, uint8_t mode)
InitForPrint
void InitForPrint(void)
DoMenu
void DoMenu(const menu_tab_t *menu_table, uint8_t selected_menu_no)
ClearRam
void ClearRam(void *memory, uint16_t count)
vector
void(* vector)(void)
Definition: geos_types.h:25
NextRecord
disk_err_t NextRecord(uint8_t *record_no, bool *is_empty)
ReadBock
disk_err_t ReadBock(tr_se_pair_t block_ts, disk_block_t *block_buffer)
BitmapUp
void BitmapUp(const uint8_t *bitmap, uint8_t card_left, uint8_t top, uint8_t card_width, uint8_t height)
WriteRecord
disk_err_t WriteRecord(const uint8_t *data, uint16_t num_bytes)
Panic
void Panic(void)
DoRAMOp
uint8_t DoRAMOp(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count, uint8_t reu_bank, uint8_t cmd)
SaveFile
disk_err_t SaveFile(file_header_block_t *header_block, uint8_t dir_page)
SetGDirEntry
disk_err_t SetGDirEntry(uint8_t dir_page, uint16_t num_blocks, const file_tr_se_tab_t *ts_tab, const file_header_t *file_header, tr_se_pair_t **first_block)
EnablSprite
void EnablSprite(uint8_t sprite_no)
ToBasic
void ToBasic(uint8_t *basic_cmd)
MainLoop
void MainLoop(void)
disk_err_t
disk_err_t
Definition: geos_constants.h:525
RenameFile
disk_err_t RenameFile(const char *old_name, const char *new_name)
SetColorMode
void SetColorMode(uint8_t clr_mode)
PutChar
uint16_t PutChar(uint16_t x, uint8_t y, char ch)
EnterTurbo
disk_err_t EnterTurbo(void)
BlockProcess
void BlockProcess(uint8_t process_num)
WriteFile
disk_err_t WriteFile(const uint8_t *buffer, tr_se_pair_t *blocks)
ClearMouseMode
void ClearMouseMode(void)
RecoverRectangle
void RecoverRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
RstrFrmDialog
void RstrFrmDialog(uint8_t icon_no)
PutDirHead
disk_err_t PutDirHead(void)
dir_entry
Definition: geos_types.h:68
AllocateBlock
disk_err_t AllocateBlock(tr_se_pair_t block_addr)
GetNextChar
char GetNextChar(void)
DoDlgBox
uint8_t DoDlgBox(uint8_t *dlg_table)
GraphicsString
void GraphicsString(const uint8_t *graph_string)
NewDisk
disk_err_t NewDisk(void)
ExitTurbo
disk_err_t ExitTurbo(void)
ReadLink
disk_err_t ReadLink(tr_se_pair_t block_addr, uint8_t *buffer)
file_header_block
Definition: geos_types.h:158
PromptOn
void PromptOn(void)
ChkDkGEOS
bool ChkDkGEOS(dir_header_t *dir_header)
geos_file_type_t
geos_file_type_t
Definition: geos_constants.h:316
MouseInit_128
void MouseInit_128(void)
RecoverAllMenus
void RecoverAllMenus(void)
AccessCache
uint8_t AccessCache(uint8_t block_no, uint8_t *buffer, uint8_t mode, uint8_t *verify_result)
DoneWithIO
void DoneWithIO(void)
StartMouseMode
void StartMouseMode(uint16_t x, uint8_t y)
PrintBuffer
void PrintBuffer(const uint8_t *print_data, uint8_t *work_buf, const uint8_t *color_data)
Get1stDirEntry
disk_err_t Get1stDirEntry(dir_entry_t **dir_entry)
GetColorCard
uint8_t GetColorCard(uint16_t x, uint8_t y)
LdApplic
disk_err_t LdApplic(dir_entry_t *dir_entry, uint8_t loadOptFlg, const char *disk_name, const char *data_file, uint8_t *load_addr)
ReadByteInit
disk_err_t ReadByteInit(tr_se_pair_t tr_se, disk_block_t *buffer, uint8_t *value)
Sleep
void Sleep(uint16_t jiffies)
VerifyRAM
uint8_t VerifyRAM(const uint8_t *cbm_addr, const uint8_t *reu_addr, uint16_t count, uint8_t reu_bank)
LdDescAcc
disk_err_t LdDescAcc(dir_entry_t *dir_entry)
PrintASCII
void PrintASCII(const char *print_data, uint8_t *work_buf)
EnableProcess
void EnableProcess(uint8_t process_num)
GetRealSize
void GetRealSize(char ch, uint8_t mode, uint8_t *width, uint8_t *height, uint8_t *baseline_offset)
FreezeProcess
void FreezeProcess(uint8_t process_num)
UpdateRecordFile
disk_err_t UpdateRecordFile(void)
Rectangle
void Rectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
TestPoint
bool TestPoint(uint16_t x, uint8_t y)
GetPtrCurDkNm
void GetPtrCurDkNm(disk_name_t buffer)
StartAppl
disk_err_t StartAppl(uint8_t loadOptFlg, const char *disk_name, const char *data_file, uint8_t *start_addr)
UpdateMouse_128
void UpdateMouse_128(void)
PointRecord
disk_err_t PointRecord(uint8_t record_no, uint8_t *new_record_no, bool *is_empty)
PromptOff
void PromptOff(void)
StartPrint
uint8_t StartPrint(uint8_t *work_buf)
StartASCII
uint8_t StartASCII(uint8_t *work_buf)
PutDecimal
void PutDecimal(uint16_t value, uint16_t x, uint8_t y, uint8_t format)
mode
const void uint16_t uint8_t mode
Definition: memory.h:58
CmpFString
int8_t CmpFString(char *src, char *dest, uint8_t count)
DoPreviousMenu
void DoPreviousMenu(void)
ColorRectangle
void ColorRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, uint8_t fbcolor)
FreeBlock
disk_err_t FreeBlock(tr_se_pair_t tr_se)
CmpString
int8_t CmpString(char *src, char *dest)
FetchRAM
uint8_t FetchRAM(const uint8_t *reu_source, uint8_t *cbm_dest, uint16_t count, uint8_t reu_bank)
FindBAMBit
uint8_t FindBAMBit(tr_se_pair_t tr_se, uint8_t *bam_offset)
CopyString
void CopyString(char *src, char *dest)
GetFHdrInfo
disk_err_t GetFHdrInfo(const dir_entry_t *dir_entry, tr_se_pair_t *tr_se, uint8_t **load_addr)
UnfreezeProcess
void UnfreezeProcess(uint8_t process_num)
SetPattern
void SetPattern(uint8_t pattern)