Hello, On 2011-07-10 02:11, Ullrich von Bassewitz wrote: > Hi! > > On Fri, Jul 08, 2011 at 11:19:30PM +0200, marcas wrote: >> Which memory adresses do I have to save to restore the state before >> the interrupt? > See the faq: http://wiki.cc65.org/doku.php?id=cc65:interrupt_handlers_in_c > > The answer points to example code in the source package. > Well, I should read the FAQ first before posting.... thanks for the hint, I did not think about that. >> P.S.: Rectangle of TGI needs optimization :-) > What do you mean? tgi_bar? > Yes, tgi_bar. I mentioned it because i want do draw a Sierpinski carbet. Well this code also need some optimization :-). But The most time is required to draw the filled rectangles I think (beside the high stack processing due to recursion). void DoSierpinskiCarpet(uint16_t x0L, uint8_t y0L, uint16_t width, uint8_t hight) { uint8_t k,b,h; if (width>2 && hight>2) { b = width/3; h = hight/3; tgi_bar (x0L+b, y0L+h,x0L+2*b, y0L+2*h); for (k=0; k<9; k++) if (k!=4) DoSierpinskiCarpet (x0L+(k/3)*b, y0L+(k%3)*h, b, h); // Rekursion } } I had a look at c64-320-200-2.s and i think it is also mentioned in the source comments. I think it could be optimized by at least replacing the jsr to tgi_line in any way. I am currently also do some brainstorming to get a faster solution for drawing filled and unfilled non rotated rectangles with VIC... As soon as I got a solution I will post it. Kind regards marcas > Regards > > > Uz > > ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Jul 10 14:22:43 2011
This archive was generated by hypermail 2.1.8 : 2011-07-10 14:22:46 CEST