Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hsdndev!cmcl2!adm!news From: OEYO8722%TREARN.BITNET@uga.cc.uga.edu Newsgroups: comp.lang.pascal Subject: (none) Message-ID: <25928@adm.brl.mil> Date: 12 Feb 91 08:37:01 GMT Sender: news@adm.brl.mil Lines: 45 !> ====================================================================== !> From: URZ45@DMSWWU1A !> To: Multiple recipients of !> Dear MSDOS-Hackers, !> where in the BIOS can I find a routin, which gives me the number !> of lines of any screnn. I tried int 10, but for reading the results, !> one needs a complet listing. Where can I get such listings from? !> MFG !> Nichael Averstegge !> ====================================================================== Hi! You can know these informations without use any interrupts. (Interrupts're very slow for me *:-) Now, I'm giving a some addresses to you; You can access these addresses by Turbo Pascal's Mem, MemW, MemL predefined arrays. (see more info to Turbo Pascal ver 5.0 Reference Guide page 220) (I dont know where is it in Turbo Pascal ver 5.5 *:-)) Address Function Size ------- ------------------------------- ---- 40:4A Number of Columns on the Screen Byte 40:50 Cursor position page 1 Word 40:60 Cursor type Word 40:84 Number of Rows on the Screen (minus 1) Byte Address values are in hexadecimal notation. (see for other addresses and their fuctions to IBM Personel System/2 and Personel Computer BIOS Interface Technical Reference - Data Areas and ROM Tables pages 3.1 to 3.23) Did I help you? Yes, I think! *:-) Hur AKDULGER........... Application Generator on IBM 3090-150E IBM PC-PS Hur AKDULGER........... OEYO8722 at TREARN Hur AKDULGER........... PROHVK35 at TREARN