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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/15/05 16:49
Read: times


 
#89734 - divide and conquer
Responding to: ???'s previous message
Even in assembler it is a good practice to try to divide the program into smaller self-contained routines. Usually, these routines are short enough, so the short jumps (conditionals, cjne, djnz) suffice.
Then, you "stitch" together these routines, possibly with long jums and/or calls.

But if you desperately need a long cjne and similar, you can consider jumping to a close location, with a ljmp to the desired far destination.

Jan Waclawek


List of 8 messages in thread
TopicAuthorDate
CJNE : Address out of range >_<;            01/01/70 00:00      
   Need a jump table            01/01/70 00:00      
   invert the test            01/01/70 00:00      
      CJNE -> invert?            01/01/70 00:00      
         just what I posted.            01/01/70 00:00      
   divide and conquer            01/01/70 00:00      
      I call them crutches            01/01/70 00:00      
   try this thread            01/01/70 00:00      

Back to Subject List