mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
lesson 4, manipulating the stack
This commit is contained in:
parent
c75b10d6bd
commit
f1dab708b1
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user