Results 1 to 7 of 7

Thread: what is call absolute (x,x,x)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    7

    Unhappy 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

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Posts
    28
    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

  3. #3
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  4. #4
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183
    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

  5. #5
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    /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

  6. #6
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183
    Thanks a lot jian2587 m8. You've been a graet help

  7. #7
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963

    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
  •  



Click Here to Expand Forum to Full Width