3 ms·
I am interested in learning assembly language. I searched in Coursera but didn't find anything suitable for a total beginner (I have experience in Java and am d
by noisy_boy 2y ago
I am interested in learning assembly language. I searched in Coursera but didn't find anything suitable for a total beginner (I have experience in Java and am doing some C/C++ courses to get closer to metal).
- asalahli 2y agoI highly recomment this NASM tutorial for an introduction to x86-64 https://cs.lmu.edu/~ray/notes/nasmtutorial/ https://cs.lmu.edu/~ray/notes/nasmtutorial/
- fuzztester 2y agoCheck out assembly language books by Randall Hyde and Paul Carter, two authors of two different books on the topic. Search for: The Art of Assembly Language by Randall Hyde Carter book: http://pacman128.github.io/pcasm/ http://pacman128.github.io/pcasm/
- drivers99 2y agoThis might interest you: Writing a C Compiler by Nora Sandler (No Starch Press). You create a working C compiler that outputs x64 assembly language in the first chapter (as long as the program only returns an integer from main) and then you keep adding features one by one for the rest of the book. You can write the compiler in any language you like (I’m using Python) and you only write the compiler while using your system’s precompiler (the step that handles #include and #define etc and removes comments), linker, and assembler. You just read preprocessed C as text and output assembly as text. The thing that makes it relevant for learning assembly is that’s what you’re outputting so you’ll be learning that as well as what’s going on with the stack when calling and returning from functions and using local variables and basically everything that corresponds to C. (I’m only on chapter 2.) Some other reasons it might work out for you is that you are getting into C as well already, and you have a familiar language you could use for the compiler if you wanted: java (assuming it doesn’t take too long to compile and run a java program repeatedly)
- fuzztester 2y ago>precompiler s/precompiler/preprocessor/g , i guess.
- drivers99 2y agoOops. Yes, you're correct.
- KrustyTheDev 2y ago[dead]
- thinkling 2y agoCodeAcademy: https://www.codecademy.com/learn/computer-architecture-assembly-language https://www.codecademy.com/learn/computer-architecture-assem... MIT open courseware: https://ocw.mit.edu/courses/6-004-computation-structures-spring-2017/resources/intro-to-assembly-language-8-13-/ https://ocw.mit.edu/courses/6-004-computation-structures-spr...