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
asmlines 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
Tablelibrary at program start, not in longifchains. - 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.
ibytCompiler Main.ibyt
This writes MyProgram.img (34304 bytes). Needs compiler 1.35 or newer, with the library folder next to Main.ibyt.
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
- Any key: next page
- Esc: stop paging
- At the end:
Ssaves the report asSYSINFO0.TXTon a FAT drive, any other key restarts the computer.
MIT, see LICENSE.