www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/17/22:57:05

From: charlton AT the-hermes DOT net (David Charlton)
Newsgroups: comp.os.msdos.djgpp
Subject: Quick inline asm question...
Date: 17 Sep 1996 18:40:34 GMT
Organization: Hermes Internet Service, Inc.
Lines: 10
Message-ID: <51mrb2$o5f@news.cais.com>
NNTP-Posting-Host: athena-25.the-hermes.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

	Okay, I have a quick question, if it's really easy or stupid 
please don't flame me... anyway, suppose I wanted to add one of the 
16-bit registers to a 32-bit register (this is for a basic graphics 
routine) -- how would I do that? I've tried "addw %%ax, %%eax", and "addl 
%%ax, %%eax", but it doesn't work. I have a feeling it should be simple, 
but if it's simple it isn't obvious (to me) ;)... so what do I do?
	Thanks in advance...

David

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019