Search found 41 matches

by mikefromca
Sat Jul 10, 2021 9:48 pm
Forum: News and Announcements
Topic: Microsoft released a modern Qbasic for Windows 10
Replies: 4
Views: 9696

Re: Microsoft released a modern Qbasic for Windows 10

I'm using the original QuickBasic 1.0 (and even 4.0 and 4.5) and the like in DOSBOX and even in DOSEMU for linux. Runs fine in that, but also I'll be going to pure DOS on another computer for maximum speed.
by mikefromca
Sat Jul 10, 2021 9:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File search in QB without crash
Replies: 2
Views: 4806

File search in QB without crash

Pardon me for my crazy code below, but one thing I have an issue with is file scanning. I'm making an application strictly for MS-DOS with QB 4.x that is to scan the entire hard drive for a particular file. The problem is the program bombs with the index of the array index being too high or insuffic...
by mikefromca
Fri Feb 26, 2021 2:08 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: shortening loading time for call absolute
Replies: 4
Views: 8901

Re: shortening loading time for call absolute

I ended up making my own C program that converts any binary file into a series of MKL$ statements then instead of me running a for-next loop to go through pairs of hex digits, I just did concatenation of mkl$ statements. More like: asm$=mkl$(&Hnnn)+mkl$(&Hnnn)+mkl$(&Hnnn)+mkl$(&Hnnn)...
by mikefromca
Fri Feb 26, 2021 2:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Clearing half a screen fast
Replies: 2
Views: 5751

Re: Clearing half a screen fast

Oh wow. and here I rolled out my own ASM routine. This forum doesn't want to email me when I get new posts.
by mikefromca
Fri Feb 26, 2021 2:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: properly formatting asm code to make it QB ready
Replies: 2
Views: 7265

Re: properly formatting asm code to make it QB ready

I ended up using xxd at first because it can output my whole thing as a continuous string of hex digits which can take up a few of my screens, but now I ended up making a small C program that formats the binary into a bunch of mkl$ statements for fast loading into QB. Last thing I want to see is for...
by mikefromca
Fri Feb 26, 2021 12:44 am
Forum: QBASIC and QB64 Questions & Answers
Topic: IPV4 reassembly algorithm QB style
Replies: 0
Views: 6516

IPV4 reassembly algorithm QB style

I'm making my own webserver that is to handle multiple connections, and one thing I am trying to figure out is how to reassemble IP packets that come in without wasting memory or resources. Various websites including this one: https://www.heise.de/netze/rfc/rfcs/rfc815.shtml have an RFC815 that stat...
by mikefromca
Fri Feb 26, 2021 12:27 am
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 52056

Re: Well, is this the end?

Right now I'm working on a multi-connection system that can execute EXE's and I'm about to post a question reflecting it thats QB Based.
by mikefromca
Tue Feb 09, 2021 12:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Clearing half a screen fast
Replies: 2
Views: 5751

Clearing half a screen fast

The way I cleared about half a screen in the past with QuickBasic for DOS is with these commands: for n% = 1 to 15 locate n%,1 print space$(80) next n% Now when I look at the output with DOSBOX running at 6000 clock cycles, the execution is slowish where I really notice the flicker when the screen c...
by mikefromca
Sat Feb 06, 2021 9:21 pm
Forum: News and Announcements
Topic: string swap bug in QB4.5
Replies: 0
Views: 7408

string swap bug in QB4.5

I noticed a rather strange QB bug that I can be able to reproduce. It affects QB 4.5 but not QuickBasic 1.1 This is the code that can successfully reproduce it every single time: type a b as string * 6 c as string * 6 end type dim d as a swap d.b,d.c And I can tell the problem is down to trying to e...
by mikefromca
Wed Feb 03, 2021 12:11 am
Forum: News and Announcements
Topic: zero byte output after executing program
Replies: 1
Views: 5341

zero byte output after executing program

This is a QuickBasic 1.1 and MS-DOS question I created the following code and saved it as test.bas in the root of my C drive: print "TESTING 123 ABC" system Then I created the following code as a new file: shell "\path\to\qbasic.exe /RUN \test.bas > \test.out" open "\test.ou...
by mikefromca
Tue Feb 02, 2021 11:57 pm
Forum: Pete's QB Site News
Topic: Revitalisation
Replies: 3
Views: 14581

Re: Revitalisation

Been a while since I saw a new post on here. Getting started with Qbasic? Why? Why not? Here's two compelling reasons why you should start learning to code with QBasic 64. Firstly my two kids learned to take their first steps into the world of programming using this medium. Its easy to learn, doesn...
by mikefromca
Sat Jan 30, 2021 9:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Making QuickBasic 1.1 use less memory
Replies: 1
Views: 5449

Making QuickBasic 1.1 use less memory

Turns out that when I move my whole DOS setup from a DOSBOX environment to a real DOS machine, I run out of memory pretty quick, especially when it comes to the original QuickBasic. So anyways, I fire up QuickBasic 1.1 for MS-DOS 6.22 and I simply execute the SHELL instruction. then in the DOS shell...
by mikefromca
Sat Jan 23, 2021 5:07 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Qbasic SHELL command and environment limit
Replies: 1
Views: 5875

Qbasic SHELL command and environment limit

I'm programming my own web server in quickbasic. and the idea which sometimes does and sometimes does not work is invoking external commands through dos shell. The whole program simply crashes. I do all my testing in DOSBOX and the last program listed in the titlebar is COMMAND so somewhere in there...
by mikefromca
Tue Jan 19, 2021 8:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: structure array within a structure
Replies: 2
Views: 6041

structure array within a structure

Lately, I've been using the TYPE command to make a structure for use with my assembly code. I'm making a routine in assembly that will extract multiple name-value pairs back to Qbasic but I'd like to receive it in a special type structure but I don't know if it can be doable in Qbasic. I'll explain ...
by mikefromca
Tue Jan 19, 2021 8:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: shortening loading time for call absolute
Replies: 4
Views: 8901

Re: shortening loading time for call absolute

I decided now that I'm taking a more elegant approach. My long code now is now part of my own DOS TSR that is loaded first before QB is started, then I made a mini stub assembly routine that can check to see if the TSR is installed and that runs the interrupt. That stub routine takes about 105 bytes...
by mikefromca
Fri Jan 15, 2021 3:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: shortening loading time for call absolute
Replies: 4
Views: 8901

shortening loading time for call absolute

I made a program in Qbasic that uses assembly code with call absolute. The crazy thing is loading the data into a variable takes a long time in itself. I guess that's the price I pay for convenience. But this is how I do it. I make my assembly code in linux with nasm then I use xxd utility to extrac...
by mikefromca
Fri Jan 08, 2021 12:13 pm
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 52056

Re: Well, is this the end?

ok I put the pics here. this is the last of them. I didn't bother with the zip file because this forum told me it was too large.
by mikefromca
Fri Jan 08, 2021 12:10 pm
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 52056

Re: Well, is this the end?

heres 2 more. then 2 more after that and thats it
by mikefromca
Fri Jan 08, 2021 12:07 pm
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 52056

Re: Well, is this the end?

Ok, so I'm going to show 5 screenshots of my PC in action with a quick basic program. I guess this interface allows me to upload one file at a time, so I'll have to make another post with the remaining screenshots as a zip ile