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