Mail Archives: djgpp/1998/11/21/22:02:08
This is a multi-part message in MIME format.
--------------1D5444CE2DBD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Help. My program just dosent compile with DJGPP. It's an assembly file.
I got it from Dan Gookin( it may have a link on his web page at
http://www.c-for-dummies.com, just in case there is some copyright
notice ). I renamed it from hellow.c to hellow.s and tried to make an
exe with as.exe. But it gives these messages:
hellow.s: Assembler messages:
hellow.s:1: Error: no such 386 instruction: `void'
hellow.s:2: Error: Rest of line ignored. First ignored character is `{'.
hellow.s:3: Error: no such 386 instruction: `char'
hellow.s:5: Error: invalid character '_' in opcode
hellow.s:6: Error: invalid character '_' in opcode
hellow.s:7: Error: invalid character '_' in opcode
hellow.s:8: Error: Rest of line ignored. First ignored character is `}'.
hellow.s:8: Error: Can't open hellow.exe for reading.
hellow.s:8: hellow.exe: No such file or directory (ENOENT)
In what ways can I solve the problem ? The s file and c file are given
below.
Thanks
SS
My email address is skt AT xdtech DOT com
--------------1D5444CE2DBD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hellow.c"
void main()
{
char *string = "Hello, Weirdo!$";
_asm mov dx,string
_asm mov ah,9
_asm int 21h
}
--------------1D5444CE2DBD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hellow.s"
void main()
{
char *string = "Hello, Weirdo!$";
_asm mov dx,string
_asm mov ah,9
_asm int 21h
}
--------------1D5444CE2DBD--
- Raw text -