-
-
Notifications
You must be signed in to change notification settings - Fork 25
Concepts list #346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
oxe-i
wants to merge
5
commits into
exercism:main
Choose a base branch
from
oxe-i:concepts_list
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Concepts list #346
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| # List of Topics for Concepts | ||
|
|
||
| This is a preliminary list of topics to be implemented in the x86-64-assembly track. | ||
|
|
||
| Most of the topics should map onto a Concept and have its own Concept Exercise. | ||
|
|
||
| ## Introductory Topics | ||
|
|
||
| ### General-Purpose Registers: | ||
| - what is a register | ||
| - accessing 8-bit, 16-bit, 32-bit and 64-bit portion of a register | ||
| - callee-saved and caller-saved registers | ||
|
|
||
| ### Functions: | ||
| - section .text | ||
| - extern and global | ||
| - calling and returning (CALL and RET) | ||
| - calling conventions (registers) | ||
|
|
||
| ### Integers: | ||
| - binary representation | ||
| - signedness, sign extension (MOVZX, MOVSX, CDQ, CQO) and negation (NEG) | ||
oxe-i marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - common arithmetic instructions (ADD, SUB, MUL/IMUL, DIV/IDIV) | ||
| - bitwise instructions (NOT, OR, XOR, AND, SHR/SAR, SHL) | ||
|
|
||
| ### Conditionals/Loops: | ||
| - most common flags in rFLAGs (CF, PF, ZF, SF, DF, OF) | ||
| - comparison instructions (CMP and TEST) | ||
| - labels and jump instructions (JMP and Jcc) | ||
| - difference between signed and unsigned jumps | ||
| - branchless instructions (CMOVcc and SETcc) | ||
| - additional loop-control instructions (LOOP, LOOPE, LOOPNE) | ||
|
|
||
| ### Memory: | ||
| - section .data/.rodata/.bss | ||
| - RIP-relative addressing (REL) | ||
oxe-i marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - BYTE/WORD/DWORD/QWORD | ||
| - what is a pointer (labels) | ||
| - accessing memory (indirection, LEA) | ||
| - array offsets | ||
|
|
||
| ### Strings: | ||
| - ASCII characters | ||
| - strings are arrays ending in NULL | ||
| - main string instructions (LODSx, STOSx, MOVSx, CMPSx, SCANSx, REP, REPE, REPNE) | ||
| - direction flag (CLD, STD) | ||
|
|
||
| ### Floating-Point Numbers: | ||
| - binary representation (IEEE-754) | ||
| - XMM registers (MOVSx) | ||
| - calling conventions | ||
| - storing floating-point in memory | ||
| - converting between integers and floating-points (CVTxx2xx and ROUND) | ||
| - common arithmetic instructions (ADDSx, SUBSx, MULSx, DIVSx) | ||
| - comparison instructions (COMISx and UCOMISx) | ||
| - other common instructions (SQRTSx, ) | ||
|
|
||
| ### Stack: | ||
| - RSP and RBP | ||
| - prologue and epilogue (PUSH and POP) | ||
| - what CALL and RET really do | ||
| - stack alignment | ||
|
|
||
| ## Advanced Topics | ||
|
|
||
| ### Macros and Assembler Directives | ||
| - what is a macro and how is it different from functions | ||
| - single-line macros (%define) | ||
| - multi-line macros | ||
| - %assign | ||
| - times and %rep | ||
|
|
||
| ### SIMD | ||
| - what are SIMD operations | ||
| - XMM as SIMD registers | ||
| - integer SIMD move (MOVDQA, PMOV) | ||
| - packed integer arithmetic instructions (PADD, PSUB, PMUL) | ||
| - packed integer horizontal reductions (PHADD, PHSUB) | ||
| - packed floating-point arithmetic instructions (ADDPx, SUBPx, MULPx, DIVPx) | ||
| - packed floating-point horizontal reductions (HADDPx, HSUBPx) | ||
| - packed bitwise instructions (PAND, PANDN, POR, PXOR, PSR, PSL) | ||
| - packed comparison instructions (PCMP, PTEST) | ||
| - packed shifts (PSLLD, PSRLD) | ||
| - other packed instructions (PABS, PMAX, PMIN) | ||
|
|
||
| ## Other topics (To be discussed) | ||
oxe-i marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| SYSCALLS? | ||
| HEAP? | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.