From f419f726498305dbaba405863609945791184168 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sat, 4 Oct 2025 00:00:41 +0200 Subject: [PATCH] Small improvements --- src/polio.s | 2 +- src/polmon.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/polio.s b/src/polio.s index 723d976..754845f 100644 --- a/src/polio.s +++ b/src/polio.s @@ -163,7 +163,7 @@ int80h: jge 0f mov si, cx mov bp, sp - lea bp, [bp + 16] # 10 for us, 6 for the interrupt + add bp, 16 # 10 for us, 6 for the interrupt call cs:[int80h_table+si] jmp 1f 0: diff --git a/src/polmon.cc b/src/polmon.cc index 1f984fd..520ac38 100644 --- a/src/polmon.cc +++ b/src/polmon.cc @@ -288,7 +288,8 @@ bool ParseCommand(const char* buf, uint16_t& cur_addr, uint16_t& cur_seg) { uint16_t args[8]; // ought to be enough for everybody uint8_t nargs = 0; ptr++; - int fun = ReadUint16(ptr); + int fun = ReadUint8(ptr) << 8; + fun += ReadUint8(ptr); for (; *ptr && nargs < 8;) { if (*ptr == ' ') { ptr++;