Path: 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: 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 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!