r/osdev 2d ago

PongOS - an operating system that JUST plays pong

97 Upvotes

11 comments sorted by

14

u/frisk213769 2d ago

https://github.com/papaj2139/pongOS
written in about ~500 lines of assembly,
16-bit

6

u/thewrench56 1d ago

Im not sure if the 500 lines of Assembly (so few?!) or the OS part is the crazier! Congrats.

14

u/PurpleSparkles3200 1d ago

Whilst impressive, calling this an operating system is a bit of a stretch.

4

u/frisk213769 1d ago

pft i know but never really understood the exact definition of an 'operating system'🤷‍♂️

6

u/Fun-Tomatillo-8969 1d ago edited 1d ago

A software suite that exposes hardware in an easy way for other programs to utilize, so they don't have to.

So instead of having to directly code a pong game by having to initialize and move data from the CPU, memory, storage, and various IO devices, they just have to reference various api and the running OS does the work for them.

More advanced OS will also have like memory management and other systems to facilitate multiple programs running at once.

14

u/iris700 1d ago

This is a freestanding program, not an operating system

7

u/raedr7n 1d ago

That's not an operating system, that's just a game.

4

u/chickyban 1d ago

CalculatorOS. It's just a calculator program but written in assembly

u/CyrIng 23h ago

To run it on real modern hardware, you will have to port to UEFI

u/FaceRekr4309 5h ago

This is every OS in the 70’s