Commit 424b18fe authored by Aaron Erhardt's avatar Aaron Erhardt
Browse files

Minor improvements


Signed-off-by: default avatarAaron Erhardt <aaron.erhardt@t-online.de>
parent 3f3c3f12
Pipeline #809 passed with stage
in 1 minute and 56 seconds
......@@ -60,25 +60,25 @@ eor r0, r1, r2 ; r0 = r1 XOR r2
### Arithmetic shift right
```asm
asr r0, r1, r2 ; r0 = r1 >> r2, keeps correct sign!
asr r0, r1, r2 ; r0 = r1 >> r2, shifts and keeps correct sign!
```
### Logical shift right
```asm
lsr r0, r1, r2 ; r0 = r1 >> r2, fills with zeros and doesn't keep correct sign!
lsr r0, r1, r2 ; r0 = r1 >> r2, shifts and fills with zeros
```
### Logical shift left
```asm
lsl r0, r1, r2 ; r0 = r1 << r2, fills with zeros
lsl r0, r1, r2 ; r0 = r1 << r2, shifts and fills with zeros
```
### Rotate right
```asm
ror r0, r1, r2 ; r0 = r1 >> r2, bits will wrap around
ror r0, r1, r2 ; r0 = r1 >> r2, shifts and bits will wrap around
```
## Load
......@@ -267,7 +267,7 @@ Output: Set bits of the ODR register to activate individual pins
Input: Read bits of the IDR register to get values of individual pin
**Example**
#### Example
```asm
; define port addresses and register offsets (data sheet)...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment