Kathleen Booth

brew install nasm

MOV A, B # B goes into A

  • EAX accumulator
  • ECX counter
  • ESP stack pointer
  • EBP base pointer

EAX, EBX, ECX, EDX - subsection can be used

  .DATA
  var DB 64

Static data region, similar to global variable

Complex Instruction Set Computing

Intel

x86 (32 bit)

General registers EAX EBX ECX EDX

Segment registers CS DS ES FS GS SS

Index and pointers ESI EDI EBP EIP ESP

Indicator EFLAGS

32 bits : EAX EBX ECX EDX 16 bits : AX BX CX DX 8 bits : AH AL BH BL CH CL DH DL

H means high L means low

Load things from memory:


x86_64 (64 bit)

Reduced Instruction Set Computing

ARM

Cache Heirarchy

CPU Core

  1. Registers
  2. L1 Cache, on-chip, banked

L2 Cache

L3 Cache

Main Memory