Skip to content

Instantly share code, notes, and snippets.

@avr-programmierung
Created May 14, 2019 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avr-programmierung/787752ab5fab43f6b77bbe66c03a763a to your computer and use it in GitHub Desktop.
Save avr-programmierung/787752ab5fab43f6b77bbe66c03a763a to your computer and use it in GitHub Desktop.
include <avr/io.h>
/* code004.c Simulator */
#include <avr/io.h>
uint8_t a=2, b=5, hilf; // Deklaration und Initialisierung globaler Variablen
int main(void)
{
hilf = a; // in hilf wird der Wert von a gespeichert
a = b; // in a wird der Wert von b gespeichert
b = hilf; // in b wird der Wert von hilf gespeichert
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment