Advance work on emulator/assembler combo

This commit is contained in:
Nero 2019-10-04 21:54:10 +00:00
parent 2d7707598a
commit 569e11aceb
2 changed files with 12 additions and 5 deletions

View File

@ -4,15 +4,18 @@ jmp start
%include "fcbparse.asm" %include "fcbparse.asm"
fcb_in: fcb_asm:
times 20 db 0 times 36 db 0
fcb_out: fcb_bin:
times 20 db 0 times 36 db 0
fcb_lst:
times 36 db 0
start: start:
mov si, 0x81 mov si, 0x81
mov bx, fcb_in mov bx, fcb_asm
mov ax, 0x1234 mov ax, 0x1234
call fcb_parse call fcb_parse
ret ret

View File

@ -350,6 +350,10 @@ void step() {
ip = reg; ip = reg;
} }
break; break;
case 0xE9:
reg = imm16();
ip += (int16_t)reg;
break;
case 0xEB: // JMP rb case 0xEB: // JMP rb
ip = ip + (int8_t)imm8(); ip = ip + (int8_t)imm8();
break; break;