[Oberon] Branch instruction, program counter and link register

Jörg joerg.straube at iaeth.ch
Tue Dec 19 17:50:56 CET 2017


Srinivas

Branch instructions are used to a) call procedures and b) for IFs and loops. In the former case you want to return to the place you were, for the latter not.
In other assembler instructions it‘s the difference between JSR and JMP.

Jörg

> Am 19.12.2017 um 13:48 schrieb Srinivas Nayak <sinu.nayak2001 at gmail.com>:
> 
> Dear All,
> 
> In RISC-5, why not every branch instruction saves PC+4 to R15?
> Any disadvantages?
> 
> 
> With thanks and best regards,
> 
> Yours sincerely,
> Srinivas Nayak
> 
> Home: http://www.mathmeth.com/sn/
> Blog: http://srinivas-nayak.blogspot.in/
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list