From 4d378571d8fe0cd81b9f160430a6d1ea6ae18dde Mon Sep 17 00:00:00 2001 From: Ry Date: Sun, 20 Oct 2024 00:25:08 -0700 Subject: [PATCH] sh: Allow running batch files from disks 4 and 5 (romdisk and ramdisk) --- applications/sh/batch.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/sh/batch.asm b/applications/sh/batch.asm index 858b012..2dedd48 100644 --- a/applications/sh/batch.asm +++ b/applications/sh/batch.asm @@ -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