Article View: comp.os.msdos.programmer
Article #7231Re: clearing registers
From: Andy Vaught
Date: Fri, 21 Jun 1991 22:49
Date: Fri, 21 Jun 1991 22:49
17 lines
1174 bytes
1174 bytes
storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes:
>
> Is there any dedicated instruction in the 8088 instruction set that will
> perform a clear on a register or memory location
>
Yes-- and its even more general than simply a clearing a memory location,
you can write a constant to a memory address without worrying about
registers. For example,
mov [WORD 2], 3456
Is perfectly legal. This is an often overlooked 80x86 addressing mode.
------------------------------------------------------------------
Andy Vaught (Fuzzy Andy) :: C Code. C Code Run. Run C code, Run...
Grad Student on Vacation :: before I whip out my 12-Gauge
andy@bluemoon.uucp :: Dynamic Debugging Tool!
Technical Details
Message-ID:
<LLyw41w164w@bluemoon.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!n8emr!bluemoon!andyReferences:
<1991Jun21.031233.11058@cs.mcgill.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!n8emr!bluemoon!andy From: andy@bluemoon.uucp (Andy Vaught) Newsgroups: comp.os.msdos.programmer Subject: Re: clearing registers Message-ID: <LLyw41w164w@bluemoon.uucp> Date: 21 Jun 91 22:49:44 GMT References: <1991Jun21.031233.11058@cs.mcgill.ca> Sender: bbs@bluemoon.uucp (BBS Login) Organization: Blue Moon BBS ((614) 868-998[0][2][4]) Lines: 17