1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-13 02:48:59 +00:00
bddisasm/bdshemu_test/basic/test_64_string.asm
Andrei Vlad LUTAS 698ba367a1 Initial commit.
2020-07-21 11:19:18 +03:00

44 lines
642 B
NASM

bits 64
lea rsi, [rel _xxx]
lea rdi, [rel _yyy]
movsb
movsb
movsb
movsb
movsd
sub rsi, 8
sub rdi, 8
mov ecx, 4
rep movsq
lea rsi, [rel _xxx]
lea rdi, [rel _yyy]
xor ecx, ecx
repz cmpsb
mov ecx, 4
repz cmpsb
mov ecx, 4
xor al, al
repnz scasb
lea rdi, [rel _zzz]
mov ecx, 0x100
xor al, al
repnz scasb
mov eax, 0x100
sub eax, ecx
dec eax
retn
_xxx:
dq 1, 2, 3, 4
_yyy:
dq 5, 6, 7, 8
_zzz:
db 'ana are mere',0