From b884dfd270274098021823b640fa418b570ef821 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Mon, 16 Feb 2026 13:59:34 +0100 Subject: [PATCH] made the code cleaner --- rewrite/minBIOS.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite/minBIOS.lua b/rewrite/minBIOS.lua index 89d1273..5274475 100644 --- a/rewrite/minBIOS.lua +++ b/rewrite/minBIOS.lua @@ -49,7 +49,7 @@ local function getBootCode(addr) local codeEnd = sectorSize - 66 local codeSec = string.sub(firstSector, 1, codeEnd) local term = string.find(codeSec, "\0", 5, true) - return load(string.sub(codeSec, 0, term and (term - 1) or -1)) + return load(string.sub(codeSec, 1, term and (term - 1) or -1)) end -- TODO: whatever else NC might be testing local sectorsIn32K = math.ceil(32768 / sectorSize)