Re: Places to learn Assembly?
Posted: Fri Nov 13, 2020 1:10 pm
I'm going to make a suggestion everyone is going to hate, but bear with me.
I first learned x86 assembly using "debug" under DOS. You could do worse than boot up FreeDOS and try that.
I'll take a break while you stop laughing.
Think back to the days when you wrote your first line of code in the first language you learned. You wrote "x = 4" and then "print X" so you could see with your own eyes that it did exactly what it was supposed to. You'll probably want to do the same with assembly. You want to run a single MOV instruction and then inspect the registers to see that they changed. You want to do a CMP and see "whoa, it really did set the OF flag".
This is the closest you're going to get to an interactive "interpreted" assembly experience. If you've tool-savvy enough already, you could assemble some code, run gdb and step through the assembly instructions to see what each one does, but that's a lot to set up before you see any results.
You can resume laughing.
I first learned x86 assembly using "debug" under DOS. You could do worse than boot up FreeDOS and try that.
I'll take a break while you stop laughing.
Think back to the days when you wrote your first line of code in the first language you learned. You wrote "x = 4" and then "print X" so you could see with your own eyes that it did exactly what it was supposed to. You'll probably want to do the same with assembly. You want to run a single MOV instruction and then inspect the registers to see that they changed. You want to do a CMP and see "whoa, it really did set the OF flag".
This is the closest you're going to get to an interactive "interpreted" assembly experience. If you've tool-savvy enough already, you could assemble some code, run gdb and step through the assembly instructions to see what each one does, but that's a lot to set up before you see any results.
You can resume laughing.