Lynx patches by Karri Kaksonen. Improvements for the graphics driver, new

serial driver.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4198 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-09-20 14:22:04 +00:00
parent 20eb942ab9
commit ec946cae51
8 changed files with 498 additions and 16 deletions

View File

@@ -196,6 +196,9 @@ UNINSTALL:
;
INIT:
; Enable interrupts for VBL
lda #$80
tsb VTIMCTLA
; Done, reset the error code
lda #TGI_ERR_OK
sta ERROR
@@ -434,19 +437,6 @@ SETDRAWPAGE:
; IRQ: VBL interrupt handler
;
TIMER0_INTERRUPT = $01
TIMER1_INTERRUPT = $02
TIMER2_INTERRUPT = $04
TIMER3_INTERRUPT = $08
TIMER4_INTERRUPT = $10
TIMER5_INTERRUPT = $20
TIMER6_INTERRUPT = $40
TIMER7_INTERRUPT = $80
HBL_INTERRUPT = TIMER0_INTERRUPT
VBL_INTERRUPT = TIMER2_INTERRUPT
SERIAL_INTERRUPT = TIMER4_INTERRUPT
IRQ:
lda INTSET ; Poll all pending interrupts
and #VBL_INTERRUPT