Remove "Insert Disk" menu item
This commit is contained in:
parent
7df0521e98
commit
616416ae02
16
main.asm
16
main.asm
|
@ -128,22 +128,13 @@ event_loop:
|
|||
menu_click_event:
|
||||
; r3 contains the clicked menu item
|
||||
|
||||
; insert disk
|
||||
cmp r3, 0
|
||||
ifz jmp insert_boot_disk
|
||||
|
||||
; shutdown
|
||||
cmp r3, 1
|
||||
cmp r3, 0
|
||||
ifz icl
|
||||
ifz halt
|
||||
|
||||
ret
|
||||
|
||||
insert_boot_disk:
|
||||
mov r0, 0x80001000
|
||||
out r0, 0
|
||||
ret
|
||||
|
||||
get_rom_version:
|
||||
mov r0, FOX32ROM_VERSION_MAJOR
|
||||
mov r1, FOX32ROM_VERSION_MINOR
|
||||
|
@ -332,9 +323,8 @@ menu_items_root:
|
|||
menu_items_system_name:
|
||||
data.8 6 data.str "System" data.8 0x00 ; text length, text, null-terminator
|
||||
menu_items_system_list:
|
||||
data.8 2 ; number of items
|
||||
data.8 13 ; menu width (usually longest item + 2)
|
||||
data.8 11 data.str "Insert Disk" data.8 0x00 ; text length, text, null-terminator
|
||||
data.8 1 ; number of items
|
||||
data.8 11 ; menu width (usually longest item + 2)
|
||||
data.8 9 data.str "Shut Down" data.8 0x00 ; text length, text, null-terminator
|
||||
|
||||
; pad out to 512 KiB
|
||||
|
|
Loading…
Reference in New Issue
Block a user