Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Hunble
The instruction is a storage-to-storage instruction, capable of moving up to 256 bytes from the storage location at the address specified by the second operand to the storage location at the address specified by the first operand.

Storage is fetched one byte at a time from left to right. Knowing this, back when storage was at more of a premium than processor cycles, you could set 256 bytes of storage to blanks with two instructions:

MVI 0(R2),C' '
MVC 1(255,R2),0(R2)

Kind of grows on you, doesn't it? :-)

77 posted on 03/14/2008 5:18:18 PM PDT by NCjim (The more I use Windows, the more I love UNIX)
[ Post Reply | Private Reply | To 71 | View Replies ]


To: NCjim
MVI 0(R2),C' '

MVC 1(255,R2),0(R2)

Now THAT I recognized!

79 posted on 03/14/2008 5:23:28 PM PDT by Hunble
[ Post Reply | Private Reply | To 77 | View Replies ]

To: NCjim
On the right rear of every M1 Abrams tank, you will see a little tube sticking up.

We were asked by the U.S. Army to invent a method of measuring the wind speed and direction, with no moving parts.

The three of us invented that instrument!

That is what I have done for the last 35 years as a software engineer. I make things happen, even if nobody will ever know my name.

81 posted on 03/14/2008 5:33:18 PM PDT by Hunble
[ Post Reply | Private Reply | To 77 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson