From 74aa5e16d9f1f2a3977be643fc83ce7b695433a3 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Tue, 26 Mar 2024 20:48:57 -0600 Subject: [PATCH] x86-64 declarations --- .../plugins/obsidian-to-anki-plugin/data.json | 18 +++--- notes/_journal/2024-03-26.md | 11 ++++ notes/_journal/{ => 2024-03}/2024-03-24.md | 2 +- notes/_journal/2024-03/2024-03-25.md | 13 +++++ notes/algebra/sequences/triangular-numbers.md | 2 +- notes/c17/strings.md | 2 +- notes/set/graphs.md | 33 ++--------- notes/x86-64/declarations.md | 58 +++++++++---------- 8 files changed, 72 insertions(+), 67 deletions(-) create mode 100644 notes/_journal/2024-03-26.md rename notes/_journal/{ => 2024-03}/2024-03-24.md (75%) create mode 100644 notes/_journal/2024-03/2024-03-25.md diff --git a/notes/.obsidian/plugins/obsidian-to-anki-plugin/data.json b/notes/.obsidian/plugins/obsidian-to-anki-plugin/data.json index fb29adf..275d7fc 100644 --- a/notes/.obsidian/plugins/obsidian-to-anki-plugin/data.json +++ b/notes/.obsidian/plugins/obsidian-to-anki-plugin/data.json @@ -202,7 +202,7 @@ "combinatorics/index.md": "66efa649c4c87e58fc82c2199096ade4", "_journal/2024-02-18.md": "67e36dbbb2cac699d4533b5a2eaeb629", "_journal/2024-02/2024-02-17.md": "7c37cb10515ed3d2f5388eaf02a67048", - "combinatorics/multiplicative-principle.md": "14193048d2f8947cfc4082678bba6c50", + "combinatorics/multiplicative-principle.md": "7c06835fa34cfefa217a10cf11ef4ab0", "combinatorics/additive-principle.md": "d036ac511e382d5c1caca437341a5915", "_journal/2024-02-19.md": "30d16c5373deb9cb128d2e7934ae256a", "_journal/2024-02/2024-02-18.md": "67e36dbbb2cac699d4533b5a2eaeb629", @@ -218,7 +218,7 @@ "_journal/2024-02/2024-02-21.md": "f423137ae550eb958378750d1f5e98c7", "_journal/2024-02-23.md": "219ce9ad15a8733edd476c97628b71fd", "_journal/2024-02/2024-02-22.md": "312e55d57868026f6e80f7989a889c2b", - "c17/strings.md": "617821357921374bdb6db10f8c2f91ef", + "c17/strings.md": "c0893d2eb34f43484af81b3c3d3835ed", "c17/index.md": "78576ee41d0185df82c59999142f4edb", "c17/escape-sequences.md": "a8b99070336878b4e8c11e9e4525a500", "c17/declarations.md": "f55d31e93e67f03577300d9e92129e82", @@ -246,7 +246,7 @@ "algebra/sequences/index.md": "91ec81d3aa22d1baef2ab4b24736c43c", "_journal/2024-03-02.md": "08c3cae1df0079293b47e1e9556f1ce1", "_journal/2024-03/2024-03-01.md": "70da812300f284df72718dd32fc39322", - "algebra/sequences/triangular-numbers.md": "3623bebc476635cc7f5a3855221e1e31", + "algebra/sequences/triangular-numbers.md": "e833b69d767fb33594716cb0b2bd6aa3", "algebra/sequences/square-numbers.md": "171f7c5a8dac088afba40923ab86c68e", "_journal/2024-03-03.md": "c4977a3778ed227b768c3f9ad5512670", "_journal/2024-03/2024-03-02.md": "8136792b0ee6e08232e4f60c88d461d2", @@ -287,7 +287,7 @@ "_journal/2024-03/2024-03-17.md": "23f9672f5c93a6de52099b1b86834e8b", "set/directed-graph.md": "b4b8ad1be634a0a808af125fe8577a53", "set/index.md": "b82a215fbee3c576186fc1af93c82fcb", - "set/graphs.md": "bffffb0caee44f403130edbc1753e803", + "set/graphs.md": "b2651abacb583dc21292da3dbe422179", "_journal/2024-03-19.md": "a0807691819725bf44c0262405e97cbb", "_journal/2024-03/2024-03-18.md": "63c3c843fc6cfc2cd289ac8b7b108391", "awk/variables.md": "e40a20545358228319f789243d8b9f77", @@ -304,13 +304,17 @@ "_journal/2024-03/2024-03-20.md": "0a73ce399d275fe6ee3134a812f3f4f9", "_journal/2024-03-22.md": "8da8cda07d3de74f7130981a05dce254", "_journal/2024-03/2024-03-21.md": "cd465f71800b080afa5c6bdc75bf9cd3", - "x86-64/declarations.md": "8efbeca5fa347571f5c3502afc3a6807", + "x86-64/declarations.md": "75bc7857cf2207a40cd7f0ee056af2f2", "x86-64/instructions.md": "240b4ceddf174f48207ba6bed4d25246", "git/refs.md": "954fc69004aa65b358ec5ce07c1435ce", "set/trees.md": "56ef76493abcbfdb0256a54dc2d72ba3", - "_journal/2024-03-24.md": "f70f3ae6c75eab485c993869f0e6ffbd", + "_journal/2024-03-24.md": "1974cdb9fc42c3a8bebb8ac76d4b1fd6", "_journal/2024-03/2024-03-23.md": "ad4e92cc2bf37f174a0758a0753bf69b", - "_journal/2024-03/2024-03-22.md": "a509066c9cd2df692549e89f241d7bd9" + "_journal/2024-03/2024-03-22.md": "a509066c9cd2df692549e89f241d7bd9", + "_journal/2024-03-25.md": "e8edd82e6416c558204a321b1d866058", + "_journal/2024-03-26.md": "c21d80f07a8056a5a0a31ade8f2f6f65", + "_journal/2024-03/2024-03-25.md": "458bce81efc28130478309b847fa197c", + "_journal/2024-03/2024-03-24.md": "1974cdb9fc42c3a8bebb8ac76d4b1fd6" }, "fields_dict": { "Basic": [ diff --git a/notes/_journal/2024-03-26.md b/notes/_journal/2024-03-26.md new file mode 100644 index 0000000..6f62104 --- /dev/null +++ b/notes/_journal/2024-03-26.md @@ -0,0 +1,11 @@ +--- +title: "2024-03-26" +--- + +- [x] Anki Flashcards +- [x] KoL +- [ ] Sheet Music (10 min.) +- [ ] Go (1 Life & Death Problem) +- [ ] Korean (Read 1 Story) +- [ ] Interview Prep (1 Practice Problem) +- [ ] Log Work Hours (Max 3 hours) \ No newline at end of file diff --git a/notes/_journal/2024-03-24.md b/notes/_journal/2024-03/2024-03-24.md similarity index 75% rename from notes/_journal/2024-03-24.md rename to notes/_journal/2024-03/2024-03-24.md index 438737a..e63f829 100644 --- a/notes/_journal/2024-03-24.md +++ b/notes/_journal/2024-03/2024-03-24.md @@ -2,7 +2,7 @@ title: "2024-03-24" --- -- [ ] Anki Flashcards +- [x] Anki Flashcards - [x] KoL - [ ] Sheet Music (10 min.) - [ ] Go (1 Life & Death Problem) diff --git a/notes/_journal/2024-03/2024-03-25.md b/notes/_journal/2024-03/2024-03-25.md new file mode 100644 index 0000000..bd5ad46 --- /dev/null +++ b/notes/_journal/2024-03/2024-03-25.md @@ -0,0 +1,13 @@ +--- +title: "2024-03-25" +--- + +- [x] Anki Flashcards +- [x] KoL +- [ ] Sheet Music (10 min.) +- [ ] Go (1 Life & Death Problem) +- [ ] Korean (Read 1 Story) +- [ ] Interview Prep (1 Practice Problem) +- [ ] Log Work Hours (Max 3 hours) + +* Primary worked on the hide and seek application. Can now create and join rooms using Phoenix Liveview. \ No newline at end of file diff --git a/notes/algebra/sequences/triangular-numbers.md b/notes/algebra/sequences/triangular-numbers.md index 3cd0617..1e31fdd 100644 --- a/notes/algebra/sequences/triangular-numbers.md +++ b/notes/algebra/sequences/triangular-numbers.md @@ -22,7 +22,7 @@ END%% %%ANKI Basic What is a figurate number? -Back: Polygonal numbers or generalizations of polygonal numbers to other dimensions. +Back: Polygonal numbers and their generalizations to other dimensions. Reference: “Triangular Number,” in _Wikipedia_, January 13, 2024, [https://en.wikipedia.org/w/index.php?title=Triangular_number&oldid=1195279122](https://en.wikipedia.org/w/index.php?title=Triangular_number&oldid=1195279122). END%% diff --git a/notes/c17/strings.md b/notes/c17/strings.md index 9b9fcd4..92409be 100644 --- a/notes/c17/strings.md +++ b/notes/c17/strings.md @@ -731,7 +731,7 @@ END%% %%ANKI Cloze -The {`%G`} format specifier outputs a {uppercase `double` in fixed-point or standard notation}. +The {`%G`} format specifier outputs an {uppercase `double` in fixed-point or standard notation}. Reference: “Printf,” in *Wikipedia*, January 18, 2024, [https://en.wikipedia.org/w/index.php?title=Printf&oldid=1196716962](https://en.wikipedia.org/w/index.php?title=Printf&oldid=1196716962). Tags: printf diff --git a/notes/set/graphs.md b/notes/set/graphs.md index 9a98281..80a15c9 100644 --- a/notes/set/graphs.md +++ b/notes/set/graphs.md @@ -35,16 +35,9 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition ( END%% -%%ANKI -Cloze -A {1:directed} graph $G$ is a pair $\langle V, E \rangle$, where $V$ is a {2:finite set} and $E$ is a {2:binary relation on $V$}. -Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). - -END%% - %%ANKI Basic -Let $G = \langle V, E \rangle$ be a directed graph. What conditions must $V$ satisfy? +Let $G = \langle V, E \rangle$ be a directed graph. What kind of mathematical object is $V$? Back: It is a finite set. Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). @@ -52,8 +45,8 @@ END%% %%ANKI Basic -Let $G = \langle V, E \rangle$ be a directed graph. What conditions must $E$ satisfy? -Back: It is a binary relation on $E$. +Let $G = \langle V, E \rangle$ be a directed graph. What kind of mathematical object is $E$? +Back: It is a binary relation on $V$. Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). END%% @@ -90,16 +83,9 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition ( END%% -%%ANKI -Cloze -An {1:undirected} graph $G$ is a pair $\langle V, E \rangle$, where $V$ is a {2:finite set} and $E$ is a {2:set of unordered pairs of vertices}. -Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). - -END%% - %%ANKI Basic -Let $G = \langle V, E \rangle$ be an undirected graph. What conditions must $V$ satisfy? +Let $G = \langle V, E \rangle$ be an undirected graph. What kind of mathematical object is $V$? Back: It is a finite set. Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). @@ -107,7 +93,7 @@ END%% %%ANKI Basic -Let $G = \langle V, E \rangle$ be an undirected graph. What conditions must $E$ satisfy? +Let $G = \langle V, E \rangle$ be an undirected graph. What kind of mathematical object is $E$? Back: It is a set of unordered pairs of vertices. Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). @@ -1000,15 +986,6 @@ Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition ( END%% -%%ANKI -Basic -What are the cycles containing vertex $2$? -![[undirected-graph-example.png]] -Back: $\langle 1, 2, 5, 1 \rangle$ and $\langle 1, 5, 2, 1 \rangle$ -Reference: Thomas H. Cormen et al., Introduction to Algorithms, Fourth edition (Cambridge, Massachusett: The MIT Press, 2022). - -END%% - %%ANKI Basic What are the simple cycles containing vertex $2$? diff --git a/notes/x86-64/declarations.md b/notes/x86-64/declarations.md index ddcbc96..29c5445 100644 --- a/notes/x86-64/declarations.md +++ b/notes/x86-64/declarations.md @@ -20,7 +20,7 @@ tags: %%ANKI Basic -What is the width of a word? +What is the width of a `word`? Back: 16 bits. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -28,7 +28,7 @@ END%% %%ANKI Basic -What historical reason explains why a word is 16 bits? +What historical reason explains why a `word` is 16 bits? Back: Because the 8086 that introduced x86 was 16 bits. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -36,7 +36,7 @@ END%% %%ANKI Basic -What is the width of an Intel "byte"? +What is the width of an Intel `byte`? Back: $8$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -45,21 +45,21 @@ END%% %%ANKI Basic Which Intel data types are 1 bytes wide? -Back: Just the "byte". +Back: Just the `byte`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -The "{byte}" Intel data type has assembly-code suffix {`b`}. +The {`byte`} Intel data type has assembly-code suffix {`b`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Basic -What is the width of an Intel "word"? +What is the width of an Intel `word`? Back: $16$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -68,21 +68,21 @@ END%% %%ANKI Basic Which Intel data types are 2 bytes wide? -Back: Just the "word". +Back: Just the `word`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -The "{word}" Intel data type has assembly-code suffix {`w`}. +The {`word`} Intel data type has assembly-code suffix {`w`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Basic -What is the width of an Intel "double word"? +What is the width of an Intel `double word`? Back: $32$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -91,29 +91,29 @@ END%% %%ANKI Basic Which Intel data types are 4 bytes wide? -Back: The double word and single-precision. +Back: The `double word` and `single-precision`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -The "{double word/double-precision}" Intel data type has assembly-code suffix {`l`}. +The {`double word`/`double-precision`} Intel data type has assembly-code suffix {`l`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Basic -*Why* do double words have assembly-code suffix `l`? -Back: The suffix stands for "long", relative to a 16-bit word. +*Why* do `double word`s have assembly-code suffix `l`? +Back: The suffix stands for "long", relative to a 16-bit `word`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Basic -What is the width of an Intel "quad word"? +What is the width of an Intel `quad word`? Back: $64$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -122,21 +122,21 @@ END%% %%ANKI Basic Which Intel data types are 8 bytes wide? -Back: The quad word and double-precision. +Back: The `quad word` and `double-precision`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -The "{quad word}" Intel data type has assembly-code suffix {`q`}. +The {`quad word`} Intel data type has assembly-code suffix {`q`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -C integral declaration {`char`} corresponds to Intel data type "{byte}". +C integral declaration {`char`} corresponds to Intel data type {`byte`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -144,7 +144,7 @@ END%% %%ANKI Cloze -C integral declaration {`short`} corresponds to Intel data type "{word}". +C integral declaration {`short`} corresponds to Intel data type {`word`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -152,7 +152,7 @@ END%% %%ANKI Cloze -C integral declaration {`int`} corresponds to Intel data type "{double word}". +C integral declaration {`int`} corresponds to Intel data type {`double word`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -160,7 +160,7 @@ END%% %%ANKI Cloze -C integral declaration {`long`} corresponds to Intel data type "{quad word}". +C integral declaration {`long`} corresponds to Intel data type {`quad word`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -168,7 +168,7 @@ END%% %%ANKI Cloze -C declaration `char *` corresponds to Intel data type "{quad word}". +C declaration `char *` corresponds to Intel data type {`quad word`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -176,7 +176,7 @@ END%% %%ANKI Cloze -C floating-point declaration {`float`} corresponds to Intel data type "{single-precision}". +C floating-point declaration {`float`} corresponds to Intel data type {`single-precision`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -184,14 +184,14 @@ END%% %%ANKI Cloze -The "{single-precision}" Intel data type has assembly-code suffix {`s`}. +The {`single-precision`} Intel data type has assembly-code suffix {`s`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Cloze -C floating-point declaration {`double`} corresponds to Intel data type "{double-precision}". +C floating-point declaration {`double`} corresponds to Intel data type {`double-precision`}. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. Tags: c17 @@ -199,7 +199,7 @@ END%% %%ANKI Basic -What is the width of an Intel "singe precision"? +What is the width of an Intel `single-precision`? Back: $32$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -208,7 +208,7 @@ END%% %%ANKI Basic What two Intel data types do floating-point numbers come in? -Back: Single-precision and double-precision. +Back: `single-precision` and `double-precision`. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% @@ -216,14 +216,14 @@ END%% %%ANKI Basic Assembly-code suffix `l` is used for what two Intel data types? -Back: Double words and double-precisions. +Back: `double word`s and `double-precision`s. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. END%% %%ANKI Basic -What is the width of an Intel "double-precision"? +What is the width of an Intel `double-precision`? Back: $64$ bits Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016. @@ -231,7 +231,7 @@ END%% %%ANKI Basic -Why is it safe for double words and double-precisions to both use assembly-code suffix `l`? +Why is it safe for `double word`s and `double-precision`s to both use assembly-code suffix `l`? Back: Floating-point code uses a different set of instructions and registers. Reference: Bryant, Randal E., and David O'Hallaron. *Computer Systems: A Programmer's Perspective*. Third edition, Global edition. Always Learning. Pearson, 2016.