-
February 13th, 2002, 06:06 AM
#11
hello cheeseball i just tried out the example which u specified in your tutorial...
well i tried out ...
-----------------------code-------------------
.model small
.data
db msg "Hello everyone!", "$" ;message we are storing (msg)
.code
main proc
mov ax,SEG msg ;move the segment address of msg into ax
mov dx,OFFSET msg ;move the offset of msg into ax
mov ds, ax ;mov the SEG of msg into DS
mov ah,09h ;calling function 09h
int 21h ;of interrupt 21h (this displays the string stored in msg)
mov ax,4c00h ;put 4c00h into ax
int 21h ;interrupt 21h, return to DOS
main endp
end main
----------------------------------------
but on assembling it with masm it is giving me following errors...
----------------- errors----------------
Microsoft (R) Macro Assembler Version 6.11d
Copyright (C) Microsoft Corp 1981-1995. All rights reserved.
Assembling: try.asm
try.asm(8) : error A2006: undefined symbol : msg
try.asm(9) : error A2006: undefined symbol : msg
try.asm(4) : error A2206: missing operator in expression
-----------------------------------------
requesting to pls help me...
thanking u ....
intruder...
A laptop, internet connection and beer.
-
February 13th, 2002, 06:22 AM
#12
You have now offically found a typo in my code, (Notice I believe I said I didn't try to compile it?), the .data section should be
msg db
-
February 13th, 2002, 06:22 AM
#13
You have now offically found a typo in my code, (Notice I believe I said I didn't try to compile it?), the .data section should be
msg db "string$"
Sorry about that......The code in the second tutorial was checked and does compile ok on masm version 5.0-6.14.
Cheeseball
-
February 13th, 2002, 06:34 AM
#14
...hey thanks for that... i read your second tutorial also...it is really a great job....
thanks...i will correct ..what u specified and try to compile....
thanks for the help..
intruder...
A laptop, internet connection and beer.
-
April 9th, 2002, 12:28 PM
#15
Junior Member
Yeah !!! great tutorial ....finally a step by step tutorial
The best because it's for a dummy like me
-
April 9th, 2002, 02:37 PM
#16
Junior Member
I learn 80x86 assembly with NASM,a totally free stuff,available from this site:
http://www.octium.net/nasm/
Syntax is similar with MASM.The nice bit of NASM is it gots an good editor, also it is available in Linux,I am not sure MASM does. So could anyone say something about NASM and MASM ?
nan
-
March 27th, 2006, 07:21 AM
#17
Junior Member
hello cheesy!
that was ful of buggies,can u fix them or shall i send you them
iam on the edge for your tutorials pls get it soon ....
-
March 27th, 2006, 08:44 AM
#18
Are you for real !!!!
you have been here [allegedly] for coming on FIVE years, and THIS is your idea of a post ???
poor grammar and syntax
and the thread is four YEARS old
why didn't you reply THEN
you 'were' here??
registered Jul 2001 !!!!
when did JP register
so now I'm in my SIXTIES FFS
WTAF, how did that happen, so no more alterations to the sig, it will remain as is now
Beware of Geeks bearing GIF's
come and waste the day :P at The Taz Zone
-
March 27th, 2006, 08:47 AM
#19
Now, Now Foxy.. no need to blast the user.. however, for future reference please do not make posts in threads this old. Thanks!
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
|
|