My system in pascal
Posted: Sat Apr 17, 2004 1:21 am
I write an OS in Pascal(freepascal)...aND i HAVE SIMPLE CODE:
KERNEL.PAS
unit kernel;
interface
{$ASMMODE intel}
procedure 13h;
implementation
procedure 13h;[public,alias:'13h'];
begin
asm
mov ax, 13h
int 10h
end;
end;
begin
end.
and start.asm(write and compile with nasm):
[BITS 32]
[global start]
[extern 13h]
start:
call 13h
And I have error, when I link those file:
Can't find start(or _start).... Can you help me??
KERNEL.PAS
unit kernel;
interface
{$ASMMODE intel}
procedure 13h;
implementation
procedure 13h;[public,alias:'13h'];
begin
asm
mov ax, 13h
int 10h
end;
end;
begin
end.
and start.asm(write and compile with nasm):
[BITS 32]
[global start]
[extern 13h]
start:
call 13h
And I have error, when I link those file:
Can't find start(or _start).... Can you help me??