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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/30/09 11:24
Read: times


 
#164960 - Provided Code
Responding to: ???'s previous message
Chico Magalhães said:
Caleb, your code is very nice, it could be used, but, IE 91 in 11 steps it will end at 88, not 91.

You are correct, I left that as an exercise for you. There are a few ways to handle non-integer division in this situation. Does every step need to be precisely evenly spaced, or is it ok just to adjust the value for the last step? In either case you should look at the DIV OPCode, it stores the remainder in the B register.

Please post back any pseudo code or attempt at assembly. I would be more than happy to guide you.

List of 19 messages in thread
TopicAuthorDate
Values interpolation            01/01/70 00:00      
   A possible start            01/01/70 00:00      
      The Brezingham Line Drawing algorithm            01/01/70 00:00      
         http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm ?            01/01/70 00:00      
            Good method            01/01/70 00:00      
               Integer Digital Differential Analyzer            01/01/70 00:00      
   Simple scheme...            01/01/70 00:00      
      Further optimization            01/01/70 00:00      
         You are absolutely right, of course,...            01/01/70 00:00      
   Having a hard time trying to understand :(            01/01/70 00:00      
      Clarification Needed            01/01/70 00:00      
         Even more confused now            01/01/70 00:00      
            Another Shot            01/01/70 00:00      
               code            01/01/70 00:00      
                  Provided Code            01/01/70 00:00      
                     Maybe this            01/01/70 00:00      
                        Give this a try...            01/01/70 00:00      
            Look it up            01/01/70 00:00      
      Now, we have a hard time to understand...            01/01/70 00:00      

Back to Subject List