DynASM/x86: Add endbr instruction.

Thanks to Dmitry Stogov. #1143 #1142
This commit is contained in:
Mike Pall 2024-01-22 19:17:45 +01:00
parent 2f35cb45fd
commit 3ca0a80711
2 changed files with 3 additions and 1 deletions

View File

@ -1151,6 +1151,8 @@ local map_op = {
rep_0 = "F3", rep_0 = "F3",
repe_0 = "F3", repe_0 = "F3",
repz_0 = "F3", repz_0 = "F3",
endbr32_0 = "F30F1EFB",
endbr64_0 = "F30F1EFA",
-- F4: *hlt -- F4: *hlt
cmc_0 = "F5", cmc_0 = "F5",
-- F6: test... mb,i; div... mb -- F6: test... mb,i; div... mb

View File

@ -75,7 +75,7 @@ local function wline(line, needindent)
g_synclineno = g_synclineno + 1 g_synclineno = g_synclineno + 1
end end
-- Write assembler line as a comment, if requestd. -- Write assembler line as a comment, if requested.
local function wcomment(aline) local function wcomment(aline)
if g_opt.comment then if g_opt.comment then
wline(g_opt.comment..aline..g_opt.endcomment, true) wline(g_opt.comment..aline..g_opt.endcomment, true)