Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/30/00 14:57
Read: times


 
#6852 - RE: atmel 89c51 hangs on "subb"
Hi Aries,

you must clear the carry flag:

clr c
mov a,#20h
subb a,#45h

Also you can never get DDh, since 20h - 45h = DBh.
Your simulator is wrong.


Peter

List of 6 messages in thread
TopicAuthorDate
atmel 89c51 hangs on "subb"            01/01/70 00:00      
RE: atmel 89c51 hangs on "subb"            01/01/70 00:00      
RE: atmel 89c51 hangs on "subb"            01/01/70 00:00      
RE: atmel 89c51 hangs on "subb"            01/01/70 00:00      
RE: atmel 89c51 hangs on "subb"            01/01/70 00:00      
RE: atmel 89c51 hangs on "subb"            01/01/70 00:00      

Back to Subject List