瀏覽代碼

lesson 4, manipulating the stack

Carlos Fenollosa 10 年之前
父節點
當前提交
f1dab708b1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      04-bootsector-stack/boot_sect_stack.asm

+ 2 - 2
04-bootsector-stack/boot_sect_stack.asm

@@ -1,7 +1,7 @@
-mov ah, 0x0e
+mov ah, 0x0e ; tty mode
 
 
 mov bp, 0x8000 ; this is an address far away from 0x7c00 so that we don't get overwritten
 mov bp, 0x8000 ; this is an address far away from 0x7c00 so that we don't get overwritten
-mov sp, bp
+mov sp, bp ; if the stack is empty then sp points to bp
 
 
 push 'A'
 push 'A'
 push 'B'
 push 'B'