Better HN
topnewbestaskshowjobs
Log inSign up

krustowski

115 karma · joined Mar 27, 2025 (1y ago) · 17 submissions

Submissions

comment 1y ago · link · parent

let's resurrect these days with open.mp!

comment 1y ago · link · parent

How about the event loop in its completeness?

comment 1y ago · link · parent

Sort of, but IMO that module(s) is just a wrapper for video buffer.

comment 1y ago · link · parent

You are right, it goes way ahead the first iteration. I call it DOS-like because of its resemblance to the Text mode-only operating systems (and to MS-DOS especially). On the other hand, it shares very little as the architecture, command set, or hardware utilization approach are concerned when compared to MS-DOS.

comment 1y ago · link · parent

I am not at the moment. The goal is to keep this iteration in English for now. The first iteration was in Czech in the beginning though.

comment 1y ago · link · parent

Well, the point is to experiment with Rust no_std+no_main environment while trying to educate myself on how the things work under the hood. The project itself is part "just" a rewritten system (from C to Rust), and part an enhancement of such system furthermore. It lacks the external program execution though yet.

comment 1y ago · link · parent

NGL, the codebase of the first iteration is pretty much a mess. It had been written in my mid-teenage years, so the C code is not very consistent across the project. There is a filesystem prototype written in Go as well... Also, it is quite complex to even compile RoureXOS: it needs Borland TCC and TASM (ca 1989 btw) to properly build a 16bit executable(s). It is feasible to compile it using DOSBox though. Maybe some day I could open source that one repository too.

comment 1y ago · link · parent

The x86 arch is used because this system iteration derives from the first one, which relies on BIOS interrupts and inline assembly in Turbo C. I am not trying to mimic (MS-)DOS exclusively, but both systems are highly inspired by it.

IMO multiple archs could be supported as Rust compiler allows the target arch specification, so one would build a specific target before the build itself.

comment 1y ago · link · parent

For FAT12, it reads the first sector (0 or bootsector) of the floppy provided to gather information like bytes per sector, reserved sectors count, LBA of the root directory, etc.

comment 1y ago · link · parent

Booting from an EFI system partition has not been tested yet. FAT12 is the only filesystem (ok, there is a memdisk implementation, but it won't work now) supported, so GPT is not supported at the moment too (yet). Kinda aiming for FAT32 implementation to be the very next implemented (flash disks are usually FAT32 iirc). Not sure about the last question: the OS utilizes/directly writes to the VGA buffer in memory, the provided resolution is 80x25 by GRUB.

comment 1y ago · link · parent

Afaik there is a 'DIR' command in MS-DOS. Anyway, what would be a better command to list a directory? I could think of 'ls' maybe

comment 1y ago · link · parent

What a challenge! Need to implement some interrupts it seems then, to provide an API for filesystem and so... Thank you for such idea

comment 1y ago · link · parent

You are right. The first iteration however is 16bit and is very close to MS-DOS in terms of compatibility. Moreover, any OS that can handle simple disk I/O ops could be considered a DOS system too, innit?

14.

Show HN: A DOS-like hobby OS written in Rust and x86 assembly(github.com ↗)

207 points · by krustowski · 1y ago · 60 comments

comment 1y ago · link · parent

I didn't really think this through like that, good point. Thanks for the link, will consider reposting it later

https://github.com/krustowski/rou2rexOS

16.

A second iteration of my DOS-like hobby OS(blog.vxn.dev ↗)

3 points · by krustowski · 1y ago · 2 comments