Boot Sector Constants

Constant Value Description
0x7C00 0x7C00 BIOS boot sector load address
0xAA55 0xAA55 Boot sector signature (bytes 510-511)
0x1000:0x0000 Segment:Offset Kernel entry point address

BCD Constants

Constant Value Description
BCD_SIGNATURE "FWBCD\0\0\0" BCD file signature (8 bytes)
BCD_VERSION 1 BCD format version

Kernel Constants

Constant Value Description
KERNEL_MAGIC 0x46524545574F524C Kernel magic number ("FREEWORL")
KERNEL_VERSION_MAJOR 0 Kernel major version
KERNEL_VERSION_MINOR 1 Kernel minor version

Shell Constants

Constant Value Description
MAX_INPUT 1024 Maximum input line length
MAX_ARGS 64 Maximum number of command arguments
COLOR_BLUE "\033[34m" ANSI blue color code
COLOR_WHITE "\033[37m" ANSI white color code
COLOR_RESET "\033[0m" ANSI reset color code

Desktop Constants

Constant Value Description
DESKTOP_WIDTH 1920 Desktop window width (pixels)
DESKTOP_HEIGHT 1080 Desktop window height (pixels)
TASKBAR_HEIGHT 40 Taskbar height (pixels)
TASKBAR_Y 1040 Taskbar Y position

Static Variables

BCD Module

  • bcd_header (bcd_header_t*): Pointer to BCD header
  • bcd_entries (bcd_entry_t*): Pointer to BCD entries array

HAL Module

  • hal_info (hal_info_t): Static HAL information structure

Kernel Module

  • kernel_info (kernel_info_t): Static kernel information structure

Window Handle Format

Window handles use the format:

FW_HWND_<random_id>

Where <random_id> is a random alphanumeric string generated using:

Math.random().toString(36).substr(2, 9)