XCore Architecture: Difference between revisions

Content deleted Content added
m Typo fixing, typos fixed: etc) → etc.), eg → e.g. using AWB
Line 63:
Larger sections of memory can be accessed by means of extended instructions, which extend the above ranges to 64 KBytes.
 
This scheme is designed in order to densely encode the common cases found in many programming patterns: access to small stack frames, a small set of globals and constants, structures, and arrays. Access to bit fields that have an odd length is facilitated by means of sign and zero extend instructions.
 
All common arithmetic instructions are provided - including a divide and remainder (which are the only instructions that are not single cycle). Comparison instructions compute a [[truth value]] (0 or 1) into a register, avoiding the use of flags. Many instructions have immediate version that allow a single operand with a value of between 0 and 11 inclusive, encoding many common cases such as "i = i + 1". In the case of bit operations such as shift, the immediate value encodes common cases. Extra instructions are provided for reversing bits and bytes, count leading zeros, [[digital signal processing]], and long integer arithmetic.