I do not know why there is both a main endp AND an end main but that's the way it works. This should give you a simple one character output.
Please visit my website. I will be taking machine organization/assembler language next fall. I have my own message board. We can help each other prepare.
: Hi,
: I have buyed TASM for DOS. Just one small problem
: I don't know where to start, Can someone give me some help . I have programmed in C before.
Comments
: I have buyed TASM for DOS. Just one small problem
: I don't know where to start, Can someone give me some help . I have programmed in C before.
: Greeting:Robert
: (excuse my english)
In my opinion the best way to learn asm is reading
a book on the subject. I read a book called
"mastering turbo assembler" by tom swan. It's a
bit old, but it gives a good understanding of the
language. There is a book online called
"the art of assembly language", it's huge but
from what i've read so far it's good. You can
find it at http://webster.cs.ucr.edu/
.model small
.stack
.data
.code
main proc
mov ax,@data
mov ds,ax
mov ah,2
mov dl,'A'
int 21h
mov ah,4cooh
int 21h
main endp
end main
I do not know why there is both a main endp AND an end main but that's the way it works. This should give you a simple one character output.
Please visit my website. I will be taking machine organization/assembler language next fall. I have my own message board. We can help each other prepare.
: Hi,
: I have buyed TASM for DOS. Just one small problem
: I don't know where to start, Can someone give me some help . I have programmed in C before.
: Greeting:Robert
: (excuse my english)
URL:http://www.geocities.com/SiliconValley/Monitor/4562
: I have buyed TASM for DOS. Just one small problem
: I don't know where to start, Can someone give me some help . I have programmed in C before.
: Greeting:Robert
: (excuse my english)
Here is another good tutorial for begginers, with almost all of it's examples in TASM.
http://udgftp.cencar.udg.mx/ingles/tutor/Assembler.html