chrisphillipsuk
Technical User
Hi all
I am trying to start to learn Assembly language, but after following a few tutorials on the net I am having big trouble with just printing a string! COIuld you please have a look at the basic code below and let me know why it doesn't work. I am using a86, and the programme compiles ok, but when I run it there is just a load of rubbish printed to the screen. Thanks in advance
I am trying to start to learn Assembly language, but after following a few tutorials on the net I am having big trouble with just printing a string! COIuld you please have a look at the basic code below and let me know why it doesn't work. I am using a86, and the programme compiles ok, but when I run it there is just a load of rubbish printed to the screen. Thanks in advance
Code:
string db "Hello World.$"
mov ax,SEG string
mov ds,ax
mov dx,OFFSET string
mov ah,09h
int 21h
mov ax,4c00h
int 21h