|
-
Apr 18th, 2006, 10:03 PM
#1
Thread Starter
Frenzied Member
which assembler to use?...
there are so many and so far, I can't find one that could compile these codes:
Code:
.model small
.stack
.data
message db "Hello world, I'm learning Assembly !!!", "$"
.code
main proc
mov ax,seg message
mov ds,ax
mov ah,09
lea dx,message
int 21h
mov ax,4c00h
int 21h
main endp
end main
i tried it with masm32 and it won't compile. Any suggestion for assemblers that would compile this code, or how to make this compile in masm32. I would be fine with 16-bit types. I just wanna learn the basics.
-
Apr 19th, 2006, 03:15 PM
#2
Re: which assembler to use?...
What error message(s) are you getting?
-
Apr 19th, 2006, 03:20 PM
#3
Re: which assembler to use?...
That's because the tutorial you're using uses 8086 encoding:
 Originally Posted by ASm Tutorial
Please note, that I explain 8086 assembly coding. That means NO 32-bit registers and instructions and NO protected-, real- and virtual 86 mode for now.
He uses TASM 3.2 throughout the tutorial:
http://www.ticalc.org/pub/win/asm/
-
Apr 19th, 2006, 04:06 PM
#4
Thread Starter
Frenzied Member
Re: which assembler to use?...
I used tasm32 with the code above, and still no success. I'm guessing it may be my command line:
tasm32 hello.asm
it gives me 24 errors. Could someone give me the exact command lines to make this code run and actually output "hello world".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|