Skip to content
AlexanderIbytPublic

About

what this PC tells about itself (read only) // // A bare-metal program: it boots from a disk image, collects information // from the hardware and shows it as a text report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

sysinfo

A read-only hardware report for BareMetal, written in ibyt. It looks at the computer and prints what it finds: CPU, memory, PCI devices, USB controllers, sound, storage, BIOS and SMBIOS data, video modes and more. It changes nothing on the computer.

  • About 3050 lines of ibyt. Only a few single asm lines are used, for instructions ibyt has no statement for: cpuid, rdtsc, port input (in) and CMOS access, plus the PIT timer lines and two small asm methodes that call the Table library.
  • Vendor, class and small name lists (housing, memory type, USB speed, power profile, ...) are kept in tables built with the Table library at program start, not in long if chains.
  • Every name is spelled out (Report.TextPosition, Cpu.LogicalProcessors, Registers.Stride, ...) and register labels ($work@Digits) tell what a register holds.
  • The compiler gives no warnings and the register check reports no hints.

Build

ibytCompiler Main.ibyt

This writes MyProgram.img (34304 bytes). Needs compiler 1.35 or newer, with the library folder next to Main.ibyt.

Run

Write MyProgram.img to a USB stick or a disk and boot from it, or try it in an emulator:

qemu-system-x86_64 -drive format=raw,file=MyProgram.img -serial stdio

Keys

  • Any key: next page
  • Esc: stop paging
  • At the end: S saves the report as SYSINFO0.TXT on a FAT drive, any other key restarts the computer.

License

MIT, see LICENSE.

About

what this PC tells about itself (read only) // // A bare-metal program: it boots from a disk image, collects information // from the hardware and shows it as a text report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors