Assembler newbie here; please be gentle.

Given the following:
- r7 points to the input parm list
- r2 indexes the input parm list
I want to see if the first byte of the parm I am interested in is x'00'.

         l     r3,0(r2,r7)      r3 -> current parm
I can do this:
         clc   0(1,r3),=x'00'
         jne   delimited_string
Or I can do this:
         llc   r9,0(,r3)        r9 = parm byte 0
         clijne r9,x'00',delimited_string

How do I decide which is better?
The second one uses "more modern" instructions, and 1 extra byte, but no
literal.

Frank

Reply via email to