www.delorie.com/archives/browse.cgi | search |
From: | Jens Vaasjo <jvaasjo AT gpu DOT srv DOT ualberta DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: 32 bit registers |
Date: | Wed, 25 Dec 1996 18:27:46 -0700 |
Organization: | University of Alberta, Edmonton, Canada |
Lines: | 24 |
Message-ID: | <32C1D492.D47@gpu.srv.ualberta.ca> |
References: | <59cs4f$58k AT nr1 DOT ottawa DOT istar DOT net> <19961224 DOT 142048 DOT 4751 DOT 1 DOT chambersb AT juno DOT com> |
NNTP-Posting-Host: | async14-3.remote.ualberta.ca |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Benjamin D Chambers wrote: > > Thanx to everyone who suggested methods of swapping words in a dword... > The catch is, I didn't really need to know :) > My original question was if there were a way to load a word into the high > word of a register. > > Thanx anyways, though, just proves charity lives on :) > > ..Chambers I think u just load it into the low word and shll (shift left it). let say u wanted to put 5 in the high byte of ecx. asm("movl $5,%cx\n shll $16,%ecx\n " : : :"ecx","cc" ); Jens.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |