mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-06-07 08:14:48 +00:00
35 lines
1.4 KiB
Plaintext
Executable File
35 lines
1.4 KiB
Plaintext
Executable File
#help_index "Define;Char/Define"
|
|
|
|
U0 LoadDocDefines()
|
|
{
|
|
CZXE *zxe = mem_boot_base - sizeof(CZXE);
|
|
|
|
DefinePrint("DD_OS_NAME_VERSION", "ZealOS V%0.2f", sys_os_version);
|
|
DefinePrint("DD_ZEALOS_AGE", "%0.1f", (Now - Str2Date("9/1/2019")) / ToF64(1 << 32) / CDATE_YEAR_DAYS);
|
|
DefinePrint("DD_TEMPLEOS_AGE", "%0.1f", (Str2Date("8/11/2018") - Str2Date("8/1/2003")) / ToF64(1 << 32) / CDATE_YEAR_DAYS);
|
|
|
|
DefinePrint("DD_KERNEL", "%08X", zxe);
|
|
zxe(I64) += zxe->file_size - 1;
|
|
DefinePrint("DD_KERNEL_END", "%08X", zxe);
|
|
|
|
//$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.ZC,DD_BOOT_HIGH_LOC_DVD"$
|
|
|
|
$TR,"LineRep"$
|
|
$ID,2$DefinePrint("DD_ZEALOS_LOC","98,756");
|
|
$ID,-2$
|
|
DefinePrint("DD_MP_VECT", "%08X", MP_VECT_ADDR);
|
|
DefinePrint("DD_MP_VECT_END", "%08X", MP_VECT_ADDR + COREAP_16BIT_INIT_END - COREAP_16BIT_INIT - 1);
|
|
|
|
DefinePrint("DD_SYS_FIXED_AREA_BASE", "%08X", SYS_FIXED_AREA);
|
|
DefinePrint("DD_SYS_FIXED_AREA_END", "%08X", SYS_FIXED_AREA + sizeof(CSysFixedArea) - 1);
|
|
DefinePrint("DD_MEM_HEAP_BASE", "%08X", mem_heap_base);
|
|
DefinePrint("DD_MEM_HEAP_LIMIT", "%08X", mem_heap_limit);
|
|
DefinePrint("DD_MEM_MIN_MEG", "%dMeg", MEM_MIN_MEG);
|
|
DefinePrint("DD_UNCACHED_ALIAS", "%010X", dev.uncached_alias);
|
|
DefinePrint("DD_PHYSICAL_SPACE_END", "%010X", mem_physical_space - 1);
|
|
DefinePrint("DD_MAPPED_SPACE_END", "%010X", mem_mapped_space - 1);
|
|
DefinePrint("DD_JIFFY_HZ", "%dHz", JIFFY_FREQ);
|
|
}
|
|
|
|
LoadDocDefines;
|