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"
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

View File

@ -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;