żeby się mieściło

This commit is contained in:
2025-01-11 22:53:26 +01:00
parent 189c744f0d
commit 4872607c76

2
main.c
View File

@@ -1,6 +1,5 @@
#include <xc.h> #include <xc.h>
#include <stdio.h> #include <stdio.h>
#pragma config FOSC = HS // Oscillator Selection bits #pragma config FOSC = HS // Oscillator Selection bits
#pragma config WDTE = OFF // Watchdog Timer Enable bit #pragma config WDTE = OFF // Watchdog Timer Enable bit
#pragma config PWRTE = OFF // Power-up Timer Enable bit #pragma config PWRTE = OFF // Power-up Timer Enable bit
@@ -8,7 +7,6 @@
#pragma config BOREN = OFF // Brown-out Reset Enable bit #pragma config BOREN = OFF // Brown-out Reset Enable bit
#define LENGTH 8 #define LENGTH 8
unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej
unsigned char rest = 0; unsigned char rest = 0;
unsigned int result = 0; unsigned int result = 0;