1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

All samples use 'int main' and 'return int'

This commit is contained in:
Wayne Parham 2021-06-16 07:35:18 -05:00
parent f98e5f4feb
commit f1f700799b
5 changed files with 21 additions and 6 deletions

View File

@ -9,7 +9,7 @@
#include <stdio.h>
#include <sym1.h>
void main (void) {
int main (void) {
int delay = 10;
int flashes = 255;
int displayable = 1;
@ -351,5 +351,8 @@ void main (void) {
}
}
}
puts( "\n\nEnjoy your day!\n\n" );
return 0;
}

View File

@ -9,7 +9,7 @@
#include <stdio.h>
#include <sym1.h>
void main(void) {
int main(void) {
char c = 0x00;
int d = 0x00;
int l = 0x00;
@ -34,4 +34,6 @@ void main(void) {
for( d = 0; d < 10 ; d++ ) {
}
}
return 0;
}

View File

@ -11,7 +11,7 @@
#include <stdlib.h>
#include <string.h>
void main(void) {
int main(void) {
unsigned char ddr1a = 0x00;
unsigned char ior1a = 0x00;
unsigned char ddr1b = 0x00;
@ -165,4 +165,8 @@ void main(void) {
}
}
}
puts( "\n\nEnjoy your day!\n\n" );
return 0;
}

View File

@ -20,8 +20,8 @@
#define TAPIO_ADDRESS 0xE000
#define TAPIO_MAX_SIZE 0x0FFF
void main(void) {
cha c = 0x00;
int main(void) {
char c = 0x00;
int l = 0x00;
int p = 0x00;
int error = 0x00;
@ -183,6 +183,10 @@ void main(void) {
}
}
}
free( buffer );
puts( "\nEnjoy your day!\n" );
return 0;
}

View File

@ -11,7 +11,7 @@
#include <stdio.h>
#include <sym1.h>
void main(void) {
int main(void) {
char c = 0x00;
int d = 0x00;
int l = 0x00;
@ -37,4 +37,6 @@ void main(void) {
for( d = 0; d < 10 ; d++ ) {
}
}
return 0;
}