6502-OS/test.s65

59 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-10-26 19:51:20 +02:00
.include "system/system.asm6502"
.segment "CODE"
;********************************************************************************
; Interrupts
;********************************************************************************
nmi:
rti
irq:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
rti
;********************************************************************************
; Reset sequence
;********************************************************************************
reset:
sei
; setup io2 bank a 1-3
lda #%11111111
sta IO1 + IO_DDRA
@loop:
lda #%00000000
sta IO1 + IO_RANH
.repeat 3
nop
.endrepeat
lda #%11111111
sta IO1 + IO_RANH
.repeat 5
nop
.endrepeat
bra @loop
;********************************************************************************
; reset vector
;********************************************************************************
.segment "RESET_VECTOR"
.word nmi
.word reset
.word irq