Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right shift to boot directly to GEM #19

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/main.s
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,22 @@ pre_auto:
trap #14
addq.l #2,sp

; Now check the left shift key. If pressed, exit.
; Now check the left or right shift key. If pressed, exit.
move.w #-1, -(sp) ; Read all key status
move.w #$b, -(sp) ; XBIOS Get shift key status
move.w #$b, -(sp) ; BIOS Get shift key status
trap #13
addq.l #4,sp

dbf d7,.ddell

btst #1,d0
btst #1,d0 ; Left shift
bne.s adjust_mem

dbf d6, .print_loop
btst #0,d0 ; Right shift skip and boot GEM
bne.s boot_gem

dbf d7, .ddell

dbf d6, .print_loop
boot_gem:
; If we get here, continue loading GEM
rts

Expand Down Expand Up @@ -206,7 +209,8 @@ run_configurator_avoid_p_pointer:
jmp (a1)

welcome:
dc.b "Press LEFT SHIFT to autoboot the",13,10,"SidecarT Configurator.",13,10,0
dc.b "Press LEFT SHIFT to autoboot the",13,10,"SidecarT Configurator.",13,10
dc.b "Press RIGHT SHIFT to skip and boot to",13,10,"GEM now.",13,10,0

to_gem:
dc.b 13,10,"Or GEM will load in ",0
Expand Down
Loading