delorie.com/archives/browse.cgi | search |
From: | Bob Berkawitz <oonly AT mailexcite DOT com> |
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 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |