; ; original audiotest.s by PeT (mess@utanet.at) ; ; cl65 -t gamate -o audiotest.bin audiotest.s ; .include "gamate.inc" .zeropage addr: .word 0 psa: .word 0 readaddr: .word 0 editbuffer1: .byte 0,0,0,0, 0,0,0,0 writeaddr: .word 0 editbuffer2: .byte 0,0,0,0, 0,0,0,0 cursor: .byte 0 controlslast: .byte 0 controlsedge: .byte 0 .bss temp_x: .byte 0 temp_y: .byte 0 temp_a: .byte 0 irq_count: .byte 0 nmi_count: .byte 0 psx: .byte 0 psy: .byte 0 xpos: .byte 0 ypos: .byte 0 .rodata chars: .incbin "cga2.chr" hex2asc: .byte "0123456789abcdef" .code ;------------------------------------------------------------------------------- .export IRQStub, NMIStub .proc NMIStub inc nmi_count rts .endproc .proc IRQStub inc irq_count rts .endproc ;------------------------------------------------------------------------------- .export Start .proc Start sei lda #0 sta ZP_IRQ_CTRL lda #>AUDIO_BASE sta writeaddr+1 sta readaddr+1 lda #chars sta addr+1 ldx #8 ldy #0 printsign1: lda (addr),y sta LCD_DATA iny dex bne printsign1 ldx temp_x ldy temp_y rts .endproc