instructions rename and uninitialized memory error fix

This commit is contained in:
2025-02-12 14:27:50 +05:00
parent 715a2cd82e
commit a69d68f69c
8 changed files with 25 additions and 19 deletions

View File

@@ -4,13 +4,13 @@
.data:
// named array of 8-bit values
const8 msg "Hello, World :3\0"
const8 msg "Hello, World :3\n\0"
.main:
push ax 1; // sys_write
push bx 1; // stdout
push cx @msg; // address of msg data
push dx #msg; // size of msg data
movc ax 1; // sys_write
movc bx 1; // stdout
movc cx @msg; // address of msg data
movc dx #msg; // size of msg data
sys
push ax 0
movc ax 0
exit