Page 1 of 1

About segment registers in PMODE ! ?

Posted: Mon Mar 29, 2004 12:00 am
by RodrigoFagner
Hi, I´m learning PMode! I just begin to write a small kernel in Borland Pascal with Tasm but I have a problem! I think a big one! many procedure in pascal it does changes the DS ES, DI, SI and then the pc crash!!! :@!#$#@$@##$%:%¨$%@#?@!#
:-( I´m not using a TSS just like PMTUTS 03 from Alexei Frounze!
"! ! ! many thanks for him ! ! !", please, one question, If I use TSS can I change the DS with a invalid selector? only for procedure or funtions in pascal!

I have a many tutorials but almost everything is in C and asm or just asm!

please ! helpppppppppp me!!!!!!!! I´m geting Crazyyyyyyy!

RE:About segment registers in PMODE ! ?

Posted: Tue Mar 30, 2004 12:00 am
by DruG5t0r3
One good advice I can give you....don't write your OS with Pascal...

Use asm and C...

RE:About segment registers in PMODE ! ?

Posted: Tue Mar 30, 2004 12:00 am
by Anton
I think(as far as i remmember) there is a keyword "interrupt" for procedures, and then the procedure does not change DS,...
Anton.

RE:About segment registers in PMODE ! ?

Posted: Tue Mar 30, 2004 12:00 am
by rodrigofagner
thanks Anton. :-)

RodrigoFagner

RE:About segment registers in PMODE ! ?

Posted: Tue Mar 30, 2004 12:00 am
by ASHLEY4
The language that he makes is OS in is up to him, I use to program in pascal (3 years ago) and is one of best  language's around,The down side is most os tuts are in C or asm.
So what he is doing will be a great help to pascal programmer's.
I wish him good luck

ASHLEY4.

PS. I can not help, because i have forgoten most of my turbo pascal programming.

MANY TANKS EVERYBODY!    I WILL CHANGE T

Posted: Tue Mar 30, 2004 12:00 am
by RodrigoFagner
MANY TANKS TO EVERYBODY! I´LL TRY GNU-PASCAL
:-)

RE:MANY TANKS EVERYBODY!    I WILL CHANGE TO GNUPASCAL

Posted: Wed Mar 31, 2004 12:00 am
by ASHLEY4
Before making your mind up try these pascal compilers:

     http://www.fortunecity.com/skyscraper/sql/39/

And this one:

     http://www.geocities.com/SiliconValley/ ... /dpas.html

ASHLEY4.

RE: MANY TANKS ASHLEY4. I´LL TRY!

Posted: Wed Mar 31, 2004 12:00 am
by RodrigoFagner
ASHLEY4.

:-)

RodrigoFagner

RE:MANY TANKS EVERYBODY!    I WILL CHANG

Posted: Sun Apr 11, 2004 11:00 pm
by _Halcyon_
Actually, my hat goes off to FPC, an incredibly fast, vercatile and x-platform Pascal compiler, certainly worth a look imho.
http://www.freepascal.org/

P.S. Ingore the trolls that say "Use this or that language", they arn't worth listening to (Coming from someone who has coded for 18 years in asm, Pascal, C and C++)

RE:MANY TANKS EVERYBODY!    I WILL CHANGE TO GNUPASCAL

Posted: Sun Apr 11, 2004 11:00 pm
by ASHLEY4
You are right, But you can come to a brick wall,By this i mean i loved programming in pascal,But it was hard to get libs to do things like help you make a mp3 players,you after keep reinvent the wheel, and most of this work you do in ASM ,So in the end i give up pascal and make all things in 100% assembly and, in programmig terms is the best thing i did.

ps: the best language is the one that suet you!
ASHLEY4.