<?phpnamespace App\Alis;/** File-scope variables of alis/src/alis.c (MIT, Olivier Huguenot, Vadim Kindl). */final class AlisVars{ /** C: u32 alis_arena_size — set by the native memory pre-flight; 0 = preferred tier */ public static int $alis_arena_size = 0; /** C: const char *alis_fatal — set to stop the VM with a message shown after shutdown */ public static ?string $alis_fatal = null; /** C: sAlisError errors[] — [errnum, name, descfmt] */ public const errors = [ [C::ALIS_ERR_FOPEN, 'fopen', "Failed to open file %s\n"], [C::ALIS_ERR_FWRITE, 'fwrite', "Failed to write to file %s\n"], [C::ALIS_ERR_FCREATE, 'fcreate', "Failed to create file %s\n"], [C::ALIS_ERR_FDELETE, 'fdelete', "Failed to delete file %s\n"], [C::ALIS_ERR_CDEFSC, 'cdefsc', ''], [C::ALIS_ERR_FREAD, 'fread', "Failed to read file %s\n"], [C::ALIS_ERR_FCLOSE, 'fclose', 'Failed to close file'], [C::ALIS_ERR_FSEEK, 'fseek', "Failed to seek in file %s\n"], ]; /** Virtual accumulator origin, below every game's basemem (host byte order cells). */ public static int $kAccOrg = 0x19c00; public static int $kAccOrgV6 = 0x22880; public static int $kVirtualRAMSize = 0xffff; /** SPRITE_VAR touches at most basesprite (0x8000) + finsprit (0xFFFF) + 0x30 bytes; 128 KB covers it. */ public static int $kSpriteMemSize = 0x20000;}