NASM OS Dev Problems
Posted: Fri Jan 18, 2008 12:30 pm
There are a few things that I dont get in NASM, how do I define the entry point and how do I define a procedure?
Thanks,
ExtremeCoder27
Thanks,
ExtremeCoder27
The Place to Start for Operating System Developers
https://f.osdev.org/
Code: Select all
MyProcedure:
; void MyProcedure (void); StdCall;
RET
Code: Select all
Procedure1:
; void Procedure1 (void); StdCall;
.Label1:
RET
Procedure2:
; void Procedure2 (void); StdCall;
.Label1:
RET
Code: Select all
Procedure1:
; void Procedure1 (void); StdCall;
.Label1:
RET
Procedure2:
; void Procedure2 (void); StdCall;
.Label1:
JMP .Label1
RET
Code: Select all
__Procedure1:
; void __Procedure1 (void); StdCall;
RET
Code: Select all
; ——————————————————————————————————————————————————
CALL Procedure1
JMP $
; ——————————————————————————————————————————————————
__Procedure1:
; void __Procedure1 (void); StdCall;
RET
; ——————————————————————————————————————————————————