delorie.com/archives/browse.cgi | search |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: in-line assembly syntax for GNU ASM/DJGPP |
Date: | 29 Aug 2001 07:38:03 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 27 |
Message-ID: | <9mi64r$8r5$2@antares.lu.erisoft.se> |
References: | <09D1E9BD9C30D311919200A0C9DD5C2C03E08A5C AT mcaexc01 DOT msj DOT maxtor DOT com> |
NNTP-Posting-Host: | merope.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I'm not an assebly guy so check that what I say is correct. Cappellini, Tony (Tony_Cappellini AT maxtor DOT com) wrote: : Would someone help me with the correct asm syntax for DJGPP for the : following Intel format instructions : mov AX, OFFSET count movw $count, %%ax : lea AX, count This one is hard I think. Perhaps db ADDRESS_OR_OPERAND_SIZE_PREFIX lea $count, eax will do it. Not sure which size prefix you should use. Note that the above sequence doesn't make much sense as your in 32-bit protected mode. Just why would you want to lea a 16-bit register? Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |