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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/24/07 12:12
Modified:
  05/24/07 12:40

Read: times


 
#139738 - a goof
Responding to: ???'s previous message
mov a,dph
cjne a,#075h,Next
here if they are EQUAL no need to do anything
carry has no meaning in the next instruction

jnc error ;if c is set, acc must be lower than 75h
;if c is clr, acc is higher or equal to 75


should be:
cjne .. different
jmp equal

different: jc ....

Erik

List of 11 messages in thread
TopicAuthorDate
compare two values, jump if greater or equal            01/01/70 00:00      
   "the bible" ch 2 gives the answer            01/01/70 00:00      
   compare & jump if higher            01/01/70 00:00      
      a goof            01/01/70 00:00      
      How about...            01/01/70 00:00      
   CLR C            01/01/70 00:00      
      compare and jump...            01/01/70 00:00      
      Why?            01/01/70 00:00      
      wrong!            01/01/70 00:00      
      no need            01/01/70 00:00      
   add a,#(0x100-0x75), jc ...            01/01/70 00:00      

Back to Subject List