Board index » delphi » TRIVIA -- PASCAL 3 RELATED QUESTION -- TRIVIA (TEXTMODE RELATED
Moritz Richte
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Moritz Richte
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
TRIVIA -- PASCAL 3 RELATED QUESTION -- TRIVIA (TEXTMODE RELATED?here some thing for those of you into historical programming or started is there a way to change the textmode in pascal three so that the screen textmode (CO80 + FONT8X8); that's easy but we use TP3 (don't ask me why, we just do!!!!) in class please respond via e-mail as opposed to posting your response... thanks a million NUNZIO |
Char
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:TRIVIA -- PASCAL 3 RELATED QUESTION -- TRIVIA (TEXTMODE RELATEDQuoteMoritz Richter (nun...@EriNet.com) wrote: : when pascal first came out... : : is there a way to change the textmode in pascal three so that the screen : is 80x50 instead of 80x25...i know this can be done in TP7 by using... : : textmode (CO80 + FONT8X8); : : that's easy but we use TP3 (don't ask me why, we just do!!!!) in class : and i need to do some serious output for a program and just need more : room...so far i have not been able to get this to work, i could just : write my program in "7" but that would be too easy ;-) any way if you : know of a way to accomplish this i would greatly appreciate it... I did thid eons ago using ideas from Ferraro's EGA/VGA book -- I : please respond via e-mail as opposed to posting your response... If you can post you should be read it from here.... |
R.E.Dona
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:TRIVIA -- PASCAL 3 RELATED QUESTION -- TRIVIA (TEXTMODE RELATED----=_333ae67213185751301cb1e99.MFSBCHJLHS QuoteMoritz Richter <nun...@EriNet.com> wrote: OTOH, there is nothing trivial about your request <g> Anyway I thought your question was quite interesting, so armed w/ The following is specifically coded for Turbo 3.01a PC-DOS Version. Because Turbo 3.0 has so many hard coded parameters, it was The program should be self-documenting. If its not clear enough, or Quote>please respond via e-mail as opposed to posting your response... grounds for many to ignore your request for help simply based on the selfish attitude this presents. Replies should be posted to the group so that others may benefit from the information. Replies may be posted to the group w/ a complementary copy by email, but it isn't proper to ask for an email only reply. ...red ----=_333ae67213185751301cb1e99.MFSBCHJLHS { TEST Support functions } TYPE AnyString = String[255]; FUNCTION Stringof(c: Char; Count: Integer): AnyString; { ----------------------------------------------------------- } { Useful parameters. Treat as read only! } PROCEDURE PatchCrt(font8x8: Boolean); ForceCrtReset := $B4; { change jz to mov AH, ... } If font8x8 Then With Regs Do Begin AX := $1112; { set 8x8 font } AX := $1130; { get font info } If DL > 42 Then Begin (*-- { ----------------------------------------------------------- } { write series of stair stepped lines } { set small windows and test clrscr } Window(40,26,50,32); (*--*) Window(1,1,80,Succ(CrtRows)); { restore full screen } ----=_333ae67213185751301cb1e99.MFSBCHJLHS-- |
Paul Hepwor
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:TRIVIA -- PASCAL 3 RELATED QUESTION -- TRIVIA (TEXTMODE RELATEDQuote> is there a way to change the textmode in pascal three so that the screen inline( $b8 / $12 / $11 { mov ax,1112h } Alternatively, use var r:Registers; With tp3, you have to define the Registers type yourself. Just copy IHTH Paul |