i just checked basic_opcodes.c but i can't see anything like that...

but i found something that confused me:

parrot_assembly.pod says:
jump tx:  
          Jump _to_ the address held in register x
branch tx
           Branch forward or backward by the amount in register
           x. (X may be either Ix, Nx, or Px) Branch offset may
           also be an integer constant.

all i can find in basic_opcodes is a branch_ic and the code for jump_i 
looks more like a branch_i because it does exactly what brach_ic does 
but with a register rather than a constant...

jump should more look like:
  return interpreter->code->byte_code + cur_opcode[1]; /* jump_ic*/
  return interpreter->code->byte_code + 
interpreter->int_reg->registers[cur_opcode[1]]; /* jump_i */


-daniel


----- Original Message ----- 
From: "Dan Sugalski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 11, 2001 11:13 PM
Subject: Fetching the PC?


> Did we put a patch into parrot that lets you fetch the current PC and store 
> it in an integer register? I seem to recall someone did, but I can't find it.
> 
> Dan
> 
> --------------------------------------"it's like this"-------------------
> Dan Sugalski                          even samurai
> [EMAIL PROTECTED]                         have teddy bears and even
>                                       teddy bears get drunk
> 

Reply via email to