Page 1 of 1

PMODE in turbo pascal

Posted: Tue Mar 23, 2004 12:00 am
by RodrigoFagner
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!

RE:PMODE in turbo pascal

Posted: Wed Mar 24, 2004 12:00 am
by ASHLEY4
The best thing to do, Is have a look that this OS made in freepascal (A 32bit 100% turbopascal compatible,Pascal compiler).

      http://www.thegaineys.fsnet.co.uk/
Or this pascal OS if you know Russian.
     http://www.stormdos.nm.ru/

ASHLEY4.

RE:PMODE in turbo pascal

Posted: Wed Mar 24, 2004 12:00 am
by RodrigoFagner
MANY THANKS ASHLEY4.