mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-21 16:45:08 -05:00
Update README.md
This commit is contained in:
parent
b9890893c0
commit
dffa0b07bf
@ -4,8 +4,15 @@
|
||||
|
||||
```
|
||||
PORTB = *ptr; // is this atomic? probably, because ptr is 6-bit pointer.
|
||||
f98: e0 91 26 01 lds r30, 0x0126 ; 0x800126 <__data_end>
|
||||
f9c: f0 91 27 01 lds r31, 0x0127 ; 0x800127 <__data_end+0x1>
|
||||
fa0: 80 81 ld r24, Z
|
||||
fa2: 85 b9 out 0x05, r24 ; 5
|
||||
f98: e0 91 26 01 lds r30, 0x0126 ; 0x800126 <__data_end> // 2 clocks
|
||||
f9c: f0 91 27 01 lds r31, 0x0127 ; 0x800127 <__data_end+0x1> // 2 clocks
|
||||
fa0: 80 81 ld r24, Z // 1 clock
|
||||
fa2: 85 b9 out 0x05, r24 ; 5 // 1 clock
|
||||
```
|
||||
|
||||
```
|
||||
mov r31, r1
|
||||
mov r30, gpior2
|
||||
ld r24, Z
|
||||
out 0x05, r24
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user