Advertisement
wavec022

lesson 10 and 11 assembly

Sep 10th, 2020 (edited)
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Assembly Intro
  2.  
  3. Assembly doesn't have high level abstraction and stuff I guess idk
  4.  
  5. Instruction set architecture
  6. - CISC-- x64 (intel x86 64 bit), IA32 (32 bit)
  7. - RISC -- Acorn Risc Machine (ARM), MIPS, PowerPC
  8.  
  9. Register: word sized storage unit on the CPU that holds instructions, addresses, and/or data
  10. CPU has 16 total registers for storing integer data and pointers-- see slides for the list of registers
  11. If a thing has fewer than 8 bytes (64-bit), it may use component registers
  12.  
  13. use "disas functionname" in gdb to show assembly code shit
  14.  
  15. =====
  16.  
  17. Lesson 11
  18.  
  19. Program memory: address space that OS assigns an executable when it is run
  20. Program stack aka call stack: Section of memory that stores parametres and local variables of a function. It grows towards lower addresses during execution and shrinks back to original size when the function exits
  21.  
  22. mov, add, sub, push, pop
  23. stack = %rsp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement