Announcement

Collapse
No announcement yet.

Access to DOS fonts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access to DOS fonts

    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).]

  • #2
    The MSB=1 is the signed/unsigned 'flag', and REG will return a signed result. To cast as unsigned, wrap it in a BITS??() function, thus:
    Code:
    offset?? = BITS??(REG(7))
    The IDE problems could be a memory manager issue (ie, O/S bug!) or it could be a PB issue - unless we can duplicate the problem it is not possible to be 100% sure. Can you repeat the crash reliably on demand?

    Also, it would really be a good idea if you could try this on another computer (ie, a different O/S version) and see what happens.

    BTW, your PB.EXE is 4 builds behind the current release... please send a email to mailto:[email protected][email protected]</A> along with your PB3.5 serial number, name, address, zip-code, etc, and request a compiler update.

    I hope this helps!


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Just out of curriosity, is there anywhere to see what was fixed
      between Builds of PowerBASIC? :confused

      It would be nice to know if portions of the compiler are broken,
      since it could lead to all kinds of potential problems.


      ------------------
      Amos
      mailto:[email protected][email protected]</A>

      Comment


      • #4
        Hmm...it seems that one of your smilies is broken...

        ...or I forgot the second colon...whatever happened to the Edit
        option




        ------------------
        Amos
        mailto:[email protected][email protected]</A>

        Comment


        • #5
          The edit icon is at the top of your message: the pencil-and-paper icon.

          No build-to-build information is available.

          ------------------
          Tom Hanlin
          PowerBASIC Staff

          Comment


          • #6
            Thanks for the BITS?? tip Lance, I now find that this most
            essential so I have edited into my last post.
            I will get the latest build and try to replicate my problems.
            Thanks for your help


            ------------------

            Comment

            Working...
            X