Search found 2425 matches

by burger2227
Mon Dec 03, 2007 4:13 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Trying to get a Battleship Program ASAP
Replies: 29
Views: 22311

It's probably an ASCII text game.
by burger2227
Mon Dec 03, 2007 3:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What's the largest possible double number?
Replies: 8
Views: 8226

Mac is trying to tell you that some numbers such as 120 / 1500 will be represented as an exponent of the number in some cases. This is called scientific notation for an infinite or very long number, which no Qbasic program can do. To print the number to the screen in real terms, use PRINT USING and ...
by burger2227
Sun Dec 02, 2007 12:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Trying to get a Battleship Program ASAP
Replies: 29
Views: 22311

Sorry kiddo

Most people will not do homework FOR you. Why? 1) Because your classmates outnumber you and they would probably beat the crap out of you if you got caught 2) You WILL get caught! Your teacher is no fool. 3) Many of us use much more advanced programming methods! Your program would be obvious to other...
by burger2227
Fri Nov 30, 2007 8:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

Notice

Presently Danner and I are waiting for the parts to come in. I will update this thread when we finally get something running. I contemplate using the Control port 890 to drive the door latch relay using a 4N29 Opto-Isolator chip. I will supply that code later, if anybody is following this thread. We...
by burger2227
Thu Nov 29, 2007 11:29 pm
Forum: General Discussion
Topic: What's the best way to fill in a triangle?
Replies: 11
Views: 15692

You did not mention what programming language, but QBasic can use PAINT. It requires an enclosed shape of one border color only.

PAINT(x, y), fillcolor, bordercolor

You also have to place the PAINT coordinates x and y inside of the shape.

Ted
by burger2227
Thu Nov 29, 2007 2:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: reversible hex dump
Replies: 6
Views: 7567

True that you might be able to do it with the help of assembly code. I am sure there are other options too, but you specifically said "in Qbasic". I figure if you can do it in C, why bother doing it a harder way. Good luck on your project. Feel free to tell us of any new ideas you come up with! We a...
by burger2227
Wed Nov 28, 2007 10:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: reversible hex dump
Replies: 6
Views: 7567

NOPE

QB cannot access RAM, so your stuck with C+.
by burger2227
Wed Nov 28, 2007 5:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with program...
Replies: 23
Views: 17298

Speed

Speed is based on how many prints you have, the delay times you set and the length of the file being read.

It is also based on the PC speed!

Ted
by burger2227
Wed Nov 28, 2007 1:10 am
Forum: General Discussion
Topic: windows cursor control
Replies: 4
Views: 7619

VB can mess with a mouse too, but them buggers are hard to catch!

Do you realize how much data would be in a file like that? WHY?
by burger2227
Mon Nov 26, 2007 2:27 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File handling and Case study....
Replies: 6
Views: 7772

I think he needs help using a DOS SHELL to open his file IN Notepad!

Your professor

PS: What do you mean by "I think my program is about AIRPORT BOOKING"? I sure could not tell you!
by burger2227
Mon Nov 26, 2007 2:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Explanation of QBASIC code
Replies: 3
Views: 4617

You can find out if there is data in the receive buffer by using LOC(1). IF LOC(1) THEN a$ = INPUT$(15, 1) 'tries to get 15 bytes of data However, 15 bytes of data is really a lot to grab at once just because LOC says there is some data. I would use the code in a loop and use: DO IF LOC(1) THEN a$ =...
by burger2227
Fri Nov 23, 2007 3:13 pm
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 94602

Interesting! So how is a RLE bitmap different than any other kind?

Ted
by burger2227
Fri Nov 23, 2007 12:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Rotating a bit map image
Replies: 11
Views: 13032

Well

Once an image is BLOADed or gotten with GET, all of the data is in the array including the dimensions. Each piece of data can be manipulated using trig or just by reading the data differently. Some people index the RGB color settings for the bitmap first, so you have to find the start of the image d...
by burger2227
Fri Nov 23, 2007 10:42 am
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

Update

I have updated my Q-basics tutorial with your scenario. My idea uses the 5 status pins, including the inverted one (LOL). I also include the encoder chip EDE1144 and a schematic. http://www.qbasicstation.com/index.php?c=p_member&filecat=3 The chip sends binary numbers to the S3 to S6 pins of the par...
by burger2227
Sun Nov 18, 2007 10:36 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

OK, I found an Encoder for Parallel or Serial data from your shorting keypad. It is an EDE1144 IC which requires a 4Mhz crystal, but can also use a beeper to acknowledge a press. It sends out 4 bits of binary data for a parallel port also. It can also be connected to a serial port, but we won't even...
by burger2227
Sun Nov 18, 2007 9:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

Here is what I see

You just use DataVal = INP(888). This shows the binary bit totals in decimal values. Each time a pin changes value, so does the decimal value. Then you check each pin value using the AND mathmatical operator in QB. DIM SHARED D(0 TO 7) AS INTEGER, DataVal AS INTEGER DO DatVal = INP(888) 'read port d...
by burger2227
Sat Nov 17, 2007 5:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with program...
Replies: 23
Views: 17298

A TIMER Delay

Here is a simple Delay SUB that works for seconds down to .02 seconds and it is good on any speed computer: SUB Delay (Dela!) start = TIMER DO WHILE start + dela! > TIMER IF start > TIMER THEN start = start - 86400 'midnite correction LOOP END SUB I use this instead of SLEEP for a very important rea...
by burger2227
Sat Nov 17, 2007 1:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

I don't understand your new idea about the pad and not reversing the port at all. How can you get much out of the keypad if it just shorts rows and columns. Obviously you would have to feed the 3 columns 5 volts and read just 4 rows. This would make it only a matter of mixing 4 keypresses or actuall...
by burger2227
Fri Nov 16, 2007 11:27 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

The port will have to be in reverse mode waiting for input

That is why I said that the program has to be constantly running and the port will have to be constantly reversed by the program as it may timeout. That should not hurt anything. When you send 5 volts to a reversed port pin it tells INP(888) that it is ON. Use the chart I made above for the exponent...
by burger2227
Fri Nov 16, 2007 2:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 41614

Reversing the port

To reverse a 1284 compatable port send the contol port C5 a value in your program as below: OUT 890, INP(890) OR 32 'sets C5 on if it is off Now you can turn the port's pins on using an A/D converter or other type devices using 5 volts. Check that C5 is always set in your PC program. C5 has a timeou...