diff --git a/LICENSE.pdf b/LICENSE.pdf new file mode 100644 index 0000000..55f5fd4 Binary files /dev/null and b/LICENSE.pdf differ diff --git a/README.md b/README.md index b7ac6f7..50f1ee7 100644 --- a/README.md +++ b/README.md @@ -231,30 +231,30 @@ knowledge - how cool is that! | Chapter | Markdown | PDF | | ------- | -------- | --- | -| 1 | [Hello World](./section_1/hello_world/README.md) | NA | -| 2 | [If Statements](./section_1/if/README.md) | NA | +| 1 | [Hello World](./section_1/hello_world/README.md) | [Link](./section_1/hello_world/README.pdf) | +| 2 | [If Statements](./section_1/if/README.md) | [Link](./section_1/if/README.pdf) | | 3 | Loops | | -| .... a | [.... While Loops](./section_1/while/README.md) | NA | -| .... b | [.... For Loops](./section_1/for/README.md) | NA | -| .... c | [.... Implementing Continue](./section_1/for/README.md#implementing-a-continue) | NA | -| .... d | [.... Implementing Break](./section_1/for/README.md#implementing-a-break) | NA | +| .... a | [.... While Loops](./section_1/while/README.md) | [Link](./section_1/while/README.pdf) | +| .... b | [.... For Loops](./section_1/for/README.md) | [Link](./section_1/for/README.pdf) | +| .... c | [.... Implementing Continue](./section_1/for/README.md#implementing-a-continue) | [Link](./section_1/for/README.pdf) | +| .... d | [.... Implementing Break](./section_1/for/README.md#implementing-a-break) | [Link](./section_1/for/README.pdf) | | 4 | Interludes | | -| .... a | [.... Registers](./section_1/regs/README.md) | NA | -| .... b | [.... Load and Store](./section_1/regs/ldr.md) | NA | -| .... c | [.... More About `ldr`](./section_1/regs/ldr2.md) | NA | -| .... d | [.... Register Sizes](./section_1/regs/widths.md) | NA | -| 5 | [`switch`](./section_1/jump_tables/README.md) | NA | +| .... a | [.... Registers](./section_1/regs/README.md) | [Link](./section_1/regs/README.pdf) | +| .... b | [.... Load and Store](./section_1/regs/ldr.md) | [Link](./section_1/regs/ldr.pdf) | +| .... c | [.... More About `ldr`](./section_1/regs/ldr2.md) | [Link](./section_1/regs/ldr2.pdf) | +| .... d | [.... Register Sizes](./section_1/regs/widths.md) | [Link]((./section_1/regs/widths.pdf) | +| 5 | [`switch`](./section_1/jump_tables/README.md) | [Link](./section_1/jump_tables/README.pdf) | | 6 | Functions | | -| .... a | [.... Calling and Returning](./section_1/funcs/README.md) | NA | -| .... b | [.... Passing Parameters](./section_1/funcs/README2.md) | NA | -| .... c | [.... Example of calling some common C runtime functions](./section_1/funcs/README3.md) | NA | -| 7 | [FizzBuzz - a Complete Program](./section_1/fizzbuzz/README.md) | NA | +| .... a | [.... Calling and Returning](./section_1/funcs/README.md) | [Link](./section_1/funcs/README.pdf) | +| .... b | [.... Passing Parameters](./section_1/funcs/README2.md) | [Link](./section_1/funcs/README2.pdf) | +| .... c | [.... Example of calling some common C runtime functions](./section_1/funcs/README3.md) | [Link](./section_1/funcs/README3.pdf) | +| 7 | [FizzBuzz - a Complete Program](./section_1/fizzbuzz/README.md) | [Link](./section_1/fizzbuzz/README.pdf) | | 8 | Structs | | -| .... a | [.... Alignment](./section_1/structs/alignment.md) | NA | -| .... b | [.... Defining](./section_1/structs/defining.md) | NA | -| .... c | [.... Using](./section_1/structs/using.md) | NA | -| 9 | [`const`](./section_1/const/README.md) | NA | -| 10 | [Casting](./section_1/casting/README.md) | NA | +| .... a | [.... Alignment](./section_1/structs/alignment.md) | [Link](./section_1/structs/alignment.pdf) | +| .... b | [.... Defining](./section_1/structs/defining.md) | [Link](./section_1/structs/defining.pdf) | +| .... c | [.... Using](./section_1/structs/using.md) | [Link](./section_1/structs/using.pdf) | +| 9 | [`const`](./section_1/const/README.md) | [Link](./section_1/const/README.pdf) | +| 10 | [Casting](./section_1/casting/README.md) | [Link](./section_1/casting/README.pdf) | ## Section 2 - Floating Point @@ -281,18 +281,18 @@ What would a book about assembly language be without bit bashing? | Chapter | Markdown | PDF | | ------- | -------- | --- | | 1 | Bit Fields | | -| .... a | [.... Without Bit Fields](./section_3/bitfields/README.md) | NA | -| .... b | [.... With Bit Fields](./section_3/bitfields/with.md) | NA | -| .... c | [.... Review of Newly Described Instructions](./section_3/bitfields/review.md) | NA | -| 2 | [Endianness](./section_3/endian/README.md) | NA | +| .... a | [.... Without Bit Fields](./section_3/bitfields/README.md) | [Link]((./section_3/bitfields/README.pdf) | +| .... b | [.... With Bit Fields](./section_3/bitfields/with.md) | [Link](./section_3/bitfields/with.pdf) | +| .... c | [.... Review of Newly Described Instructions](./section_3/bitfields/review.md) | [Link](./section_3/bitfields/review.pdf) | +| 2 | [Endianness](./section_3/endian/README.md) | [Link]((./section_3/endian/README.pdf) | ## Section 4 - More Stuff | Chapter | Markdown | PDF | | ------- | -------- | --- | -| --- | [Determining string literal lengths for C functions](./more/strlen_for_c/README.md) | NA | -| --- | [Under the hood: System Calls](./more/system_calls/README.md) | NA | -| --- | [Apple Silicon](./more/apple_silicon/README.md) | NA | +| --- | [Determining string literal lengths for C functions](./more/strlen_for_c/README.md) | [Link](./more/strlen_for_c/README.pdf) | +| --- | [Under the hood: System Calls](./more/system_calls/README.md) | [Link](./more/system_calls/README.pdf) | +| --- | [Apple Silicon](./more/apple_silicon/README.md) | [Link](./more/apple_silicon/README.pdf) | ## Projects diff --git a/README.pdf b/README.pdf new file mode 100644 index 0000000..eb541e3 Binary files /dev/null and b/README.pdf differ diff --git a/more/apple_silicon/README.pdf b/more/apple_silicon/README.pdf new file mode 100644 index 0000000..0ed549d Binary files /dev/null and b/more/apple_silicon/README.pdf differ diff --git a/more/strlen_for_c/README.pdf b/more/strlen_for_c/README.pdf new file mode 100644 index 0000000..bd1b3e0 Binary files /dev/null and b/more/strlen_for_c/README.pdf differ diff --git a/more/system_calls/README.pdf b/more/system_calls/README.pdf new file mode 100644 index 0000000..c8118cc Binary files /dev/null and b/more/system_calls/README.pdf differ diff --git a/not_written_yet.pdf b/not_written_yet.pdf new file mode 100644 index 0000000..dfeee57 Binary files /dev/null and b/not_written_yet.pdf differ diff --git a/projects/DIRENT/README.pdf b/projects/DIRENT/README.pdf new file mode 100644 index 0000000..481b369 Binary files /dev/null and b/projects/DIRENT/README.pdf differ diff --git a/projects/PI/README.pdf b/projects/PI/README.pdf new file mode 100644 index 0000000..954fa91 Binary files /dev/null and b/projects/PI/README.pdf differ diff --git a/projects/README.pdf b/projects/README.pdf new file mode 100644 index 0000000..15e691e Binary files /dev/null and b/projects/README.pdf differ diff --git a/projects/first_project/README.pdf b/projects/first_project/README.pdf new file mode 100644 index 0000000..93e0728 Binary files /dev/null and b/projects/first_project/README.pdf differ diff --git a/projects/walkies/README.pdf b/projects/walkies/README.pdf new file mode 100644 index 0000000..a348ab6 Binary files /dev/null and b/projects/walkies/README.pdf differ diff --git a/projects/walkies/single_star.pdf b/projects/walkies/single_star.pdf new file mode 100644 index 0000000..113df17 Binary files /dev/null and b/projects/walkies/single_star.pdf differ diff --git a/section_1/const/README.pdf b/section_1/const/README.pdf new file mode 100644 index 0000000..f6c785f Binary files /dev/null and b/section_1/const/README.pdf differ diff --git a/section_1/fizzbuzz/README.pdf b/section_1/fizzbuzz/README.pdf new file mode 100644 index 0000000..dfcd586 Binary files /dev/null and b/section_1/fizzbuzz/README.pdf differ diff --git a/section_1/for/README.pdf b/section_1/for/README.pdf new file mode 100644 index 0000000..7a08738 Binary files /dev/null and b/section_1/for/README.pdf differ diff --git a/section_1/funcs/README.pdf b/section_1/funcs/README.pdf new file mode 100644 index 0000000..dfe8039 Binary files /dev/null and b/section_1/funcs/README.pdf differ diff --git a/section_1/funcs/README2.pdf b/section_1/funcs/README2.pdf new file mode 100644 index 0000000..46dd792 Binary files /dev/null and b/section_1/funcs/README2.pdf differ diff --git a/section_1/funcs/README3.pdf b/section_1/funcs/README3.pdf new file mode 100644 index 0000000..4bcfec7 Binary files /dev/null and b/section_1/funcs/README3.pdf differ diff --git a/section_1/hello_world/README.pdf b/section_1/hello_world/README.pdf new file mode 100644 index 0000000..35b8fb9 Binary files /dev/null and b/section_1/hello_world/README.pdf differ diff --git a/section_1/if/README.pdf b/section_1/if/README.pdf new file mode 100644 index 0000000..cb365f3 Binary files /dev/null and b/section_1/if/README.pdf differ diff --git a/section_1/jump_tables/README.pdf b/section_1/jump_tables/README.pdf new file mode 100644 index 0000000..915aa32 Binary files /dev/null and b/section_1/jump_tables/README.pdf differ diff --git a/section_1/recursion/README.pdf b/section_1/recursion/README.pdf new file mode 100644 index 0000000..fcca582 Binary files /dev/null and b/section_1/recursion/README.pdf differ diff --git a/section_1/regs/README.pdf b/section_1/regs/README.pdf new file mode 100644 index 0000000..8bc5346 Binary files /dev/null and b/section_1/regs/README.pdf differ diff --git a/section_1/regs/backup.pdf b/section_1/regs/backup.pdf new file mode 100644 index 0000000..a787d9c Binary files /dev/null and b/section_1/regs/backup.pdf differ diff --git a/section_1/regs/ldr.pdf b/section_1/regs/ldr.pdf new file mode 100644 index 0000000..ce7419d Binary files /dev/null and b/section_1/regs/ldr.pdf differ diff --git a/section_1/regs/ldr2.pdf b/section_1/regs/ldr2.pdf new file mode 100644 index 0000000..897fe01 Binary files /dev/null and b/section_1/regs/ldr2.pdf differ diff --git a/section_1/regs/regvar.pdf b/section_1/regs/regvar.pdf new file mode 100644 index 0000000..2f7746d Binary files /dev/null and b/section_1/regs/regvar.pdf differ diff --git a/section_1/regs/spare.pdf b/section_1/regs/spare.pdf new file mode 100644 index 0000000..6d715b2 Binary files /dev/null and b/section_1/regs/spare.pdf differ diff --git a/section_1/regs/widths.pdf b/section_1/regs/widths.pdf new file mode 100644 index 0000000..ac64891 Binary files /dev/null and b/section_1/regs/widths.pdf differ diff --git a/section_1/structs/alignment.pdf b/section_1/structs/alignment.pdf new file mode 100644 index 0000000..ef80607 Binary files /dev/null and b/section_1/structs/alignment.pdf differ diff --git a/section_1/structs/defining.pdf b/section_1/structs/defining.pdf new file mode 100644 index 0000000..6fa22e7 Binary files /dev/null and b/section_1/structs/defining.pdf differ diff --git a/section_1/structs/using.pdf b/section_1/structs/using.pdf new file mode 100644 index 0000000..7e6115f Binary files /dev/null and b/section_1/structs/using.pdf differ diff --git a/section_1/while/README.pdf b/section_1/while/README.pdf new file mode 100644 index 0000000..2fdb91a Binary files /dev/null and b/section_1/while/README.pdf differ diff --git a/section_2/float/half.pdf b/section_2/float/half.pdf new file mode 100644 index 0000000..0ca65a0 Binary files /dev/null and b/section_2/float/half.pdf differ diff --git a/section_2/float/literals.pdf b/section_2/float/literals.pdf new file mode 100644 index 0000000..666067c Binary files /dev/null and b/section_2/float/literals.pdf differ diff --git a/section_2/float/rounding.pdf b/section_2/float/rounding.pdf new file mode 100644 index 0000000..9e7d1b8 Binary files /dev/null and b/section_2/float/rounding.pdf differ diff --git a/section_2/float/what.pdf b/section_2/float/what.pdf new file mode 100644 index 0000000..e94e51e Binary files /dev/null and b/section_2/float/what.pdf differ diff --git a/section_2/float/working.pdf b/section_2/float/working.pdf new file mode 100644 index 0000000..2d2e29c Binary files /dev/null and b/section_2/float/working.pdf differ diff --git a/section_3/bitfields/README.pdf b/section_3/bitfields/README.pdf new file mode 100644 index 0000000..df98ed8 Binary files /dev/null and b/section_3/bitfields/README.pdf differ diff --git a/section_3/bitfields/review.pdf b/section_3/bitfields/review.pdf new file mode 100644 index 0000000..e3f7bd5 Binary files /dev/null and b/section_3/bitfields/review.pdf differ diff --git a/section_3/bitfields/with.pdf b/section_3/bitfields/with.pdf new file mode 100644 index 0000000..b2039bc Binary files /dev/null and b/section_3/bitfields/with.pdf differ diff --git a/section_3/endian/README.pdf b/section_3/endian/README.pdf new file mode 100644 index 0000000..4bf64bd Binary files /dev/null and b/section_3/endian/README.pdf differ diff --git a/test.bash b/test.bash new file mode 100755 index 0000000..08c17da --- /dev/null +++ b/test.bash @@ -0,0 +1,14 @@ +#!/bin/bash +#file_list=`git diff --name-only main | grep -i ".md"` +file_list=`find . -print | grep -i ".md"` + +for element in $file_list +do + dir=`dirname ${element}` + cd $dir + echo `pwd` + fname=`basename ${element}` + pandoc $fname -o ${fname::-2}pdf + cd - +done +