2022-01-05 08:28:22 -05:00
|
|
|
/*
|
|
|
|
Copyright (c) 2022 Devine Lu Linvega, Andrew Alderwick
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
WITH REGARD TO THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2023-08-08 17:13:07 -04:00
|
|
|
#define SYSTEM_VERSION 1
|
|
|
|
#define SYSTEM_DEIMASK 0x0000
|
2023-08-16 23:46:24 -04:00
|
|
|
#define SYSTEM_DEOMASK 0xff08
|
2023-01-28 17:45:31 -05:00
|
|
|
|
2023-08-08 17:13:07 -04:00
|
|
|
#define RAM_PAGES 0x10
|
2023-04-17 00:13:50 -04:00
|
|
|
|
2023-08-15 21:53:51 -04:00
|
|
|
extern char *boot_rom;
|
|
|
|
|
2023-08-17 12:25:24 -04:00
|
|
|
void system_connect(Uxn *u, Uint8 device, Uint8 ver, Uint16 dei, Uint16 deo);
|
2023-08-15 22:19:06 -04:00
|
|
|
void system_reboot(Uxn *u, char *rom, int soft);
|
|
|
|
void system_inspect(Uxn *u);
|
2023-08-17 12:25:24 -04:00
|
|
|
int system_version(Uxn *u, char *emulator, char *date);
|
2023-04-17 14:03:11 -04:00
|
|
|
int system_error(char *msg, const char *err);
|
2023-08-15 19:06:29 -04:00
|
|
|
int system_init(Uxn *u, Uint8 *ram, char *rom);
|
2023-08-15 22:19:06 -04:00
|
|
|
|
2023-04-17 00:13:50 -04:00
|
|
|
void system_deo(Uxn *u, Uint8 *d, Uint8 port);
|