Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ctboard:peripherals:hexsw [2022/12/23 11:01] ruanctboard:peripherals:hexsw [2026/06/25 14:53] (current) – [Programming Example] scbj
Line 30: Line 30:
 \\ \\
  
-<code asm+<code text
-ADDR_HEXSW      EQU      0x60000211+.equ ADDR_HEXSW,    0x60000211
                                  
-                LDR      r0, =ADDR_HEXSW +        ldr         r0, =ADDR_HEXSW 
-                LDRB     r1, [r0, #0]       Read HEXSW into the lower nibble of a byte.+        ldrb        r1, [r0, #0]       // Read HEXSW into the lower nibble of a byte.
 </code> </code>
 \\ \\
  
  • ctboard/peripherals/hexsw.1671793307.txt.gz
  • Last modified: 2022/12/23 11:01
  • by ruan