+ Reply to Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 38
Like Tree1Likes

Thread: On The Theory of Interrupts

  1. #11
    Wire Noob Nathanmini's Avatar
    Join Date
    Aug 2008
    Posts
    13

    Default Re: On The Theory of Interrupts

    Quote Originally Posted by Hitman271 View Post
    Interrupts Fail!

    First off, interrupts go through the nmi input on the cpu. That example code is for a nmi input of 32. If nothing goes through the nmi input, then it does nothing. Try giving the nmi input a 32 next time and see what happens.
    lol i did put 32 into the nmi input and it still facked up on me

  2. #12
    GMech Developer InfectiousFight's Avatar
    Join Date
    Jun 2007
    Location
    Houston, TX
    Posts
    537

    Default Re: On The Theory of Interrupts

    Hmm...so it appears then, that if I want an interrupt to be activated immediately when a certain button is pressed, there must be an outside device to check the button status and then deliver the interrupt through the NMI input?

  3. #13
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: On The Theory of Interrupts

    Quote Originally Posted by InfectiousFight View Post
    Hmm...so it appears then, that if I want an interrupt to be activated immediately when a certain button is pressed, there must be an outside device to check the button status and then deliver the interrupt through the NMI input?
    Yes. Alternatively, you could wire the button up to the IOBus, check it in the CPU code, and call the interrupt from there.

  4. #14
    GMech Developer InfectiousFight's Avatar
    Join Date
    Jun 2007
    Location
    Houston, TX
    Posts
    537

    Default Re: On The Theory of Interrupts

    Well obviously...but then the interrupt code wouldn't be executed until the program actually reached the point in execution where it checked the button. And then, how is that any different from a regular Call?

  5. #15
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Thumbs up Re: On The Theory of Interrupts

    Quote Originally Posted by InfectiousFight View Post
    Well obviously...but then the interrupt code wouldn't be executed until the program actually reached the point in execution where it checked the button. And then, how is that any different from a regular Call?
    Touché.

  6. #16
    Wirererer dnifan's Avatar
    Join Date
    Mar 2007
    Location
    Amersfoort, the Netherlands
    Posts
    330

    Default Re: On The Theory of Interrupts

    Quote Originally Posted by InfectiousFight View Post
    Well obviously...but then the interrupt code wouldn't be executed until the program actually reached the point in execution where it checked the button. And then, how is that any different from a regular Call?
    And that's why you need a Non-masked interrupt. Alternative, is threading.


    ^ 51mbps Fiber ftw [03:32] <ITSBOT> lua serializing function to be
    intergrated into xbox live
    [03:34] <ITSBOT> no girlfriend for a pineapple under the Channels

  7. #17
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: On The Theory of Interrupts

    Interrupts have one advantage over calls: you don't need to know address of call method.
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  8. #18
    Wire Noob MulleDK18's Avatar
    Join Date
    Mar 2008
    Location
    Denmark
    Posts
    23

    Default Re: On The Theory of Interrupts

    mov edi,init_table// This is so we can do stuff inside the table
    Shouldn't that be Int_Table and not InIt_Table ?
    Connect with WIREMOD.
    - sloganizer.net

    Full time nerd, ASM lover, Wire Enthusiast.

  9. #19
    Wire Sofaking Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    731

    Default Re: On The Theory of Interrupts

    Quote Originally Posted by MulleDK18 View Post
    Shouldn't that be Int_Table and not InIt_Table ?
    Fixed.

    That keyboard example will have to come later, as I am busy with gpu projects at the moment.
    Quote Originally Posted by Anticept View Post
    This is not some place where you can toss your dick around and expect people to suck it.
    Community Gpu Thread. Post Yours!

    Bouncy Ball

  10. #20
    Wire Sofaking -=Fox=-'s Avatar
    Join Date
    Feb 2007
    Location
    Somewhere in my Mind...
    Posts
    1,846
    Blog Entries
    7

    Default Re: On The Theory of Interrupts

    I know this is a bit of a necro-post BUT! I've been trying to get interrupts to work and the above code compiles and doesn't appear to be working.

    Did something change for the CPU?
    http://tiny.cc/OMFGWTFBBQ

    Best People On Wiremod!

    Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015

    Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
    So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
    My IQ is 123

+ Reply to Thread
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Interrupts (like unicorns)
    By InfectiousFight in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 12-03-2008, 09:47 AM
  2. All about Interrupts - because you wanted it...
    By dnifan in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 4
    Last Post: 10-06-2008, 12:36 PM
  3. Conspiracy Theory: OMG REAL GMAN!?!?!?
    By turck3 in forum Wiremod General Chat
    Replies: 7
    Last Post: 05-13-2008, 06:12 PM
  4. theory
    By Admung in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 02-19-2008, 08:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots