|
-
Jul 4th, 2001, 09:58 AM
#1
Thread Starter
New Member
what is call absolute (x,x,x)
I downloaded some mouse code programs to use in my own program
but in all downloaded codes there is an error "sub program not defined" at the line which start with call absolute (--
my mouse connected to ps2
please How can I solve this problem to enable mouse in my qbasic programm
-
Jul 13th, 2001, 11:44 AM
#2
Junior Member
start qbasic with this command line (or something like it)
C:\qbasic4.5\QB.EXE /L QB.QLB
then your 1st line should be
Code:
REM $INCLUDE: 'QB.BI'
if it still doesn't work, try taking out the include part
-
Aug 1st, 2001, 06:41 AM
#3
Fanatic Member
call absolute is used to put asm code inside your program
btw, using a mouse doesn't need that complex stuff, interrupts will do the trick.
Mouse functions are in interrupt 33h
with just a few lines of code i am able to show the mouse
'$include:'qb.bi'
dim Regs as RegType
Regs.AX=&H1 'function 1 shows the mouse
call INTERRUPT(&H33,Regs,Regs)
'OK, second one...
Regs.AX=&H3 'function 3 get the status
call interrupt(&H33,Regs,Regs)
'well, look up for an interrupt book and experiment with your QB
don't forget to load QB with the argument /L
BTW, ASM is great!
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Aug 1st, 2001, 09:35 AM
#4
Addicted Member
Ok, I have just a few questions. Firstly, what does loading QB up with the argument /L do? Secondly, why include the file 'qb.bi'? What does it do? Lastly, where can I find out all the interrupts for specific devices?
Cheers
-
Aug 2nd, 2001, 09:28 PM
#5
Fanatic Member
/L argument will load the file QB.QLB
this is a quick library
this library contains subs and functions which you can use
kinda like Windows' DLL or API
you just include it and call its functions
'$include:'qb.bi' will declare the functions you have included
QB.QLB or QB.LIB contains CALL INTERRUPT, ABSOLUTE, INT86...
BTW, you can create your own library...
just try this code...
sub PrintABCToScreen ()
print "abc"
end sub
'Then goto RUN > Make library 'give it a name, say, ABC.QLB
'then exit QB
'load QB with the argument /LABC.QLB
'then type this in your source...
declare sub PrintABCToScreen
PrintABCToScreen
'There will be ABC on the screen
'Just get some tutorials regarding library...
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Aug 3rd, 2001, 08:31 AM
#6
Addicted Member
Thanks a lot jian2587 m8. You've been a graet help
-
Nov 27th, 2001, 11:31 PM
#7
Fanatic Member
I can do better than that...
I am currently writing a mouse driver using pure
QuickBasic45 codes. Without ASM nor external libraries.
Pure QuickBasic codes.
Think it's impossible? No, it isn't. After mouse driver, I am
gonna make a display driver, all in QuickBasic. Though, some
have to be coded in ASM to make things faster.
Later, gonna code all this stuff in ASM. Then write my first
OS, PMODE kernel, multitasking environment, GUI, compatibility
with all sorts of hardware, and B4 that, gonna code a QB
assembler{What!? QB assembler?} Yes, converts QB to pure
assembler codes that doesn't requires MS-DOS interrupts.
It's 386 codes...
Even better than moonrock.
Ah, things been so wonderful?
Then, if I am able to start my own company, gonna sell this
OS for <$50 or even <$10 with tonnes of features and good GUI.
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|