Premium Partner

Dobin 0x10_IntelArchitecture.pdf

Dobin 0x10_IntelArchitecture.pdf

Dobin 0x10_IntelArchitecture.pdf


Kartei Details

Karten 11
Sprache English
Kategorie Informatik
Stufe Universität
Erstellt / Aktualisiert 21.06.2019 / 27.06.2020
Lizenzierung Keine Angabe
Weblink
https://card2brain.ch/box/20190621_dobin_0x10intelarchitecture_pdf
Einbinden
<iframe src="https://card2brain.ch/box/20190621_dobin_0x10intelarchitecture_pdf/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>

What are registers?

Registers are the "variables" on the CPU

Immnediate acces for the CPU

Cannot write Memory -> Memory

  • Aways: Memory -> Register -> Memory

What can be held in registers?

Register can hold:

  • Data (numbers)
  • Addresses (also numbers, but with a different meaning)

What can registers be used for?

Registers can be used to:

  • Perform computations
  • Read / Write memory
  • Execute instructions

Name some registers in a 32 bit system and their function.

  • EAX -> Adding stuff
  • EBX -> Referencing stuff
  • ECX -> Counting stuff
  • EDX -> Data stuff
  • ESI -> Points to a source
  • EDI -> Points to a destination

Name the 3 registars that contain instruction pointer, stack pointer and base Pointer. (32 bit)

  • EIP -> Instruction Pointer -> Next instruction to be executed
  • ESP -> Stack Pointer -> Top of Stack
  • EBP -> Base Pointer -> Current Stack Frame (Bottom)

How does a CPU interpret instructions?

A CPU looks at bytes, and then decides what to execute based on them.

What is the difference between big and little endian?

Big endian: The most significant byte of the data is placed at the byte with the lowest address.

Little endian: The least significant byte of the data is placed at the byte with the lowest address.

What are the 2 most important rings in the ring modle and what are their characteristics?

Ring 0: Kernel (Kernelspace)

  • Can be intercated with by using "syscalls"

Ring 3: Userspace

  • Where all programs run

How to transit from userspace to kernelspace?

  • System Calls (syscall)