🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7211

Re: clearing registers

#7211
From: Arthur Rubin
Date: Fri, 21 Jun 1991 15:44
20 lines
1030 bytes
In <1991Jun21.031233.11058@cs.mcgill.ca> 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

>ie (a la PDP 11)

>CLR CX
>CLR AH
>CLR MEMORY_LOCATION

>So far, all I've seen is XOR AH,AH; MOV CX, 0; and that's about it.

What's wrong with 
MOV WORD PTR MEMORY_LOCATION, 0
--
2165888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
a_rubin@dsg4.dse.beckman.com (work)
My opinions are my own, and do not represent those of my employer.
Technical Details
Message-ID: <a_rubin.677519077@dn71>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!orion.oac.uci.edu!beckman.com!dn71!a_rubin
References: <1991Jun21.030948.10951@cs.mcgill.ca> <1991Jun21.031233.11058@cs.mcgill.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!orion.oac.uci.edu!beckman.com!dn71!a_rubin
From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin)
Newsgroups: comp.os.msdos.programmer
Subject: Re: clearing registers
Message-ID: <a_rubin.677519077@dn71>
Date: 21 Jun 91 15:44:37 GMT
References: <1991Jun21.030948.10951@cs.mcgill.ca> <1991Jun21.031233.11058@cs.mcgill.ca>
Lines: 20
Nntp-Posting-Host: dn71.dse.beckman.com