PMODE in turbo pascal
Posted: Tue Mar 23, 2004 12:00 am
sorry about my poor english, please!
Please can anyone help me! I´m learning PMODE with many tutorials like AlexFru
Russian! very good, but it´s in C
I write that in turbo pascal and Tasm using a far procedure like
{$L PMODE.OBJ}
procedure StartPM; Far; External;
procedure LoadGDT(A : Word); Far; External;
and when I setup the CS DS ES FS and GS my pc reset...
whi this is happend?
on every proc in asm I wrote like that
StartPM proc far
push bp
mov bp, sp
...
pop bp
retn
StartPM endp ? it´s correct? please!
Please can anyone help me! I´m learning PMODE with many tutorials like AlexFru
Russian! very good, but it´s in C
I write that in turbo pascal and Tasm using a far procedure like
{$L PMODE.OBJ}
procedure StartPM; Far; External;
procedure LoadGDT(A : Word); Far; External;
and when I setup the CS DS ES FS and GS my pc reset...
on every proc in asm I wrote like that
StartPM proc far
push bp
mov bp, sp
...
pop bp
retn
StartPM endp ? it´s correct? please!