the two instructions
AHI 1,-1
AHI 1,X'FFFF'
-
if they are compiled produce coding
00000000 90EC D00C 0000000C 5 STM 14,12,12
(13)
00000004 A71A FFFF FFFFFFFF 6 AHI 1,-1
00000008 A71A FFFF 0000FFFF 7 AHI 1,X'FFFF'
the development in the compilation of any immediate operand depends on the
type of instruction in which it is used and how it is interpreted by the
instruction itself.
with reference to: principle of operation v2r2:
for example considering the move immediate instructions we have:
For MOVE (MVC), each operand is processed left to right. When the operands
overlap, the result is obtained as if the operands were processed one byte
at a time and each result byte were stored immediately after fetching the
necessary operand byte.
For MOVE (MVI, MVIY), the first operand is one byte in length, and only one
byte is stored.
For MOVE (MVGHI, MVHHI, and MVHI,), the second operand is treated as a
16-bit signed integer, signextended as necessary,
and placed in the first-operand location.
The first operand is two, four, or eight bytes for MVHHI, MVHI, and MVGHI,
respectively.
Aldo Crosio
tel: 051-4991812 /3488858416
fax: 051-6255762
CSE Consorzio Servizi Bancari
Società consortile a responsabilità limitata
Via Emilia n. 272
40068-San Lazzaro di Savena (BO)
Ai sensi del D.Lgs. 196/2003 si precisa che le informazioni contenute nel presente messaggio, corredato dei relativi allegati, sono strettamente riservate ed a uso esclusivo dei destinatari. Qualora Le fosse pervenuto per errore, La invitiamo ad eliminarlo immediatamente, dandocene gentilmente comunicazione. Grazie.
------------ *** ------------ *** ------------ *** ------------
LCLA &IIHFARG
&IIHFARG SETA SLL(X'01', 16)+X'2345'
IIHF R00,&IIHFARG
Being able to code the SETA argument in the instruction would be nicer:
IIHF R00, SLL(X'01', 16)+X'2345'
Have not tried either of those in an actual assembly yet, just guessing here.
Peter
The ability to specify:
IIHF R00,H'12345,0'
Kludge for this is:
IIHF R00,12345*65536
which is ugly, while:
IIHL R00, 809041920
is even uglier!
Robert Ngan
sas
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.