Search found 11 matches

by jejump
Sun Apr 19, 2020 12:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: For/Next/Step
Replies: 2
Views: 26069

Re: For/Next/Step

You're absolutely right!! I had a case of mathematical dyslexia. :roll:

Anyway, it's a disposable program. I only need it to show me bits changing in a memory resident program I created in MASM. It did the job.



Thanks for the reply!

Jj
by jejump
Sat Apr 18, 2020 7:21 am
Forum: QBASIC and QB64 Questions & Answers
Topic: For/Next/Step
Replies: 2
Views: 26069

For/Next/Step

Can some nice programmer enlighten me on the usage of STEP in a FOR - NEXT loop? I've been trying the following code running on the MS-DOS 6.22 distribution of QBASIC (whatever version that is????). For A = 1 TO 128 STEP A^2 PRINT A NEXT To try to achieve the screen output of: 1 2 4 8 16 ~~~ 128 Ins...
by jejump
Sat Jul 05, 2014 10:22 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Function
Replies: 2
Views: 9073

Re: QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Funct

If this should help someone down the road... I figured out the problem with DOS 7.10. I performed the installation with the drive volumes unlocked. If you are using QBX which knows nothing about long file names, you must install it with the volumes LOCKED if you want to perform commands like the pri...
by jejump
Wed Jul 02, 2014 11:38 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Function
Replies: 2
Views: 9073

QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Function

Hello All,

Well, the subject line pretty much says it all for me. I can't use the QBX command SHELL "dir/on c:>proglist.dir" running MS-DOS 7.10. Is there some resolve for this behavior or do I need to back up and install DOS 6.22?

Thanks for reading,

John
by jejump
Mon Jun 30, 2014 11:03 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Logical AND difficulties...
Replies: 3
Views: 9835

Re: Logical AND difficulties...

I guess the reason it's never been a problem before is because I usually always check for single bits and not for multiple bits at once with AND logic in QB. In all lower level languages I've ever programmed in, ALL three bits would have to be equal for like a CMP (compare) instruction. I guess I ha...
by jejump
Mon Jun 30, 2014 10:50 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Logical AND difficulties...
Replies: 3
Views: 9835

Re: Logical AND difficulties...

You've come to my rescue again burger. I can't believe this has never before been an issue for me. This seems to work fine now like this:

IF (MachineStatus AND 7) = 7 THEN 'Parenthesis are required
.
.
.
END IF

Thanks again for educating me :)

John
by jejump
Mon Jun 30, 2014 9:26 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Logical AND difficulties...
Replies: 3
Views: 9835

Logical AND difficulties...

Okay, here's an interesting (...and frustrating) problem... I'm programming in QBX 7 and in my main module of my program, I have stated: COMMON SHARED MachineStatus AS INTEGER In one of my SUBs I have this piece of code: IF MachineStatus AND 7 THEN 'Bits 0, 1, and 2 active LOCATE 1,1 : PRINT Machine...
by jejump
Wed Jun 25, 2014 1:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What am I missing about LONG integers?
Replies: 6
Views: 13637

Re: What am I missing about LONG integers?

Yes, compatible hardware availability will inevitably be the demise of the language. I guess when I can no longer obtain motherboards outfitted with PCI slots, serial ports, and parallel ports, I'll have to outfit any new electromechanical projects I take on with expensive PLCs, HMIs and write code ...
by jejump
Wed Jun 25, 2014 11:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What am I missing about LONG integers?
Replies: 6
Views: 13637

Re: What am I missing about LONG integers?

Oh BTW, I have downloaded QB64 and FreeBasic and have dabbled with both, but never taken on any large scale stuff. I use QBX and MASM to create dedicated controllers for various types of machinery. I heavily make use of PEEK, POKE, IN, and OUT statements--all of which unavailable to me on the aforem...
by jejump
Wed Jun 25, 2014 11:36 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What am I missing about LONG integers?
Replies: 6
Views: 13637

Re: What am I missing about LONG integers?

Thanks for clearing that up burger. What I'm trying to do more specifically is compile a 24-bit integer from three 8-bit values. This is not the first time that I've needed to do this and have encountered this same problem. What I've seen in both occasions is that QBX will multiply the highest byte ...
by jejump
Wed Jun 25, 2014 8:13 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What am I missing about LONG integers?
Replies: 6
Views: 13637

What am I missing about LONG integers?

Hello everyone. I'm brand new to the site and could use a little help with a programming problem. Help me understand something... I'm booted up with WIN98SE command prompt environment and running Quick Basic 7.1. I try this code and get an Overflow error: DIM IntegerNumber AS LONG IntegerNumber = 12...