Re: [cc65] simple assembly interrupt handler

From: PH <shackman1alpinecom.net>
Date: 2006-01-04 00:27:36
Groepaz wrote:

>On Tuesday 03 January 2006 21:10, Ullrich von Bassewitz wrote:
>
>  
>
>>Just look at the source. From libsrc/nes/crt0.s:
>>---------------------------------------------------------------------------
>>.segment "VECTORS"
>>
>>        .word   irq2        ; $fff4 ?
>>        .word   irq1        ; $fff6 ?
>>        .word   timerirq    ; $fff8 ?
>>        .word   nmi         ; $fffa vblank nmi
>>        .word   start       ; $fffc reset
>>        .word   irq         ; $fffe irq / brk
>>---------------------------------------------------------------------------
>>
>>Not only there are questionmarks after the vectors, all of the labels do
>>also point to an "rti" instruction.
>>    
>>
>
>yeah, by the time i made the NES stuff i wasnt familiar with the NES at all 
>(i'm still not :=P), and i based it on some code i found on the net. so those 
>could indeed be totally wrong and useless :)
>
>  
>
I just realized that Groepaz had put a waitvblank() function in the 
library, so I don't really need to mess with the interrupt vectors at 
all.  I wish I had seen that earlier.  I'll just chalk it up to a 
learning experience I guess.  Thanks for the help guys!

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 Wed Jan 4 00:25:06 2006

This archive was generated by hypermail 2.1.8 : 2006-01-04 00:25:10 CET