|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
19 #define RECPM_MAIN_SCOPE
34 static void emulation_loop (
void )
41 char disasm_buffer[128];
78 int cpmprg_prepare_psp (
int argc,
char **argv )
80 memset(
memory + 8, 0, 0x100 - 8);
81 memset(
memory + 0x5C + 1, 32, 11);
82 memset(
memory + 0x6C + 1, 32, 11);
83 for (
int a = 0; a < argc; a++) {
85 write_filename_to_fcb(a == 0 ? 0x5C : 0x6C, argv[a]);
87 strcat((
char*)
memory + 0x81,
" ");
88 strcat((
char*)
memory + 0x81, argv[a]);
89 if (strlen((
char*)
memory + 0x81) > 0x7F)
90 return CPMPRG_STOP(1,
"Too long command line for the CP/M program");
97 static int load (
const char *
fn )
102 FATAL(
"Empty string for loading program.");
108 DEBUGPRINT(
"LOAD: trying to load program \"%s\", max allowed size = %d bytes." NL,
fn, tpa_size);
112 DEBUGPRINT(
"LOAD: Program loaded, %d bytes, %d bytes TPA remained free" NL,
size, tpa_size -
size);
116 memset(
memory + 8, 0, 0x100 - 8);
117 memset(
memory + 0x5C + 1, 32, 11);
118 memset(
memory + 0x6C + 1, 32, 11);
132 int main (
int argc,
char **argv )
134 int memtop = 0x10000;
162 DEBUGPRINT(
"System RAM size: %d Kbytes." NL, memtop >> 10);
void bdos_install(int addr)
int main(int argc, char **argv)
int z80_custom_disasm(int addr, char *buf, int buf_size)
void recpm_shutdown_callback(void)
int osd_init_with_defaults(void)
struct configdb_st configdb
void clear_emu_events(void)
int cpmfs_mount_drive(int drive, const char *dir_path, int dirbase_part_only)
int console_init(int width, int height, int zoom_percent, Uint8 *video_mapped, Uint8 *color_mapped, int sdlrenderquality)
void console_iteration(void)
void bios_install(int addr)
void conputs(const char *s)
void console_cursor_blink(int delay)