























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























































HP PA ISA HP UX HP Apps. Optimization Alpha Windows X86 apps Emulation
Code Data Stack Program Counter Condition Codes Reg 0 Reg 1 Reg n- . . . Interpreter Code
LoadWordAndZero(inst){ RT = extract (inst,25,5); RA = extract (inst,20,5); displacement = extract (inst,15,16); if (RA == 0) source = 0; else source = regs[RA]; address = source + displacement; regs[RT] = (data[address]<< 32)>> 32; PC = PC + 4; }
ALU(inst){ RT = extract (inst,25,5); RA = extract (inst,20,5); RB = extract (inst, 15,5); source1 = regs[RA]; source2 = regs[RB]; extended_opcode = extract (inst,10,10); switch(extended_opcode) { case Add: Add (inst); case AddCarrying: AddCarrying (inst); case AddExtended: AddExtended (inst);
.. .} PC = PC + 4; }
Indirect Threaded Interpretation (4)
Indirect Threaded Interpretation (5) source code dispatch loop interpreter routines "data" accesses
source code interpreter routines
(load word and zero)
(add) (store word)