Emacs: How to Enter a Unicode Character

You can enter a Unicode Character in emacs with the following sequence:

C-x 8 <enter> <character code> <enter>

If Unicode is supported on your installation you should see an ‘Insert character’ message after pressing enter for the first time. If it is not supported then you will get a message along the lines of ‘C-x 8 not defined’.

To get a small e with an accute accent you would use the character code ‘e9’, so the full sequence would be

C-x 8 <enter> e9 <enter>

You can find lists of character codes at the following sites:

https://www.utf8-chartable.de

https://www.w3schools.com/charsets/ref_html_utf8.asp

Arm Processor Modes: What are they and Why are they

Simple processors used to have two modes. The first would handle the everyday processing tasks, whilst the second would kick in when an interrupt occurred. The interrupt would result in the processor saving its current state and then jumping to some predefined location to service the interrupt. Modern processors are required to do much more complicated things, servicing many tasks/programs at the same time. Keeping these tasks separate from each other and from the OS requires additional levels of privilege and hence a need for additional modes.

User Mode

This is the default, unprivileged mode under which most processes run.

System Mode

System Mode provides a means for the exception handler to execute subroutines without the potential for further exceptions over-writing the return address stored in R14.

Fast Interrupt Mode (FIQ)

Fast Interrupt Requests are essentially higher priority interrupts which operate in a dedicated mode. FIQ mode has seven dedicated registers (R8-R14) allowing a degree os persistence between interrupts. Under Linux, which only uses IRQs, the use of this system allows the software to implement a degree of real-time code. Writing the code does however require the use of assembler because of the register restrictions.

Normal Interrupt Mode (IRQ)

IRQ mode is entered when a regular, low priority interrupt is raised. As with all exceptions, when an IRQ occurs the processor copies the CPSR register to the mode appropriate SPSR and assigns the return address to the mode appropriate return address. The CPSR mode bits are modified as according to the new mode and the program counter is set according to an address taken from the exception vector table

Abort Mode

Abort mode is entered after a data or instruction prefetch is aborted. This occurs as a result of an application attempting to access an illegal memory location. It is usually possible to calculate the address of the instruction that caused the exception by looking at the value of the link register (R14) and subtraction 8.

Supervisor Mode (SVC)

When code executing in user mode requires access to privileged parts of the system this is typically achieved by an SVC call and a switch to Supervisor Mode.

Undefined Mode

If an unrecognised instruction is encountered the processor vectors off into undefined mode so that software emulation of co-processors or other extensions to the instruction set can be carried out.

Monitor Mode (MON)

Monitor Mode is there to facilitate the debugging of an application without stopping the core entirely. The continued servicing of critical interrupt routines can therefore continue whilst the core is being probed by the debugger.

Hypervisor Mode

Hypervisor Mode is there to facilitate virtualization. In the same way that user-space uses the SVC instruction to switch into kernel-space (SVC mode), the processor needs to be switched into Hypervisor mode in order to make use of the virtualization extensions.