Go to the documentation of this file.
11 #ifndef GEOS_ROUTINES_H
12 #define GEOS_ROUTINES_H
63 bool recover,
bool background);
190 uint8_t max_filenames,
const char *permanent_name);
192 const char *disk_name,
const char *data_file,
217 const char *disk_name,
const char *data_file,
223 const char *data_file,
uint8_t *start_addr);
void LoadCharSet(uint8_t *font_info_tab)
uint16_t CalcBlksFree(dir_header_t *dir_header, uint16_t *total_blocks)
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)
void DisablSprite(uint8_t sprite_no)
void DoIcons(const icon_table_t *icon_table)
disk_err_t FindFile(const char *file_name, tr_se_pair_t *tr_se, dir_entry_t *dir_entry)
void GetScanLine(uint8_t scanline, uint16_t *first_screen_byte, uint16_t *first_backgr_byte)
disk_err_t SetGEOSDisk(void)
disk_err_t AppendRecord(void)
uint8_t GetCharWidth(char ch)
disk_err_t WriteBock(tr_se_pair_t block_ts, const disk_block_t *block_buffer)
Definition: geos_types.h:33
void FrameRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, uint8_t pattern)
::uint16_t uint16_t
Definition: cstdint:22
Definition: geos_types.h:176
disk_err_t ReadRecord(uint8_t *data, uint16_t num_bytes, bool *is_empty)
char const void * data
Definition: neslib.h:92
uint8_t StashRAM(const uint8_t *cbm_source, uint8_t *reu_dest, uint16_t count, uint8_t reu_bank)
disk_err_t PutBlock(tr_se_pair_t tr_se, const disk_block_t *disk_block)
void MoveBData(const uint8_t *source, uint8_t *dest, uint16_t count, uint8_t src_bank, uint8_t dst_bank)
disk_err_t InsertRecord(void)
void InitRam(uint8_t *init_table)
uint16_t CRC(uint8_t *data, uint16_t count)
uint8_t GetString(char *buffer, uint16_t x, uint8_t y, uint8_t max_chars, vector fault)
disk_err_t OpenDisk(char **disk_name)
disk_err_t PurgeTurbo(void)
tr_se_pair_t * BldGDirEntry(uint16_t num_blocks, const file_tr_se_tab_t *ts_tab, const file_header_t *file_header)
disk_err_t FastDelFile(const char *file_name, file_tr_se_tab_t *ts_tab)
disk_err_t SetDevice(uint8_t device)
void InitTextPrompt(uint8_t height)
uint16_t SmallPutChar(uint16_t x, uint8_t y, char ch)
void DrawPoint(uint16_t x, uint8_t y, bool recover, bool foreground)
void DrawSprite(uint8_t sprite_no, const uint8_t *sprite_data)
disk_err_t DeleteFile(const char *file_name)
disk_err_t VerWriteBock(tr_se_pair_t block_ts, const disk_block_t *block_buffer)
void CopyFString(uint8_t *src, uint8_t *dest, uint8_t count)
disk_err_t GetFreeDirBlk(uint8_t dir_page_no, uint8_t *free_entry_idx, uint8_t *page_no)
disk_err_t FollowChain(tr_se_pair_t start_block, file_tr_se_tab_t *ts_tab)
void FillRam(void *memory, uint16_t count, uint8_t value)
char disk_name_t[DK_NM_ID_LEN]
Definition: geos_types.h:27
void UnlockProcess(uint8_t process_num)
uint8_t uint16_t uint16_t length
Definition: bios.h:181
uint8_t FindFTypes(char file_names[][17], geos_file_type_t file_type, uint8_t max_filenames, const char *permanent_name)
void SetColorCard(uint16_t x, uint8_t y, uint8_t color)
void InitProcesses(uint8_t num_of_processes, const uint8_t *process_table)
::uint8_t uint8_t
Definition: cstdint:21
disk_err_t GetBlock(tr_se_pair_t tr_se, disk_block_t *disk_block)
void SetNLQ(uint8_t *work_buf)
Definition: geos_types.h:57
void VerticalLine(uint16_t x, uint8_t top, uint8_t bottom, uint8_t pattern)
disk_err_t LdFile(dir_entry_t *dir_entry)
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)
void ImprintRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
disk_err_t GetOffPageTrSc(bool *no_geos_disk, tr_se_pair_t *border_block)
disk_err_t ReadFile(uint8_t *buffer, uint16_t length, tr_se_pair_t tr_se)
disk_err_t GetNxtDirEntry(dir_entry_t **dir_entry, bool *end_of_dir)
uint16_t GetSerialNumber(void)
uint16_t NormalizeX(uint16_t x)
disk_err_t OpenRecordFile(const char *file_name)
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)
disk_err_t ReadByteNext(uint8_t *value)
disk_err_t PreviousRecord(uint8_t *record_no, bool *is_empty)
disk_err_t FreeFile(const dir_entry_t *buffer)
::int8_t int8_t
Definition: cstdint:7
void PosSprite(uint8_t sprite_no, uint16_t x, uint8_t y)
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)
disk_err_t DeleteRecord(void)
void MoveData(const void *src, void *dest, uint16_t count)
void StopPrint(uint8_t *temp_buf, uint8_t *work_buf)
disk_err_t CloseRecordFile(void)
void InvertRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
const void uint16_t count
Definition: memory.h:58
const void * src
Definition: memory.h:57
disk_err_t GetDirHead(void)
void RestartProcess(uint8_t process_num)
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)
byte x
Definition: api.h:26
void DrawLine(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, bool recover, bool background)
byte byte y
Definition: api.h:26
bool IsMseInRegion(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
uint8_t SwapRAM(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count, uint8_t reu_bank)
void InvertLine(uint16_t left, uint16_t right, uint8_t y)
void PutString(uint16_t x, uint8_t y, const char *str)
void RecoverLine(uint16_t left, uint16_t right, uint8_t y)
uint8_t GetDimensions(uint8_t *cards_wide, uint8_t *cards_height)
struct tr_se_pair file_tr_se_tab_t[128]
Definition: geos_types.h:40
void SwapBData(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank, uint8_t a2_bank)
void HorizontalLine(uint16_t left, uint16_t right, uint8_t y, uint8_t pattern)
uint8_t DoBOp(uint8_t *addr1, uint8_t *addr2, uint16_t count, uint8_t a1_bank, uint8_t a2_bank, uint8_t mode)
void DoMenu(const menu_tab_t *menu_table, uint8_t selected_menu_no)
void ClearRam(void *memory, uint16_t count)
void(* vector)(void)
Definition: geos_types.h:25
disk_err_t NextRecord(uint8_t *record_no, bool *is_empty)
disk_err_t ReadBock(tr_se_pair_t block_ts, disk_block_t *block_buffer)
void BitmapUp(const uint8_t *bitmap, uint8_t card_left, uint8_t top, uint8_t card_width, uint8_t height)
disk_err_t WriteRecord(const uint8_t *data, uint16_t num_bytes)
uint8_t DoRAMOp(uint8_t *cbm_addr, uint8_t *reu_addr, uint16_t count, uint8_t reu_bank, uint8_t cmd)
disk_err_t SaveFile(file_header_block_t *header_block, uint8_t dir_page)
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)
void EnablSprite(uint8_t sprite_no)
void ToBasic(uint8_t *basic_cmd)
disk_err_t
Definition: geos_constants.h:525
disk_err_t RenameFile(const char *old_name, const char *new_name)
void SetColorMode(uint8_t clr_mode)
uint16_t PutChar(uint16_t x, uint8_t y, char ch)
disk_err_t EnterTurbo(void)
void BlockProcess(uint8_t process_num)
disk_err_t WriteFile(const uint8_t *buffer, tr_se_pair_t *blocks)
void ClearMouseMode(void)
void RecoverRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
void RstrFrmDialog(uint8_t icon_no)
disk_err_t PutDirHead(void)
Definition: geos_types.h:68
disk_err_t AllocateBlock(tr_se_pair_t block_addr)
uint8_t DoDlgBox(uint8_t *dlg_table)
void GraphicsString(const uint8_t *graph_string)
disk_err_t ExitTurbo(void)
disk_err_t ReadLink(tr_se_pair_t block_addr, uint8_t *buffer)
bool ChkDkGEOS(dir_header_t *dir_header)
geos_file_type_t
Definition: geos_constants.h:316
void RecoverAllMenus(void)
uint8_t AccessCache(uint8_t block_no, uint8_t *buffer, uint8_t mode, uint8_t *verify_result)
void StartMouseMode(uint16_t x, uint8_t y)
void PrintBuffer(const uint8_t *print_data, uint8_t *work_buf, const uint8_t *color_data)
disk_err_t Get1stDirEntry(dir_entry_t **dir_entry)
uint8_t GetColorCard(uint16_t x, uint8_t y)
disk_err_t LdApplic(dir_entry_t *dir_entry, uint8_t loadOptFlg, const char *disk_name, const char *data_file, uint8_t *load_addr)
disk_err_t ReadByteInit(tr_se_pair_t tr_se, disk_block_t *buffer, uint8_t *value)
void Sleep(uint16_t jiffies)
uint8_t VerifyRAM(const uint8_t *cbm_addr, const uint8_t *reu_addr, uint16_t count, uint8_t reu_bank)
disk_err_t LdDescAcc(dir_entry_t *dir_entry)
void PrintASCII(const char *print_data, uint8_t *work_buf)
void EnableProcess(uint8_t process_num)
void GetRealSize(char ch, uint8_t mode, uint8_t *width, uint8_t *height, uint8_t *baseline_offset)
void FreezeProcess(uint8_t process_num)
disk_err_t UpdateRecordFile(void)
void Rectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom)
bool TestPoint(uint16_t x, uint8_t y)
void GetPtrCurDkNm(disk_name_t buffer)
disk_err_t StartAppl(uint8_t loadOptFlg, const char *disk_name, const char *data_file, uint8_t *start_addr)
void UpdateMouse_128(void)
disk_err_t PointRecord(uint8_t record_no, uint8_t *new_record_no, bool *is_empty)
uint8_t StartPrint(uint8_t *work_buf)
uint8_t StartASCII(uint8_t *work_buf)
void PutDecimal(uint16_t value, uint16_t x, uint8_t y, uint8_t format)
const void uint16_t uint8_t mode
Definition: memory.h:58
int8_t CmpFString(char *src, char *dest, uint8_t count)
void DoPreviousMenu(void)
void ColorRectangle(uint16_t left, uint8_t top, uint16_t right, uint8_t bottom, uint8_t fbcolor)
disk_err_t FreeBlock(tr_se_pair_t tr_se)
int8_t CmpString(char *src, char *dest)
uint8_t FetchRAM(const uint8_t *reu_source, uint8_t *cbm_dest, uint16_t count, uint8_t reu_bank)
uint8_t FindBAMBit(tr_se_pair_t tr_se, uint8_t *bam_offset)
void CopyString(char *src, char *dest)
disk_err_t GetFHdrInfo(const dir_entry_t *dir_entry, tr_se_pair_t *tr_se, uint8_t **load_addr)
void UnfreezeProcess(uint8_t process_num)
void SetPattern(uint8_t pattern)