instructions rename and uninitialized memory error fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user