barbari - Are you sure the carry flag is cleared before the subb instruction? I don't think mov a,x clears it. Also you have #10h, it should be decimal.... (typo)
Here is what I do:
cjne a, #10, Lab_x ; Modify carry flag
Lab_x: jnc NotLessThan...
Mungovan,
For the < 10 I always check z and c flags after a cjne instruction. For the <= stuff, is that a pascal format for A = C, or the 'C' format for "A = A shifted C times"? If the real question is the < 10, let me know, I have many macros made for ==, <=, <, >, >=, ect...
How are you communicating with the other computer? Ethernet, Serial (RS232, USB), Parellel port, I.P.? This would help. It sounds like I'm missing something though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.