Bugfix from 'Jurgen' for repne scasw / repnz stosw and handling of unknown/invalid opcodes.

See https://board.kolibrios.org/viewtopic.php?p=77209#p77209 for details.

git-svn-id: svn://kolibrios.org@9209 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2021-09-30 16:36:29 +00:00
parent c2885eb759
commit 683ccfc78f

View File

@ -264,8 +264,8 @@ crep:
cmp al, 0x6E cmp al, 0x6E
jz .prefix jz .prefix
.noprefix:
pop [disasm_cur_pos] pop [disasm_cur_pos]
.noprefix:
and byte [edi-1], 0 and byte [edi-1], 0
ret ret
@ -328,6 +328,10 @@ crepnz:
mov al, ' ' mov al, ' '
stosb stosb
movzx eax, dl movzx eax, dl
cmp al, 66h
je c66
cmp al, 67h
je c67
cmp al, 0x6C cmp al, 0x6C
jb crep.noprefix jb crep.noprefix
cmp al, 0x6F cmp al, 0x6F