Search found 41 matches

by mikefromca
Fri Jan 08, 2021 11:34 am
Forum: Pete's QB Site News
Topic: Well, is this the end?
Replies: 17
Views: 84717

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

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...
by mikefromca
Tue Jan 05, 2021 12:59 am
Forum: News and Announcements
Topic: QB 4.0 ERROR: Length incorrect with certain string variables
Replies: 1
Views: 8962

QB 4.0 ERROR: Length incorrect with certain string variables

I have confirmed this on two instances that an incorrect value is returned each time in both Qbasic 1.1 and QuickBasic 4.0. The code is this: DIM SHARED v as STRING * 100 PRINT LEN(want$) 'Prints 100 instead of 3!!! FUNCTION want$ v$="123" want$=v$ END FUNCTION To make this bug happen, the...
by mikefromca
Mon Jan 04, 2021 10:54 pm
Forum: General Discussion
Topic: Trouble getting extended memory version in Qbasic
Replies: 1
Views: 7595

Re: Trouble getting extended memory version in Qbasic

OK, I think I fixed it. for my calls to the XMS code I needed to add the FAR keyword in asm. This is my new assembly code that works: segment code ;XMS ACCESS ;Call absolute(codeseg+ptr,dataseg+ptr,codeseg+ptr) ;Type xms... ;int: func ;int: install check ;int: xms ver ;dint: xmsaddr main: PUSH BP MO...
by mikefromca
Mon Jan 04, 2021 8:07 pm
Forum: General Discussion
Topic: Trouble getting extended memory version in Qbasic
Replies: 1
Views: 7595

Trouble getting extended memory version in Qbasic

I followed the guide on QB chronicles to allow me to access the XMS routines, and I am still stuck. I don't know if its all because DOSBOX 0.74 is playing with XMS routines or not. This is what I read: http://www.petesqbsite.com/sections/tutorials/zines/chronicles/1-xms.html So I then created assemb...
by mikefromca
Sun Jan 03, 2021 11:15 pm
Forum: News and Announcements
Topic: An ultra-mini web server in Qbasic
Replies: 0
Views: 39231

An ultra-mini web server in Qbasic

Ok, so I finally figured out a way to get a little web server running in Qbasic without relying on "CALL interrupt" or "CALL interruptx". See attached ZIP I ended up making my own assembly routines. some function calls might not work yet as it is a work in progress but the main o...
by mikefromca
Sat Jan 02, 2021 9:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: trumpet socket driver not responding with data
Replies: 0
Views: 39027

trumpet socket driver not responding with data

Right now I'm trying to reinvent the TCP/IP initialization routine (tcpinit()) from: http://rubbermallet.org/software/webserv.html because I ran his software as a server and there have been lockups. He mentioned he would offer a new release on his site but never did. what he did was use "call i...
by mikefromca
Sat Jan 02, 2021 7:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Caling custom interrupt without using "call interrupt"
Replies: 1
Views: 7708

Caling custom interrupt without using "call interrupt"

I was fiddling around with webserv.bas from http://rubbermallet.org/software/webserv.html and am still doing so especially now that it breaks down after each HTTP request. I could partly blame some web browsers because they like to do prefetching. So now I want to make the software even faster by re...
by mikefromca
Sat Jan 02, 2021 3:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: properly formatting asm code to make it QB ready
Replies: 2
Views: 11032

properly formatting asm code to make it QB ready

I almost lost it because I spent a few hours trying to understand why a simple piece of assembly code would not work and it turned out after further examination that it wasn't formatted correctly for QB. I want to know of a simple way to import assembly code into my QB program. Because my only dos i...
by mikefromca
Fri Oct 18, 2019 12:21 am
Forum: QBASIC and QB64 Questions & Answers
Topic: seeking tcpip info for qb45
Replies: 15
Views: 55052

Re: seeking tcpip info for qb45

Here's your answer with source codes:

http://rubbermallet.org/software.html
by mikefromca
Fri Oct 18, 2019 12:17 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Is there a way to delay less than a second?
Replies: 3
Views: 24282

Re: Is there a way to delay less than a second?

That makes a delay of 0.1 seconds (1/10th) of a second. Adjust the number to suit your fancy.

Code: Select all

start#=timer
Do
loop until (timer - start#) >= 0.1
by mikefromca
Fri Oct 18, 2019 12:14 am
Forum: QBASIC and QB64 Questions & Answers
Topic: is there a hot key to break an endless loop which is running
Replies: 9
Views: 45792

Re: is there a hot key to break an endless loop which is running

you could try CTRL+C but then its like CTRL+BREAK but you'd lose status. In a Qbasic program you need to modify your endless loop from: Do **insert whatever Loop To: Do **insert whatever if inkey$="X" then reset system end if **insert whatever Loop but replace "X" with the actual...
by mikefromca
Fri Oct 18, 2019 12:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Parallelport communication.
Replies: 6
Views: 24269

Re: Parallelport communication.

the beyondlogic.org used to host information about the PC parallel ports but they have since changed their whole site around. Luckly I found a copy of such a resource on the net still. Have a look: http://wearcam.org/seatsale/programs/www.beyondlogic.org/spp/parallel.htm Parallel port has 3 modes of...
by mikefromca
Thu Oct 17, 2019 11:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Excessive QB volume on Dell Latitude computer
Replies: 2
Views: 19482

Re: Excessive QB volume on Dell Latitude computer

From a general QB programming standpoint, volume is always fixed and sounds using qbasic commands only will go through the PC speaker. Now if you want to get crazy with hardware, feel free to open your computer, and add a resistor (electronic part) in series with the speaker so that it can be quiter...
by mikefromca
Thu Oct 17, 2019 11:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: qbasic won't start
Replies: 5
Views: 26518

Re: qbasic won't start

Well if the poster returns, what I suggest is to download Qbasic from the internet and put it in its own folder then download DosBox. then run DosBox and run Qbasic from within it.
by mikefromca
Thu Oct 17, 2019 11:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: exe files
Replies: 1
Views: 18231

Re: exe files

I'm guessing you want to set the path of a new exe file you're compiling with Quickbasic. In that case, you would have to specify the entire filename in the prompt that appears when it asks you for the filename, not just the filename itself. Example: c:\path\to\new.exe Not: new.exe But if you want t...
by mikefromca
Thu Oct 17, 2019 11:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Finding little-endian values of 24-bit numbers
Replies: 2
Views: 18518

Re: Finding little-endian values of 24-bit numbers

I was thinking more endian on byte-level not bit level.

For example,

Converting &H0000FE to &HFE0000 programmatically with simple commands, not multiple for-next loops going through each ascii character.

Perhaps I should learn more 8086 assembly and use call absolute more.
by mikefromca
Thu Oct 17, 2019 11:13 pm
Forum: General Discussion
Topic: Greatest resources of the QBASIC.EXE file so far
Replies: 0
Views: 83188

Greatest resources of the QBASIC.EXE file so far

Not only does it contain Qbasic, but its all setup as a boot image as well. See: https://www.allbootdisks.com/download/dos.html And looking at the contents listing at: https://www.allbootdisks.com/disk_contents/dos.html I find that if you download DOS 5.0 or higher, you'll get QBASIC.EXE and QBASIC....
by mikefromca
Thu Oct 17, 2019 11:02 pm
Forum: General Discussion
Topic: Images stored on photobucket are not hot-linkable
Replies: 1
Views: 17744

Images stored on photobucket are not hot-linkable

I was just browsing a few posts here and some contained direct links to image files stored on photobucket.com but when I looked at them, the images were extremely blurry and have the grey photobucket logo stamped on them. Its too bad there isn't a better service to share real images out there withou...
by mikefromca
Thu Oct 17, 2019 10:24 pm
Forum: News and Announcements
Topic: Anyone want to use networking in Qbasic?
Replies: 0
Views: 90581

Anyone want to use networking in Qbasic?

This guy has some pretty good software you can use to interface with DOS TCP/IP and Quick Basic. All that's needed to be loaded is the network packet drivers and Trumpet TCP ntcpdrv.exe then this web server is a beauty to serve single-pages. Heck, if you know enough programming, you can tweak it to ...