Re: [cc65] C64, Interrupt and in need of an example

From: Groepaz <groepaz1gmx.net>
Date: 2008-02-28 01:44:41
On Donnerstag 28 Februar 2008, Markus Stehr wrote:
> Hi!
>
> Could someone please provide me with an usable example for an interrupt
> for the C64? I have been reading the manual and asked Google for 2 hours
> now and i am as clueless as i was 2 hours ago.

sei
lda #>irq
sta $0315
lda #<irq
sta $0314
lda #$7f
sta $dc0d
lda #$01
sta $d01a
lda #$32
sta $d012
lda #$1b
sta $d011

lda #0
tax
tay
jsr init	; $1000

cli
rts

irq:
inc $d020
jsr play	; $1003
dec $d020
jmp $ea31

... something like that :)

-- 

http://www.hitmen-console.org
http://www.pokefinder.org
http://ftp.pokefinder.org

Two Dyslexics walk into a bra.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Feb 28 01:44:42 2008

This archive was generated by hypermail 2.1.8 : 2008-02-28 01:44:44 CET