SPARC Instructions Formats - muneeb-mbytes/computerArchitectureCourse GitHub Wiki

SPARC Instructions Formats

SPARC instructions are 32 bit wide. The instruction format of SPARC architecture is given below arc

Call format

The CALL instruction writes the contents of the PC into register. CALL causes a delayed transfer of control to an arbitrary PC-relative target address.

Conditional instruction -

This format divides the machine instruction into five fields. The remaining fields, a, cond, and disp , hold the encoded values, the branching condition, and program counter displacement.

Sethi instruction-

Sethi instructions are encoded in four fields. The first field holds the 2-bit value . The next field, rd, holds the 5-bit encoding of the destination register. The third field holds the 3-bit value . The final filed holds the 22-bit binary encoding of the value specified in the instruction.

Load and store

In format the 32-bit instruction is divided into seven fields. The first field holds the 2-bit value, while the fifth field (bit 13) holds the 1-bit value . These bits are the same for all load and store instructions that use two source registers

Data manipulation instructions

format the 32-bit instruction is divided into seven fields. The first field holds the 2-bit value , while the fifth field holds the 1-bit value .