This commit is contained in:
2025-01-20 22:52:44 +05:00
parent f710aa4199
commit 5c9197436f
4 changed files with 28 additions and 8 deletions

14
examples/s.tasm Normal file
View File

@@ -0,0 +1,14 @@
/*
"hello world" program in my assembly language
*/
// named data array
c8 msg "Hello, World :3\0"
push ax 1; // sys_write
push bx 1; // stdout
push cx @msg; // address of msg data
push dx #msg; // size of msg data
sys
push ax 0
exit