Results 1 to 7 of 7

Thread: Assembly Functions?

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Assembly Functions?

    Does the assembly language have any built in functions? Where could a list of them be found? And how is an assembly function called? Arent they called interupts?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No built-in functions. But MASM can access DLLs.

    You use the call instruction to call a function. In MASM you can also use ".invoke".
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

  4. #4
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    In assembly, you have procedures (basically like functions) and macros. Interrupts are BIOS routines that allows us to retrieve input, display to the console, and other various tasks.

  5. #5

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    posted by Darkwraith

    In assembly, you have procedures (basically like functions) and macros.
    Im guessing that since this is a low level language there are no built in functions though. Am i right?

    Also how do you know what interrupts are available for you to use?

    Thanks

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No built-in functions. However using a linker you can access libraries written in C or Pascal.

    Basically an interrupt is just a signal to the CPU. Those signals can come from hardware or software. If such a signal arrives, the CPU stops what it is currently doing (thus the name "interrupt") and looks up the handler for the interrupt in the interrupt table. It executes the handler up to an IRET instruction and then returns to what it was doing previously.

    Since the interrupt table is mutable any piece of software with the access rights (BIOS, OS kernel, drivers in 32-bit, all apps in 16-bit) can hook their own interrupt handlers. OSs and BIOSs do it to provide some basic functionality or OS-routines. Those are OS-dependent and you must look them up in some reference.

    See a link in the FAQ for a large table of what the interrupts are, which hardware might fire them and what the BIOS/OS does when they are fired.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

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