From: gs AT xdtech DOT com Message-ID: <3655FEA8.15BC@xdtech.com> Date: Sat, 21 Nov 1998 05:13:37 +0530 X-Mailer: Mozilla 2.0 (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Assembly X-URL: file:///C|/srikanth/my_compiler/djgpp_help/faq/djgppfaq.html#Totally lost Content-Type: multipart/mixed; boundary="------------1D5444CE2DBD" Reply-To: djgpp AT delorie DOT com 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--