2020-03-07 21:54:25 -08:00

26 lines
349 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445460202"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov ax, 0x8E
div byte [rdx + 8 * 0 + 2]
mov word [rdx + 8 * 0], ax
mov rax, [rdx + 8 * 0]
hlt