From: Bob Berkawitz Newsgroups: comp.os.msdos.djgpp Subject: beginner inline assembly problem Date: Mon, 15 Jun 1998 19:59:27 -0600 Organization: Migros-Genossenschafts-Bund Lines: 12 Message-ID: <3585D17E.4F15@mailexcite.com> Reply-To: oonly AT mailexcite DOT com NNTP-Posting-Host: 1cust151.tnt13.dfw5.da.uu.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk When I try to compile this I get the this error "13:Error: operands given don't match any known 386 instruction" Here is the code: int x; void main() { asm("movw 5, %ax\n\t" "movw %ax, $_x"); } What am I doing wrong? Thanks in advance.