Search found 51 matches

by Valerie
Sun Apr 04, 2010 10:01 am
Forum: QBasic / QuickBasic related
Topic: Temperature sensor
Replies: 2
Views: 2314

How do you intend to connect the output of the temperature sensing device to the Com port? This device is just a sensing unit which will return a value (voltage?) on the output pin depending on the current operating temperature. e.g. For an input voltage of 5v at a temperature of 20C the output ...
by Valerie
Wed Mar 03, 2010 8:03 am
Forum: QBasic / QuickBasic related
Topic: Looking to learn how to write QB
Replies: 4
Views: 2909

Quick Basic download.

And, of course, Quick Basic Cafe has its own downloads:

https://qbasic.net/qbc/english/downl ... iler.shtml
by Valerie
Sun Jun 21, 2009 9:37 am
Forum: QBasic / QuickBasic related
Topic: Installing qb45
Replies: 9
Views: 8884

Petersull - Welcome to the QBCafe forums.

I start QBasic 4.5 using a shortcut to a batch file. Here's the .bat code:

@echo off
cls

cd /d d:\my downloads\qbasic45
qb.exe /l qb.qlb
cd /d c:\
exit /b


Obviously you'd need to tailor the path to suit your setup. The shortcut option is selected to ...
by Valerie
Sat Dec 06, 2008 9:48 am
Forum: QBasic / QuickBasic related
Topic: Expression too Complex, Severe Error
Replies: 5
Views: 3904

Here's MS on the Expression too Complex error when using BC.Exe

http://support.microsoft.com/kb/39239

While your code may fall below the magic number 19 it's worth a try.

I understand that the caret (^) indicates that the error is in the line prior to the one referenced so that
1B9B 01AE 1250 ...
by Valerie
Wed Nov 12, 2008 10:24 am
Forum: QBasic / QuickBasic related
Topic: TIME$
Replies: 7
Views: 4611

Mmmm...............

:cry: That's a lot of coding...........
by Valerie
Sat Oct 25, 2008 5:46 am
Forum: QBasic / QuickBasic related
Topic: Assemblers Post ALU
Replies: 1
Views: 2721

I'm not really into Assembly but if you want to see what your coding looks like in Assembly I posted this:

For anyone interested in seeing what their QB program looks like in Assembly. This listing shows the QB statements followed by the Assembly codings:

Compile your .bas listing with the BC.EXE ...
by Valerie
Wed Apr 23, 2008 11:35 am
Forum: QBasic / QuickBasic related
Topic: Hexadecimal Routines for QBasic
Replies: 6
Views: 7356

Interesting question but I don't understand what you mean.

Hex arithmetic calculations are the same as decimal except that you must prefix the hex number with &H

So:

print &HC - &HB

will result in 1

as will

print 12 - 11

Also, what's a hexadecimal byte? A byte consists of 8 bits and the ...
by Valerie
Mon Mar 31, 2008 11:38 pm
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6223

Great news about port 966, did you try 956?.

I've so far had success with Win.ME and bombed with W2k/pro, XP Home, XP Pro. Haven't been able to devote a lot of time to this gem of a problem but will shortly try barebones Dos 7.1 (yes, Wengier Wu's version) and Win.98se.

Pity tho', I've not got any ...
by Valerie
Mon Mar 31, 2008 2:18 am
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6223

Actually the 956 is correct, normal for an IBM Thinkpad. I can go into Device Manager and examine LPT1, and the resources listed are 03BC-03BE, which is 956 decimal.

You are, of course, correct about the 956 port address. I should have done a bit more research before jumping in with both feet ...
by Valerie
Sat Mar 29, 2008 3:02 am
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6223

Ports

BTW when programming ports I have found it much easier to name the port, then if the port number must be changed there's just one change to make - such as:


outport% = &h2FB

out outport%,123
d%=inp (outport%) :print d%



And you can save a bit of coding by not using o%= or d%= --

OUT outport ...
by Valerie
Sat Mar 29, 2008 2:36 am
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6223

Parallel port

I think your calculation of 956 being the port address is incorrect. 956 is possibly being written to by the system thereby returning decimal 255 every time. I changed the port address to 888, a more familiar one, and ran your code in the QB IDE under Win ME without problem. Here's the code I used ...
by Valerie
Fri Mar 28, 2008 9:04 am
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6223

Programming Ports

It's an unfortunate fact of QuickBasic that when running in any of the NT systems the ports are not direcly accessible even when running in the Command Shell (often called Dos but it isn't). There's a good read here http://www.beyondlogic.org/porttalk/porttalk.htm

Another possible workaround is ...
by Valerie
Fri Feb 15, 2008 7:43 am
Forum: QBasic / QuickBasic related
Topic: Finding GXSTB graphic library
Replies: 4
Views: 2860

Genus is mentioned here http://www.dans20thcenturyabandonware.c ... og-dos.txt and there's a link at the bottom of the page for more info. I don't think it's a freebie.

Hope this helps.

V..
by Valerie
Wed Dec 26, 2007 10:18 pm
Forum: Off Topic
Topic: Happy New Year
Replies: 0
Views: 5466

Happy New Year

>_< :x[: Nobody came to wish anybody a Merry Christmas - my excuse is that I was AWOL....

So to try to make up I wish you and your families, friends and acquaintances a very Healthy, Happy, and Prosperous New Year for 2008 :praise: :())):
by Valerie
Mon Dec 17, 2007 8:26 am
Forum: QBasic / QuickBasic related
Topic: converting decimal to HH:MM:SS?
Replies: 5
Views: 3635

Hello Iggy & welcome to the forums.