6502-OS/test.s65

56 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2023-12-08 22:56:35 +01:00
;.include "system/system.h65"
;.segment "CODE"
2023-10-26 19:51:20 +02:00
2023-12-08 22:56:35 +01:00
;;********************************************************************************
;; Interrupts
;;********************************************************************************
;nmi:
; rti
;irq:
; .repeat 20
; .endrepeat
; rti
2023-10-26 19:51:20 +02:00
2023-12-08 22:56:35 +01:00
;;********************************************************************************
;; Reset sequence
;;********************************************************************************
;reset:
; sei
; ; setup io2 bank a 1-3
; lda #%11111111
; sta IO1 + IO_DDRA
; sta IO1 + IO_DDRB
2023-10-26 19:51:20 +02:00
2023-12-08 22:56:35 +01:00
;@loop:
; lda #%00000000
; sta IO1 + IO_RA
; .repeat 3
; nop
; .endrepeat
; lda #%11111111
; sta IO1 + IO_RA
; .repeat 15
; nop
; .endrepeat
2023-10-27 16:50:58 +02:00
2023-12-08 22:56:35 +01:00
; lda #%00000000
; sta IO1 + IO_RB
; .repeat 5
; nop
; .endrepeat
; lda #%11111111
; sta IO1 + IO_RB
; .repeat 10
; nop
; .endrepeat
; bra @loop
2023-10-26 19:51:20 +02:00
2023-12-08 22:56:35 +01:00
;;********************************************************************************
;; reset vector
;;********************************************************************************
;.segment "RESET_VECTOR"
; .word nmi
; .word reset
; .word irq
2023-10-26 19:51:20 +02:00