#include "sys/alt_stdio.h" #include "system.h" int main() { unsigned long regval; while (1) { regval = *(volatile unsigned long *)PIO_1_BASE; *(volatile unsigned long *)PIO_0_BASE = regval; } return 0; }