Search   
Home  Print View  

 

Programmer's Manual

Branch Content

Relative

It is possible to add a given value to the Program Counter (PC) to compute a jump relative to the current instruction; this is termed a "relative branch".

The relative addressing mode can in turn be direct (if the offset value is given by the operand) or indirect (if it is given by a register).

Examples:

    jpr  0x0004    ; PC=PC+4   (Relative Direct)   coding: 208b  0004
    jprx e         ; PC=PC+e   (Relative Indirect) coding: 259b  

Notice that the terms "direct" and "indirect" are not entirely appropriate since data has been given immediately and by a register respectively. However, since the data in question represents an address, we think that "direct" and "indirect" are more intuitive in this case.

Homebuilt CPUs WebRing

JavaScript by Qirien Dhaela

Join the ring?

David Brooks, the designer of the Simplex-III homebrew computer, has founded the Homebuilt CPUs Web Ring. To join, drop David a line, mentioning your page's URL. He will then add it to the list.
You will need to copy this code fragment into your page.

Project start date: May 13 of 2009