Small improvements
This commit is contained in:
@@ -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:
|
||||
|
@@ -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++;
|
||||
|
Reference in New Issue
Block a user