Operating System - HP-UX
1832343 Members
2944 Online
110041 Solutions
New Discussion

HPPA assembly ADDI nullification

 
RATEFIARIVONY
Occasional Advisor

HPPA assembly ADDI nullification

Hi All!
Please can anyone explain me why this:
addi,< 0x10, 0, 24 nullify the next instruction and:
addi,< 0x2, 0, 26 don't...
Anyone have an idea ?
6 REPLIES 6
ranganath ramachandra
Esteemed Contributor

Re: HPPA assembly ADDI nullification

there are 2 differences between these two instructions. you specify different immediate operands and you also specify different register operands. the behaviour will naturally depend on the register contents. you can find more information about the instruction itself in the PA-RISC architecture document:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,959!57!244,00.html
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: HPPA assembly ADDI nullification

i'm sorry, i'm obviously wrong.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: HPPA assembly ADDI nullification

or am i ... i wasnt sure i correctly interpreted the use of the second register operand ('t').
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

RATEFIARIVONY
Occasional Advisor

Re: HPPA assembly ADDI nullification

So what's the corrct one ?
Anyway thanks for replying :-)
ranganath ramachandra
Esteemed Contributor

Re: HPPA assembly ADDI nullification

well i tried out both on a 9000/800 and neither of them nullified the next instruction. are you sure you got it right ?
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

RATEFIARIVONY
Occasional Advisor

Re: HPPA assembly ADDI nullification

Sure dude!
I'm on a hpux 11.00 64 L1000.
But don't bother anymore, i will padd it with dummy instruction like copy r26, r26

Thanks for your time!