Hello All, I'm attempting to convert the excellent tutorial assembly program in the NES 101 document by Michael Martin to cc65 c. I think I can get it 99% there, but I can't seem to do the interrupt handler in c, at least according to the cc65 faq. Here is the interrupt handler code that I need to convert. vblank: jsr scroll'screen jsr update'sprite jsr react'to'input irq: rti .advance $FFFA .word vblank, reset, irq As I understand it, $FFFA is the memory address where the interrupt looks for the handler to jump to. In this case, I am mostly interested in the vblank isr, as I need to update the video ram buffer during the video blank interval. In the original code, several things are updated in the handler by calling the 3 subroutines, but I think if I could just set a vblank flag variable in the handler and do the updates in my main code loop, that would be fine. So, if I want to do this, I think I need to use a linker config file and a .segment command to place the handler address at $FFFA, but I'm not sure how to do that, since I don't know how I specify where I want to jump to. Can someone help me out with a bit of example code or something? Any help is appreciated. Thanks, Paul ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Jan 2 23:22:35 2006
This archive was generated by hypermail 2.1.8 : 2006-01-02 23:22:39 CET