Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > PACK with expli...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 273 of 328
Post > Topic >>

PACK with explicit zero length for second operand

by bo774@[EMAIL PROTECTED] (Kelly Bert Manning) Mar 22, 2006 at 03:40 AM

does that end up unpacking a single byte at the specified displacement?

(padded with zeros to fill out the length specified for the right operand)

	CH	R14,=H'2'	TOO MANY CHARS?	
	BL	PARM5D	NO, IT'S OKAY	
	LA	R14,2	YES, SET R14 TO 2	
	SPACE 1	
PARM5D	DS	0H	
	BCTR	R14,0	R14 = HEX LTH	
	EX	R14,PARM5EX	PACK WAIT TIME	
	CVB	R15,DWORD	R15 = SECONDS TO WAIT	
	MH	R15,MULTSEC	CONVERT TO TIMER UNITS	
	ST	R15,WAITTIME	SAVE IT FOR STIMER	
	B	NEXTPARM	GO CHECK FOR ANOTHER PARM 
	SPACE 1	
PARM5EX	PACK	DWORD+6(2),0(0,R15) USE 1ST 2 BYTES ONLY	
	SPACE 1                                            


R14 gets ORed with DWORD=6(2) doesn't it?

I parse the second operand as an explicit length of zero, giving an
effective length of 1 byte for the source, 1 character digit.

If R14 has a value of 2 wouldn't the effective length of the target field
be 3 bytes, or 5 packed decimal digits and a packed sign? The source digit
and sign would end up 1 byte beyond the end of DWORD.




 7 Posts in Topic:
PACK with explicit zero length for second operand
bo774@[EMAIL PROTECTED]   2006-03-22 03:40:58 
Re: PACK with explicit zero length for second operand
"John Small" &l  2006-03-22 11:28:07 
Re: PACK with explicit zero length for second operand
glen herrmannsfeldt <g  2006-03-22 04:35:47 
Re: PACK with explicit zero length for second operand
"John Small" &l  2006-03-23 12:08:25 
Re: PACK with explicit zero length for second operand
bo774@[EMAIL PROTECTED]   2006-03-23 15:10:47 
Re: PACK with explicit zero length for second operand
"John Small" &l  2006-03-24 11:43:42 
Re: PACK with explicit zero length for second operand
"robin" <rob  2006-03-26 13:03:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 16:53:37 CDT 2008.