
A CPU Instruction Set Details

Two special instructions are provided in the R4000 implementation of the MIPS ISA, Load Linked and Store Conditional. These instructions are used in carefully coded sequences to provide one of several synchronization primitives, including test-and-set, bit-level locks, semaphores, and sequencers/event counts.
In the load and store descriptions, the functions listed in Table A-2 are used to summarize the handling of virtual addresses and physical memory.
Table A-2 Load and Store Common Functions![]()
As shown in Table A-3, the Access Type field indicates the size of the data item to be loaded or stored. Regardless of access type or byte-numbering order (endianness), the address specifies the byte which has the smallest byte address in the addressed field. For a big-endian machine, this is the leftmost byte and contains the sign for a 2's complement number; for a little-endian machine, this is the rightmost byte.
Table A-3 Access Type Specifications for Loads/Stores![]()
The bytes within the addressed doubleword which are used can be determined directly from the access type and the three low-order bits of the address.





Generated with CERN WebMaker
![]()