megadrive_test2
diff src/startup.s @ 1:2560a8be8cb8
hblank interrupt test
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 14 Mar 2017 09:02:43 +0200 |
parents | ce1b05082ac4 |
children | b22bc95f0cc0 |
line diff
1.1 --- a/src/startup.s Tue Mar 14 05:59:33 2017 +0200 1.2 +++ b/src/startup.s Tue Mar 14 09:02:43 2017 +0200 1.3 @@ -4,7 +4,7 @@ 1.4 .global start 1.5 .global halt_cpu 1.6 start: 1.7 - bsr.s disable_intr 1.8 + jsr disable_intr 1.9 1.10 | copy .data section from ROM to RAM 1.11 move.l #_data_lma, %a0 1.12 @@ -30,18 +30,8 @@ 1.13 | setup the stack pointer stack 1.14 move.l #_stacktop, %sp 1.15 | now that we have a stack, we can enable interrupts 1.16 - bsr.s enable_intr 1.17 + jsr enable_intr 1.18 1.19 jsr main 1.20 halt_cpu: 1.21 stop #0x2700 1.22 - 1.23 -.global enable_intr 1.24 -enable_intr: 1.25 - andi.w #0xf8ff, %sr 1.26 - rts 1.27 - 1.28 -.global disable_intr 1.29 -disable_intr: 1.30 - ori.w #0x0300, %sr 1.31 - rts