Search found 2466 matches
- Mon Dec 03, 2007 2:33 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Trying to get a Battleship Program ASAP
- Replies: 29
- Views: 39077
Well, ASCII is just text really and you can make a crude boat just using a forward slash and a backslash with some dashes between. That could be done without knowing any ASCII codes! Instead of all of this bantering and complaining about the teacher, you ought to start doing something. Your descript...
- Mon Dec 03, 2007 4:13 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Trying to get a Battleship Program ASAP
- Replies: 29
- Views: 39077
- Mon Dec 03, 2007 3:28 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: What's the largest possible double number?
- Replies: 8
- Views: 14689
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 ...
- Sun Dec 02, 2007 12:09 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Trying to get a Battleship Program ASAP
- Replies: 29
- Views: 39077
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...
- Fri Nov 30, 2007 8:20 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...
- Thu Nov 29, 2007 11:29 pm
- Forum: General Discussion
- Topic: What's the best way to fill in a triangle?
- Replies: 11
- Views: 28153
- Thu Nov 29, 2007 2:37 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: reversible hex dump
- Replies: 6
- Views: 13503
- Wed Nov 28, 2007 10:25 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: reversible hex dump
- Replies: 6
- Views: 13503
NOPE
QB cannot access RAM, so your stuck with C+.
- Wed Nov 28, 2007 5:12 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Problem with program...
- Replies: 23
- Views: 29851
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
It is also based on the PC speed!
Ted
- Wed Nov 28, 2007 1:10 am
- Forum: General Discussion
- Topic: windows cursor control
- Replies: 4
- Views: 13562
- Mon Nov 26, 2007 2:27 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: File handling and Case study....
- Replies: 6
- Views: 14131
- Mon Nov 26, 2007 2:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Explanation of QBASIC code
- Replies: 3
- Views: 6686
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$ =...
- 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: 147390
- Fri Nov 23, 2007 12:59 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Rotating a bit map image
- Replies: 11
- Views: 25157
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...
- Fri Nov 23, 2007 10:42 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...
- Sun Nov 18, 2007 10:36 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...
- Sun Nov 18, 2007 9:30 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...
- Sat Nov 17, 2007 5:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Problem with program...
- Replies: 23
- Views: 29851
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...
- Sat Nov 17, 2007 1:00 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...
- Fri Nov 16, 2007 11:27 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 67683
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...