commit 5cf236395aa88dc8f443b83e7a9b79e34a943b8e from: Benjamin Stürz date: Mon Oct 07 14:54:27 2024 UTC sys: add missing user.asm commit - ae4ed8c57bb2ebe8bcebe90272ba3c9e526f21e1 commit + 5cf236395aa88dc8f443b83e7a9b79e34a943b8e blob - /dev/null blob + e9d5ff784182708cddb77c9238c4083a6b0a02f9 (mode 644) --- /dev/null +++ sys/user.asm @@ -0,0 +1,15 @@ +[org 0] +[cpu 286] +[bits 16] + +_start: + xor ax, ax ; interrupt nr (print) + lea bx, [hello] ; 1st argument + lea cx, [hello.end - hello] ; 2nd argument + int 0x80 + + jmp $ + +hello: + db "Hello from userspaace!", 10 +.end: