Search found 39 matches

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: 937

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).... asm$=asm$+m...
by mikefromca
Fri Feb 26, 2021 2:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Clearing half a screen fast
Replies: 2
Views: 281

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: General Discussion
Topic: properly formatting asm code to make it QB ready
Replies: 2
Views: 1478

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: 3

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: 30734

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: 281

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: 382

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: 360

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.out" for binary as #1 print...
by mikefromca
Tue Feb 02, 2021 11:57 pm
Forum: Pete's QB Site News
Topic: Revitalisation
Replies: 2
Views: 606

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: 563

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: 714

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: 664

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: 937

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: 937

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: 30734

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: 30734

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: 30734

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
by mikefromca
Fri Jan 08, 2021 11:34 am
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 30734

Its NOT the END!

Heck, in high school I was literally the best Quick Basic programmer. And now, I'm using it more than ever due to my future goal, running a lazertag center. Yes, I made custom hardware with an 8052-based microcontroller that people think is old, and meant to be abandoned but electronic shops today S...
by mikefromca
Fri Jan 08, 2021 11:11 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Maximum line length and condensing machine code
Replies: 0
Views: 2036

Maximum line length and condensing machine code

For me to make my assembly code work fast with Qbasic code in a test-like environment without involving disk access, this is what I do. 1. I setup my environment. A Linux box with KDE and QuickBasic 4.0 running in DOSBOX 2. I use a linux text editor (its called kate) to create my code, and nasm asse...