How do I print an address in x86 NASM assembly language? [duplicate]
问题 This question already has answers here : How to convert a binary integer number to a hex string? (2 answers) Closed 1 year ago . I am trying to print address of variable in NASM x86 assembly. When I assemble this code it assembles fine, however when I run this code it prints two characters instead of the address. section .bss Address: RESB 4 section .data variable db 1 section .text global _start _start: mov eax , variable ; variable Address is stored in eax register mov [Address] , dword eax