So im trying to write a script for class on how to take a users input (to be exact 4 inputs)...
year1, year2, year3, year4
while each get assigned 1 number of the year (2004 for example would be 2, 0 ,0, 4)
Then I need to output it as well... (after doing a bit of math to convert the 4 digits to the whole 2004 again.)
Im not looking for the answer to do the whole thing just the commands to get the input and how to set it to a varible. I have no clue where to start... Trying to read our book is confusing as hell and I have yet to find a good resource online.
(BTW I would ask my teacher but hes a dick and wont give us an answer since we are #1 our partners #2 other people are #3 book is in there somewhere and he is last... Yet when in class he barely goes over it either...)
Thanks for any help you can give me.
EDIT: Forgot to say we are at the basics of assembly so no macros, or calling any libraries... things like push, pop, mov, add, mul, div, idiv etc... The basics...
year1, year2, year3, year4
while each get assigned 1 number of the year (2004 for example would be 2, 0 ,0, 4)
Then I need to output it as well... (after doing a bit of math to convert the 4 digits to the whole 2004 again.)
Im not looking for the answer to do the whole thing just the commands to get the input and how to set it to a varible. I have no clue where to start... Trying to read our book is confusing as hell and I have yet to find a good resource online.
(BTW I would ask my teacher but hes a dick and wont give us an answer since we are #1 our partners #2 other people are #3 book is in there somewhere and he is last... Yet when in class he barely goes over it either...)
Thanks for any help you can give me.
EDIT: Forgot to say we are at the basics of assembly so no macros, or calling any libraries... things like push, pop, mov, add, mul, div, idiv etc... The basics...