Latest in: lecture-notes

Caches: Maximising CPU Efficiency: The Power of Caches

In the fast-paced world of computing, speed is paramount. The central processing unit (CPU) can execute instructions at an astonishing rate, with modern processors reaching speeds of up to 3 gigahertz (3 billion cycles …
gravatar
By Ranti
 · 
April 28, 2023

Back to Assembly Language: Demystifying Data Access with Addressing Modes

Accessing data efficiently is a crucial aspect of programming, and it's facilitated by understanding various addressing modes. Here, I'll explore some of the different methods to access data, including absolute addressing, pointers, pointer+offset, and …
gravatar
By Ranti
 · 
March 21, 2023

x86-64 Guide Notes

PC consists of processor, memory, registers Registers are processor components that hold data and addresses To execute a programme, the system copies data from the external device into the internal memory. The processor executes …
gravatar
By Ranti
 · 
March 10, 2023

IEEE Floating Point numbers (Part 3) + Assembly Language

Diagram showing the sign, exponent and mantissa represented as fields in the IEEE 32-bit notation $$\text{If } N = -1.011 \times 2^{15}$$ $$\text{SIGN BIT: } 1$$ $$\text{EXPONENT BITS: } 15 + 127 = 142 …
gravatar
By Ranti
 · 
March 9, 2023

Bitwise Operations

Programmers write code in a high level language and the compiler converts it into assembly code and the assembler converts it into machine code Programming languages are byte-oriented but hardware is bit-oriented C provides …
gravatar
By Ranti
 · 
March 6, 2023

32-bit IEEE Floating Point Numbers (Part 2)

1 bit = Sign 8 bit = Exponent with a bias of 127 23 bit = Mantissa (the 1 before the point is implicit) Diagram showing the sign, exponent and mantissa represented as fields …
gravatar
By Ranti
 · 
March 6, 2023

IEEE Floating Point Numbers

This is the standard representation for floating point numbers in computers.It is called a floating point because there are different number of digits after the decimal point. The computers way of approximating floating point …
gravatar
By Ranti
 · 
March 2, 2023
View