Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aaron Erhardt
Cheatsheets
Commits
7821555f
Commit
7821555f
authored
Apr 29, 2021
by
Aaron Erhardt
Browse files
Fix syntax
Signed-off-by:
Aaron Erhardt
<
aaron.erhardt@t-online.de
>
parent
c6d67576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Mikrocomputertechnik/asm.md
View file @
7821555f
## Load
```
asm
ldr rd, =
const ; load constant
ldr rd, =const
; load constant
ldr r1, [r0] ; load content of address of r0 into r1
ldr r1, [r0, #8] ; same with offset
ldr r1, [r0], #8 ; post-increment
...
...
@@ -82,8 +82,8 @@ bne LABEL ; not equal Z = 0
## Stack
```
asm
push r1 ; push r1 on the stack
pop r1 ; restore r1 from the stack
push
{
r1
}
; push r1 on the stack
pop
{
r1
}
; restore r1 from the stack
push {r0-r5} ; push r0-r5
pop {r0-r5} ; pop r0-r5 (in the correct order)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment