JavaScript is required to use Bungie.net

Forums

originally posted in: Official Programming Thread
Edited by Malfar: 1/11/2013 6:27:17 PM
1
I have a question. In what case is it best to use an inline assembler? Or when should inline assembley be used?
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by Funkbrotha10: 1/11/2013 9:02:20 PM
    good question. If you have to ask "when should inline assembly" be used. chances are you don't have a situation that require the use of it. It is commonly used in embedded systems development, operating system development, etc. to do things that your higher level language can't to easily. for example. If I am making a simple kernel in C and I need have a function to call the bios video interrupt. I could do something like this. void CallVideoInterrupt() { -----__asm -----{ ----------mov ah,0 ----------int 0x10 -----} } so I guess one of the main uses for it is to expose low level functionality that you main high level language ( C/C++ ) doesn't have.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon