Small improvements

This commit is contained in:
2025-10-04 00:00:41 +02:00
parent 775295804e
commit f419f72649
2 changed files with 3 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ int80h:
jge 0f jge 0f
mov si, cx mov si, cx
mov bp, sp 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] call cs:[int80h_table+si]
jmp 1f jmp 1f
0: 0:

View File

@@ -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 uint16_t args[8]; // ought to be enough for everybody
uint8_t nargs = 0; uint8_t nargs = 0;
ptr++; ptr++;
int fun = ReadUint16(ptr); int fun = ReadUint8(ptr) << 8;
fun += ReadUint8(ptr);
for (; *ptr && nargs < 8;) { for (; *ptr && nargs < 8;) {
if (*ptr == ' ') { if (*ptr == ' ') {
ptr++; ptr++;