Skip to content

Commit e2726e3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f534c69 commit e2726e3

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

docs/cli-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ xc8-wrapper as --cpu PIC16F877A --passthrough="-mpic14 -mwarn=3" main.s
380380

381381
#### Output Formats
382382
- `-inhx32`: Intel HEX 32-bit format (default)
383-
- `-inhx8m`: Intel HEX 8M format
383+
- `-inhx8m`: Intel HEX 8M format
384384
- `-binary`: Binary output format
385385
- `-motorola`: Motorola S-record format
386386

@@ -401,7 +401,7 @@ xc8-wrapper as --cpu PIC16F877A --passthrough="-mpic14 -mwarn=3" main.s
401401

402402
The same security validation applies to the AS command as the CC command:
403403
- Shell operators and command substitution are blocked
404-
- File traversal patterns are blocked
404+
- File traversal patterns are blocked
405405
- Only assembler-specific options should be passed through
406406

407407
### Assembly Development Workflow

docs/examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ MAIN:
9797
bsf STATUS, RP0
9898
clrf TRISC ; PORTC as output
9999
bcf STATUS, RP0 ; Back to bank 0
100-
100+
101101
clrf PORTC ; Initialize PORTC
102102
103103
MAIN_LOOP:
@@ -383,7 +383,7 @@ jobs:
383383
run: |
384384
# Build C firmware
385385
xc8-wrapper cc --cpu PIC16F877A --xc8-version 3.00 main.c -O2
386-
386+
387387
# Build assembly firmware (if present)
388388
if [ -f main.s ]; then
389389
xc8-wrapper as --cpu PIC16F877A --xc8-version 3.00 main.s
@@ -506,7 +506,7 @@ xc8-wrapper as --cpu PIC16F877A --passthrough="-g -gdwarf-3" main.s
506506
# PIC14 family specific options
507507
xc8-wrapper as --cpu PIC16F877A --passthrough="-mpic14 -msummary" main.s
508508

509-
# PIC18 family specific options
509+
# PIC18 family specific options
510510
xc8-wrapper as --cpu PIC18F4550 --passthrough="-mpic16 -mwarn=3" main.s
511511
```
512512

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ xc8-wrapper as --cpu PIC16F877A --xc8-version 3.00 main.s
7878

7979
**A:** XC8 Wrapper supports PIC assembly using the pic-as assembler that comes with XC8. It supports:
8080
- PIC14 family (PIC16F series)
81-
- PIC16 family (PIC18F series)
81+
- PIC16 family (PIC18F series)
8282
- Intel HEX output format
8383
- Motorola S-record format
8484
- Binary format
@@ -108,7 +108,7 @@ Mixed-language project support is planned for future versions.
108108

109109
### Q: What's the difference between using `cc` and `as` commands?
110110

111-
**A:**
111+
**A:**
112112
- `cc` command: Compiles C source files using `xc8-cc`
113113
- `as` command: Assembles assembly source files using `pic-as`
114114

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ MAIN:
222222
bsf STATUS, RP0
223223
clrf TRISC ; PORTC as output
224224
bcf STATUS, RP0 ; Back to bank 0
225-
225+
226226
clrf PORTC ; Initialize PORTC
227227
228228
MAIN_LOOP:

examples/asm-simple/main.s

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
* @author Generated Code
66
* @date 2025
77
* @version 1.0
8-
*
8+
*
99
* @brief Main features:
1010
* - LED blinking on PORTC RC2 every 500ms
1111
* - Uses Timer0 with prescaler 1:256 for timing
1212
* - External 4MHz crystal oscillator
1313
* - Port configuration with detailed documentation
14-
*
14+
*
1515
* @note Hardware requirements:
1616
* - PIC16F876A microcontroller
1717
* - 4MHz crystal with 22pF capacitors
1818
* - LED with series resistor on RC2
1919
* - 5V power supply
20-
*
20+
*
2121
* @warning Ensure proper crystal connections for reliable operation
2222
*/
2323

@@ -88,7 +88,7 @@ PSECT code,class=CODE,delta=2
8888
MAIN:
8989
; Port configuration
9090
BANKSEL TRISC
91-
91+
9292
/**
9393
* @brief Port C configuration
9494
* @details Must account for LEDs and system signals
@@ -97,7 +97,7 @@ MAIN:
9797
*/
9898
MOVLW 0b00100000 ; RC5 input, others output
9999
MOVWF TRISC
100-
100+
101101
/**
102102
* @brief Port A configuration
103103
* @details Must account for LEDs, push buttons and MONO signal
@@ -107,7 +107,7 @@ MAIN:
107107
*/
108108
MOVLW 0b00010110 ; RA1, RA2, RA4 inputs, others output
109109
MOVWF TRISA
110-
110+
111111
/**
112112
* @brief Port B configuration
113113
* @details Configuration according to system needs
@@ -116,7 +116,7 @@ MAIN:
116116
*/
117117
MOVLW 0b00000000 ; All PORTB outputs
118118
MOVWF TRISB
119-
119+
120120
/**
121121
* @brief Analog-to-digital converter configuration
122122
* @details Configure pins as digital or analog inputs
@@ -126,7 +126,7 @@ MAIN:
126126
*/
127127
MOVLW 0b00000110 ; Disable ADC, all digital
128128
MOVWF ADCON1
129-
129+
130130
/**
131131
* @brief Timer0 configuration
132132
* @details Configure Timer0 for timing delays
@@ -141,15 +141,15 @@ MAIN:
141141
*/
142142
MOVLW 0b10000111 ; Prescaler 1:256
143143
MOVWF OPTION_REG
144-
144+
145145
/**
146146
* @brief Port initialization
147147
* @details Initialize all ports to known state
148148
* @note Clear all output latches
149149
*/
150150
; Switch to bank 0
151151
BANKSEL PORTC
152-
152+
153153
; Clear all ports
154154
CLRF PORTC
155155
CLRF PORTA
@@ -165,11 +165,11 @@ MAIN_LOOP:
165165
; Turn ON LED4 (RC2)
166166
BSF PORTC, LED4 ; Using LED4 constant (bit 2)
167167
CALL DELAY_500MS
168-
168+
169169
; Turn OFF LED4 (RC2)
170170
BCF PORTC, LED4 ; Using LED4 constant (bit 2)
171171
CALL DELAY_500MS
172-
172+
173173
GOTO MAIN_LOOP
174174

175175
/**
@@ -184,7 +184,7 @@ MAIN_LOOP:
184184
DELAY_500MS:
185185
MOVLW 8 ; 8 overflows for ~500ms
186186
MOVWF OVERFLOW_COUNT
187-
187+
188188
/**
189189
* @brief Timer0 overflow counting loop
190190
* @details Wait for specified number of Timer0 overflows
@@ -205,10 +205,10 @@ TIMER_LOOP:
205205
WAIT_OVERFLOW:
206206
BTFSS INTCON, 2 ; Check TMR0IF flag
207207
GOTO WAIT_OVERFLOW
208-
208+
209209
DECFSZ OVERFLOW_COUNT, F
210210
GOTO TIMER_LOOP
211-
211+
212212
RETURN
213213

214214
/**

0 commit comments

Comments
 (0)