From 6c9c9349b69679a6053c1b3e0bce6e566932b5b2 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 5 Feb 2023 11:05:21 -0600 Subject: [PATCH] Fix initrd_fs not accounting for read_sector clobbering HL --- initrd_fs.z80 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd_fs.z80 b/initrd_fs.z80 index 17532a9..79f4c61 100644 --- a/initrd_fs.z80 +++ b/initrd_fs.z80 @@ -29,7 +29,7 @@ push de ld b, 0 ; Load the filename length in BC ld a, (0x8000) ld c, a -inc hl +ld hl, 0x8001 ldir ld a, (hl) ld (de), a