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

To: NCjim
Darn, my very first computer was the IBM 360!

But MVC DDD(LL,B),DDD(B) has me rather stumped.

When prorammers invented a decent assembly language, we changed the world!

71 posted on 03/14/2008 5:01:44 PM PDT by Hunble
[ Post Reply | Private Reply | To 69 | View Replies ]


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 ]

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