uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

system.h (706B)


      1 /*
      2 Copyright (c) 2022 Devine Lu Linvega, Andrew Alderwick
      3 
      4 Permission to use, copy, modify, and distribute this software for any
      5 purpose with or without fee is hereby granted, provided that the above
      6 copyright notice and this permission notice appear in all copies.
      7 
      8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
      9 WITH REGARD TO THIS SOFTWARE.
     10 */
     11 
     12 #define SYSTEM_VERSION 2
     13 
     14 #define RAM_PAGES 0x10
     15 
     16 extern char *boot_rom;
     17 
     18 int system_error(char *msg, const char *err);
     19 void system_reboot(Uxn *u, char *rom, int soft);
     20 void system_inspect(Uxn *u);
     21 int system_init(Uxn *u, Uint8 *ram, char *rom);
     22 
     23 Uint8 system_dei(Uxn *u, Uint8 addr);
     24 void system_deo(Uxn *u, Uint8 *d, Uint8 port);