Hello,
I'm learning Aseembly and i want to know how i can adaptate this line: times 510-($-$$) db 0 for run it in emu8086.

Thanks,
Nathan Paulino Campos

Recommended Answers

All 2 Replies

Dollar-sign '$' refers to the assemblers counter when calculating
offsets, the 'times' directive tells nasm to repeat some opcode
several times. In this case 'db' which declares a byte in the binary
image.

I didn't understand what you want to say, you can be more specific and if you can you can give me a sample snippet.
Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.