Welcome, Guest. Please login or register.

Author Topic: NEED HELP FROM QBASIC GURUS!  (Read 5893 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline alx

Re: NEED HELP FROM QBASIC GURUS!
« on: January 27, 2003, 08:48:36 PM »
Here is an extract from the QBasic help (sorry if the foruatting gets messed up):

INP returns a byte read from a hardware I/O port.
OUT sends a byte to a hardware I/O port.

INP(port%)
OUT port%, data%

    ■ port%     A number in the range 0 through 65,535 that identifies
                the port.
    ■ data%     A numeric expression in the range 0 through 255 to send
                to the port.

Example:
    x% = INP(&H3FC)          'Read COM1 Modem Control Register.
    OUT &H3FC, (x% XOR 1)    'Change Data Terminal Ready bit.

I think that the command that you want is "pset", which appears to work just like "plot" in most BASICS.

Out of interest, why QBasic?  I've never liked it (or AmigaBasic for that matter) :-)

Offline alx

Re: NEED HELP FROM QBASIC GURUS!
« Reply #1 on: January 27, 2003, 09:03:01 PM »
Don't think I've ever used SVGA in Qbasic - perhaps the forums here and here could help?

---------

Yeah - my first square :-D

Offline alx

Re: NEED HELP FROM QBASIC GURUS!
« Reply #2 on: January 27, 2003, 09:14:34 PM »
I'm kinda surprised that M$ still haven't haven't renamed it "qbasic.net" and started charging loads for it :-)