Files
SyncHome/trunk/workspace/Z80/main.c
2023-03-13 08:36:51 +00:00

36 lines
570 B
C

/* *************************************************************** *
* Z80 SDCC code example *
* (c) 01.05.2017 Paolo Iocco *
* *
***************************************************************** */
#include "lcd.h"
__sfr __at 0x40 Ingresso; // IN/OUT port at 0x40
unsigned char a, b;
const unsigned char welcome[] = "Hello world!";
void foo (void){
a++;
}
main() {
a=0;
b=0;
lcd_init();
lcd_puts(welcome);
foo();
while(1) {
a++;
b=Ingresso;
}
}