TCPU/examples/stdout.tasm
2025-04-18 02:46:46 +05:00

17 lines
281 B
TASM

/*
"hello world" program in my assembly language
*/
.data:
// named array of 8-bit values
const8 msg "Hello, World!\n"
.main:
movc al 1; // sys_write
movc ah 1; // stdout
movc rbx @msg; // address of msg data
movc ecx #msg; // size of msg data
sys
movc ax 0
exit