Home > other >  Of the new assembly language on the problem of logging data
Of the new assembly language on the problem of logging data

Time:09-23

I ask you, how to define the ten digits into my good space? Such as,78 55, 100, just like the image below, I only know the number of units to store, how to use the MOV multibit AH, AH 0 after input to save?
I want to achieve is my 98 such multibit input from the keyboard, then press enter to continue to enter the next number such as 100, succeeded with a number in memory to save, how should do?
Please answer, thank you!

CodePudding user response:

This, write their own code, to many instructions, generally is circulation processing, for a number, to initialize an object, first register or memory location, set it to 0, and then see the characters one by one, and if the numeric characters, a reduction of another 30 h into corresponding numerical, just The Times ten plus this number, save back, if not numeric characters, completion of the current data, to save the value to the final place, then deal with the next data, until the end,

CodePudding user response:

reference 1/f, zara's reply:
this, write their own code, to many instructions, generally is circulation processing, for a number, to initialize an object, first register or memory location, set it to 0, and then see the characters one by one, and if the numeric characters, a reduction of another 30 h into corresponding numerical, just The Times ten plus this number, save back, if not numeric characters, completion of the current data, to save the value to the final place, then deal with the next data, until the end,

Thank you, as you thought I write out!
  • Related