example
This commit is contained in:
14
examples/s.tasm
Normal file
14
examples/s.tasm
Normal 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
|
||||
Reference in New Issue
Block a user