Programming exercises from the book "Programming from the Ground Up" by Josh Bartlett.
Grab a copy here (it's open source):
Programming from the Ground Up by Josh Bartlett
- exit.s - a first assembly program showing the functionality of the exit() syscall
- maximum.s - finding the largest number in a data index
- minimum.s - finding the smallest number in a data index
- power.s - illustrating how functions work by solving 2^3 + 5^2
- factorial.s - solving a factorial by creating a function
- square.s - solving a square x^2 = ? by creating a function
- toupper.s - using buffers and file descriptors to change all lowercase letters of a file to all uppercase letters
- linux.s - common Linux definitions use .equ including syscalls, file descriptors, status codes, interrupts
- record-def.s - record offsets
- add-year.s - add a year to each record
- count-chars.s - function to count the number of characters in a record
- read-record.s - function to read a record
- read-records.s - final program to read all the records
- write-newline.s - function to write a newline to STDOUT
- write-record.s - function to write in a record
- write-records.s - final program to write all the records