Skip to content

Commit

Permalink
sh: Allow running batch files from disks 4 and 5 (romdisk and ramdisk)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed Oct 20, 2024
1 parent a7ebe3d commit 4d37857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/sh/batch.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ shell_run_batch:
mov r0, [shell_batch_filename_ptr]
cmp.8 [r0], 0
ifz jmp shell_run_batch_failed_to_open
cmp.8 [r0 + 1], ':'
cmp.8 [r0+1], ':'
ifnz jmp fill_default_disk_id
movz.8 r1, [r0]
add r0, 2
sub r1, '0'
cmp r1, 4
cmp r1, 6
iflt jmp open_batch_file
fill_default_disk_id:
call get_current_disk_id
Expand Down

0 comments on commit 4d37857

Please sign in to comment.