Help with CALL ABSOLUTE

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Ajax
Newbie
Posts: 1
Joined: Sat Jun 09, 2007 3:20 pm
Location: NJ

Help with CALL ABSOLUTE

Post by Ajax »

Im trying to learn to use ASM with QB and everytime I do it says Subprogram not defined and CALL is highlighted. Anyone know what the problem is?
_MOUSEX is not the answer
_MOUSEX is the question
Yes is the answer
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

show us your code, and we might be able to shine a light...
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
Erik
Veteran
Posts: 72
Joined: Wed Jun 20, 2007 12:31 pm
Location: LI, NY
Contact:

Post by Erik »

If you're using Qbasic it should work but in Quick Basic you need the following:
http://www.qbasic.com/classic/q&a.html wrote: ...load QBasic up like this from the command line: qb /l. This will fix all of your problems with programs that use the CALL ABSOLUTE command. Have fun.
Hope that helps!
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

Anywayz, just show us the code... It might be easier to pinpoint the location of the problem...
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
Patz QuickBASIC Creations
Veteran
Posts: 399
Joined: Wed Mar 02, 2005 9:01 pm
Location: Nashville, Tennessee
Contact:

Post by Patz QuickBASIC Creations »

Yeah, some code would be nice.

But, to be safe, try this: Load QuickBASIC with the /l option, which loads the QB library for assembly support (like CALL ABSOLUTE). Then, add the following line somewhere in the start of your program:

Code: Select all

'$INCLUDE 'qb.bi'
Post Reply