1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2006
    Rep Power

    Thumbs down [Homework] - Assember Project Help Urgent!!!

    ive an assembly project for tuesday and im a bit screwed.
    the program has to count the average time between keystrokes and print the answer to the screen.
    im only allowed use bios interuppts because its to be included in a TSR.
    its not acceptable to just count the keystrokes and divide the time the TSR has been active by the total keystrokes.i have to add up the times between each keystroke.

    any help at all would be appreciated!!

    Vinnie Rafter
  2. #2
  3. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    England, UK
    Rep Power
    We don't do homework.

    you may want to use the INT, ADD, DIV, PUSH, POP and INC instructions. Apart from that, you'll have to do your own research.

    And in future, you may want to look at specifiying what flavour of ASM it is. I've given you intel codes. You may also want to look at the difference between nasm and gas. something like

    .long 5

    isn't going to work under both...

IMN logo majestic logo threadwatch logo seochat tools logo