Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

ASCII codes

NocNoc Member Posts: 1
i want to make a program in asm which has to do the following:
a)memorize the ASCII codes of the keys i press, until i press Escape
b)calculate the sum of those ascii codes
Any help would be appreciated

(PS sorry for my poor english, i am roumanian)

Comments

  • AtexAtex Member Posts: 268
    : i want to make a program in asm which has to do the following:
    : a)memorize the ASCII codes of the keys i press, until i press Escape
    : b)calculate the sum of those ascii codes
    : Any help would be appreciated
    :
    : (PS sorry for my poor english, i am roumanian)

    Set up a buffer if you need to memorize more than what the keyboard buffer could hold, don't forget to make it circular (ie. buffer index to jump to the first element after reaching the and, same as keyboard buffer does ) so you wont overwrite something else during recording. Set a register to hold the sum of the ascii values, add the value to that register each time a key is pressed, assuming is not the Esc key.
Sign In or Register to comment.