tinycodinglm / asm /asm002.jsonl
winapiadmin's picture
Upload folder using huggingface_hub
1f3a244 verified
|
Raw History Blame
1.2 kB
{"type": "session", "harness": "deepseek-harness", "id": "asm002", "name": "x64 calling convention"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "What is the x64 calling convention?"}}
{"type": "message", "message": {"role": "assistant", "content": "```asm\n; x86-64 calling conventions (NASM):\n; System V (Linux/macOS): args in RDI, RSI, RDX, RCX, R8, R9; return in RAX.\n; Windows x64: args in RCX, RDX, R8, R9 + 32-byte caller shadow space.\n; Callee-saved (must be preserved): RBX, RBP, R12-R15.\n\n; Example: long add2(long a, long b) for System V Linux.\n global add2\n section .text\nadd2: mov rax, rdi ; rax = a\n add rax, rsi ; rax = a + b\n ret ; result in rax\n```"}}