Advance work on emulator/assembler combo
This commit is contained in:
parent
2d7707598a
commit
569e11aceb
@ -4,15 +4,18 @@ jmp start
|
||||
|
||||
%include "fcbparse.asm"
|
||||
|
||||
fcb_in:
|
||||
times 20 db 0
|
||||
fcb_asm:
|
||||
times 36 db 0
|
||||
|
||||
fcb_out:
|
||||
times 20 db 0
|
||||
fcb_bin:
|
||||
times 36 db 0
|
||||
|
||||
fcb_lst:
|
||||
times 36 db 0
|
||||
|
||||
start:
|
||||
mov si, 0x81
|
||||
mov bx, fcb_in
|
||||
mov bx, fcb_asm
|
||||
mov ax, 0x1234
|
||||
call fcb_parse
|
||||
ret
|
@ -350,6 +350,10 @@ void step() {
|
||||
ip = reg;
|
||||
}
|
||||
break;
|
||||
case 0xE9:
|
||||
reg = imm16();
|
||||
ip += (int16_t)reg;
|
||||
break;
|
||||
case 0xEB: // JMP rb
|
||||
ip = ip + (int8_t)imm8();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user