In a previous topic I asked for help in locating DOS fonts in ROM.
I have since found an INTERRUPT &H10 to get this location. The following
routine will get the segment and offset to the 8 X 16 font.
REG 1,&h1130
REG 2,&h0600
CALL INTERRUPT &h10
SEGMENT%=REG(9) ' ES REGISTER
OFFSET??=BITS??(REG(7)) ' BP REGISTER
It is most important that type for the offset is an unsigned integer.
Perhaps Lance can explain why PEEK(OFFSET&+10) and PEEK(OFFSET??+10)
give different results if the MSB of OFFSET is 1.
Other fonts are available by BH settings.
This slightly off topic but the above was discovered while writing a
suite of procedures for a GUI for DOS. While doing so I found that
the PB IDE occasionally crashed when I tried to monitor variables in
a procedure, then printed characters on the top of the screen with
each key press. Any one else experience this problem? Control Break
does not always work even though my program is responding to key
strokes.
Lance I am running in Windows 95 and PB id dated 15th December 1997.
Don
------------------
[This message has been edited by Don Ward (edited January 18, 2002).]
I have since found an INTERRUPT &H10 to get this location. The following
routine will get the segment and offset to the 8 X 16 font.
REG 1,&h1130
REG 2,&h0600
CALL INTERRUPT &h10
SEGMENT%=REG(9) ' ES REGISTER
OFFSET??=BITS??(REG(7)) ' BP REGISTER
It is most important that type for the offset is an unsigned integer.
Perhaps Lance can explain why PEEK(OFFSET&+10) and PEEK(OFFSET??+10)
give different results if the MSB of OFFSET is 1.
Other fonts are available by BH settings.
This slightly off topic but the above was discovered while writing a
suite of procedures for a GUI for DOS. While doing so I found that
the PB IDE occasionally crashed when I tried to monitor variables in
a procedure, then printed characters on the top of the screen with
each key press. Any one else experience this problem? Control Break
does not always work even though my program is responding to key
strokes.
Lance I am running in Windows 95 and PB id dated 15th December 1997.
Don
------------------
[This message has been edited by Don Ward (edited January 18, 2002).]
Comment