3 ms·
You're not the only one. I know a tiny bit of x86, enough to read some short snippets, but my eyes glaze over at something as long as this. One problem is that
by hyperpape 10y ago
You're not the only one. I know a tiny bit of x86, enough to read some short snippets, but my eyes glaze over at something as long as this.
One problem is that I haven't found any handy tool that lets me just write and execute assembly without jumping through hoops.
- qwertyuiop924 10y agoWell, you don't need to know all of asm to write it. You don't need to know this strcmp instruction. As for convenient writing and execution of assembly, it depends on how low-level you want to go. You can write x86 asm on top of your unix or windows system relatively simply: Just write asm, and compile it with GAS/MASM/NASM/TASM/YASM. You'll need to know instructions, assembler syntax, and your OS's system call mechanism, as well as the calling conventions for any static or dynamic libraries you plan to use (except on systems where syscalls are not a formally exposed stable interface, like Solaris, where you only need learn the calling conventions for libraries). If you're utterly lost, and running Linux, I would recommend the excellent "Programming From The Ground Up," which is freely available online. If you want to write atop the bare metal, with no OS, an emulator is your best bet. Virtualbox or QEMU both work, but whatever you pick, it'll be a bit of a pain to work with.