From 1441f7750df522e5692cecc4f815b050e19e684e Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 12 Nov 2024 11:52:07 -0500 Subject: [PATCH] driven: hook up maglev --- demos/driven/start.s | 52 ++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/demos/driven/start.s b/demos/driven/start.s index 5529f251..6ebc05b4 100644 --- a/demos/driven/start.s +++ b/demos/driven/start.s @@ -174,31 +174,7 @@ load_program_loop: jsr $8000 .endif - ;======================= - ;======================= - ; Run Maglev - ;======================= - ;======================= -.if 0 - sei ; stop music interrupts - jsr mute_ay_both - jsr clear_ay_both ; stop from making noise - ; load maglev - - lda #PART_MAGLEV ; Maglev - sta WHICH_LOAD - jsr load_file - - - ; restart music - - cli ; start interrupts (music) - - ; run maglev - - jsr $4000 -.endif .if 0 ;======================= @@ -228,6 +204,34 @@ load_program_loop: jsr $8000 .endif + + ;======================= + ;======================= + ; Run Maglev + ;======================= + ;======================= +.if 1 + sei ; stop music interrupts + jsr mute_ay_both + jsr clear_ay_both ; stop from making noise + + ; load maglev + + lda #PART_MAGLEV ; Maglev + sta WHICH_LOAD + jsr load_file + + + ; restart music + + cli ; start interrupts (music) + + ; run maglev + + jsr $4000 +.endif + + ;======================= ;======================= ; Load GRAPHICS