Use unaligned word write in lbrac and rbrac
Apparently x86_64 is chill like that.
This commit is contained in:
@@ -263,9 +263,7 @@ lbrac:
|
|||||||
mov rsi,.translation_end
|
mov rsi,.translation_end
|
||||||
call write
|
call write
|
||||||
mov word ax,[chunks+r12+2]
|
mov word ax,[chunks+r12+2]
|
||||||
mov byte [r14-7],al
|
mov word [r14-7],ax
|
||||||
shr rax,8
|
|
||||||
mov byte [r14-6],al
|
|
||||||
and r12,(not CHUNK_MASK)
|
and r12,(not CHUNK_MASK)
|
||||||
jmp execute.run
|
jmp execute.run
|
||||||
.translation_start:
|
.translation_start:
|
||||||
@@ -283,9 +281,7 @@ rbrac:
|
|||||||
mov rsi,.translation_end
|
mov rsi,.translation_end
|
||||||
call write
|
call write
|
||||||
mov word ax,[chunks+r12+2]
|
mov word ax,[chunks+r12+2]
|
||||||
mov byte [r14-7],al
|
mov word [r14-7],ax
|
||||||
shr rax,8
|
|
||||||
mov byte [r14-6],al
|
|
||||||
and r12,(not CHUNK_MASK)
|
and r12,(not CHUNK_MASK)
|
||||||
jmp execute.run
|
jmp execute.run
|
||||||
.translation_start:
|
.translation_start:
|
||||||
|
|||||||
Reference in New Issue
Block a user