36 lines
570 B
C
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;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|