hassan ali
Member level 2

hi , sorry for my English
i have connected my project (8051 interface with keypad), the keypad output is in decimal,
so by example (if i write 800 using keypad)i want to take this number and then subtract this number from (65535) and then load the counter (TH0 , TL0) with the output result from the subtraction process, how can i do this ?????
note:i am using Assembly language, and i want to do it using Assembly.
i have connected my project (8051 interface with keypad), the keypad output is in decimal,
so by example (if i write 800 using keypad)i want to take this number and then subtract this number from (65535) and then load the counter (TH0 , TL0) with the output result from the subtraction process, how can i do this ?????
note:i am using Assembly language, and i want to do it using Assembly.