colorful rat Ratfactor.com > Dave's Repos

pftgu_nasm

NASM ports of exercises from "Programming from the Ground Up"
git clone http://ratfactor.com/repos/pftgu_nasm/pftgu_nasm.git

pftgu_nasm/README.md

Download raw file: README.md

1 # NASM ports of exercises from Programming from the Ground Up 2 3 The 2003 book _Programming from the Ground Up_ is an excellent primer 4 for 32-bit (i386) architecture assembly (and fundamental programming in 5 general). I've got a paper copy, but you can also read it for free 6 at archive.org: 7 8 https://archive.org/details/programming-from-the-ground-up 9 10 This repo contains my NASM translations of the programs. The `go.sh` shell 11 script assembles, links, and runs them. Just leave off the file extension. 12 13 Here's the examples and their output: 14 15 # Exit 16 # 17 $ ./go.sh ch03.1_exit 18 Exited with code: 0 19 20 # Find largest value in array of doubles 21 # 22 $ ./go.sh ch03.2_maximum 23 Exited with code: 222 24 25 # Call a function to compute exponent 26 # 27 $ ./go.sh ch04.1_power_function 28 Exited with code: 33 29 30 # Call recursive function to compute factorial 31 # 32 $ ./go.sh ch04.2_factorial 33 Exited with code: 24 34 35 Personal note: I like this book a lot, but I do not endorse the author 36 or his views outside of this one single subject.