BBS: Inland Empire Archive
Date: 02-14-93 (23:45)             Number: 330
From: ROB MCKEE                    Refer#: NONE
  To: JOHN GALLAS                   Recvd: NO  
Subj: POWERBASIC QUESTION            Conf: (2) Quik_Bas
Hello John!
   You wrote in a message to All:

 JG> I'm having some trouble getting some code to work in
 JG> PowerBasic.  Since I don't have access to the powerbasic
 JG> conference, I'm asking here:

 JG> Can someone post the interrupt code to return the current
 JG> cursor location?

Actually...  Bone head here forgot to add..

  r.ax= &h0300
  INTERRUPT &H10,r,r
  Page= R.BX \ &hff
  Column = r.dx and &hff + 1
  Row = r.dx \ &hff + 1 '^^^^
  ExtraInfo = r.cx ' start and stop scan lines and Blinking bit

The int 10h func 3 returns row, column as Row-1, Column -
1...  My code works for me (I'm an old time Rat shack
computer Programer where Top left was print@(0,0) and
bottom right was print@(79,24) so the 0,0 reference didn't
dent the grey matter...)  I don't know what your problem is
with PB3 though..

 Catcha Later , I'll see you on the flip side - Rob

--- timEd/B6
 * Origin: Another Quik_Bas Point in Richmond, CA (1:125/411)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET