daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to set the Stack segment
  2. bootloader_start:
  3.  
  4.     mov ax, 07C0h           ; Set up 4K of stack space above buffer
  5.  
  6.     add ax, 544         ; 8k buffer = 512 paragraphs + 32 paragraphs
  7.    
  8. ; NASM syntax
  9. xor ax, ax ; or set ax to whatever segment you wish
  10. mov ss, ax ; IIRC, you can't just go mov ss, 0
  11. mov sp, 0xF000 ; or set sp to whatever you wish
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top