PMODE in turbo pascal

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
RodrigoFagner

PMODE in turbo pascal

Post 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!
ASHLEY4

RE:PMODE in turbo pascal

Post 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.
RodrigoFagner

RE:PMODE in turbo pascal

Post by RodrigoFagner »

MANY THANKS ASHLEY4.
Post Reply