tinycodinglm / asm /asm-x86-64.jsonl
winapiadmin's picture
Upload folder using huggingface_hub
1f3a244 verified
|
Raw History Blame Contribute Delete
768 Bytes
opencode trace
System You are an expert software engineer.

You are an expert software engineer.

User

Explain x86-64 assembly basics

Assistant

Registers: RAX-R15 (64/32/16/8-bit aliases). RSP stack, RBP base. RDI/RSI/RDX/RCX/R8/R9 args (SysV). XMM0-15 (SSE), YMM0-15 (AVX), ZMM0-31 (AVX-512).

Stack frame: push rbp; mov rbp,rsp; sub rsp,N. Leave to restore.

Instructions: mov, lea, add, sub, imul, idiv, cmp, jmp (jcc), push/pop, call/ret, test, and/or/xor, shl/shr.

Syscalls: mov rax,num; syscall. SIMD packed ops on XMM/YMM/ZMM.