Stacks and CALLs
Posted: Mon Jun 21, 2004 11:00 pm
currently Im writin a bootloader but I got a question. In some source I downloaded I found that they were using CALL some times. But CALL needs a stack and they used CALL before they set the stack-pointers and all that. Something like
[16 BITS]
[ORG ...]
jmp start
method:
...
...
ret
start:
call method
but without a stackpointer, how can they use CALL? Is there already a stack when running in real mode?
[16 BITS]
[ORG ...]
jmp start
method:
...
...
ret
start:
call method
but without a stackpointer, how can they use CALL? Is there already a stack when running in real mode?