About segment registers in PMODE ! ?

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

About segment registers in PMODE ! ?

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

RE:About segment registers in PMODE ! ?

Post by DruG5t0r3 »

One good advice I can give you....don't write your OS with Pascal...

Use asm and C...
Anton

RE:About segment registers in PMODE ! ?

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

RE:About segment registers in PMODE ! ?

Post by rodrigofagner »

thanks Anton. :-)

RodrigoFagner
ASHLEY4

RE:About segment registers in PMODE ! ?

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

MANY TANKS EVERYBODY!    I WILL CHANGE T

Post by RodrigoFagner »

MANY TANKS TO EVERYBODY! I´LL TRY GNU-PASCAL
:-)
ASHLEY4

RE:MANY TANKS EVERYBODY!    I WILL CHANGE TO GNUPASCAL

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

RE: MANY TANKS ASHLEY4. I´LL TRY!

Post by RodrigoFagner »

ASHLEY4.

:-)

RodrigoFagner
_Halcyon_

RE:MANY TANKS EVERYBODY!    I WILL CHANG

Post 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++)
ASHLEY4

RE:MANY TANKS EVERYBODY!    I WILL CHANGE TO GNUPASCAL

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