mirror of
https://github.com/cc65/cc65.git
synced 2025-02-01 09:30:10 +00:00
remove dangling spaces
This commit is contained in:
parent
f8f901b05e
commit
299f967527
@ -1,4 +1,4 @@
|
||||
/* Note:
|
||||
/* Note:
|
||||
** This is just a sample piece of code that shows how to use some structs -
|
||||
** it may not even run.
|
||||
*/
|
||||
@ -28,5 +28,5 @@ static const dlgBoxStr myDialog = {
|
||||
|
||||
void main (void)
|
||||
{
|
||||
DoDlgBox (&myDialog);
|
||||
DoDlgBox (&myDialog);
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
/*
|
||||
GEOSLib example
|
||||
|
||||
|
||||
using DlgBoxFileSelect
|
||||
|
||||
|
||||
Maciej 'YTM/Elysium' Witkowiak
|
||||
<ytm@elysium.pl>
|
||||
|
||||
|
||||
26.12.1999
|
||||
*/
|
||||
|
||||
|
@ -9,16 +9,16 @@ void main(void)
|
||||
char ch;
|
||||
|
||||
DlgBoxOk("Now the screen will be", "cleared.");
|
||||
|
||||
|
||||
clrscr();
|
||||
|
||||
|
||||
DlgBoxOk("Now a character will be", "written at 20,20");
|
||||
|
||||
|
||||
gotoxy(20, 20);
|
||||
cputc('A');
|
||||
|
||||
DlgBoxOk("Now a string will be", "written at 0,1");
|
||||
|
||||
|
||||
cputsxy(0, 1, CBOLDON "Just" COUTLINEON "a " CITALICON "string." CPLAINTEXT );
|
||||
|
||||
DlgBoxOk("Write text and finish it", "with a dot.");
|
||||
@ -31,7 +31,7 @@ void main(void)
|
||||
cursor(0);
|
||||
|
||||
DlgBoxOk("Seems that it is all for conio.", "Let's test mouse routines.");
|
||||
|
||||
|
||||
mouse_init(1);
|
||||
cputsxy(0, 2, CBOLDON "Now you can't see mouse (press any key)" CPLAINTEXT);
|
||||
mouse_hide();
|
||||
|
@ -57,6 +57,6 @@ void main (void)
|
||||
}
|
||||
|
||||
Sleep(10*50);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
/*
|
||||
GEOSLib example
|
||||
|
||||
|
||||
Hello, world example - with DBox
|
||||
|
||||
|
||||
Maciej 'YTM/Elysium' Witkowiak
|
||||
<ytm@elysium.pl>
|
||||
|
||||
|
||||
26.12.1999
|
||||
*/
|
||||
|
||||
@ -18,7 +18,7 @@ void main (void)
|
||||
|
||||
DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
|
||||
"This is written in C!");
|
||||
|
||||
|
||||
// Normal apps exit from main into system's mainloop, and app finish
|
||||
// when user selects it from icons or menu, but here we want to exit
|
||||
// immediately.
|
||||
|
@ -1,11 +1,11 @@
|
||||
/*
|
||||
GEOSLib example
|
||||
|
||||
|
||||
Hello, world example - using graphic functions
|
||||
|
||||
|
||||
Maciej 'YTM/Alliance' Witkowiak
|
||||
<ytm@friko.onet.pl>
|
||||
|
||||
|
||||
26.12.1999
|
||||
*/
|
||||
|
||||
@ -25,18 +25,18 @@ void main (void)
|
||||
SetPattern(0);
|
||||
InitDrawWindow(&wholeScreen);
|
||||
Rectangle();
|
||||
|
||||
|
||||
// Now some texts
|
||||
PutString(COUTLINEON "This is compiled using cc65!" CPLAINTEXT, 20, 10);
|
||||
PutString(CBOLDON "This is bold", 30, 10);
|
||||
PutString(CULINEON "and this is bold and underline!", 40, 10);
|
||||
PutString(CPLAINTEXT "This is plain text", 50, 10);
|
||||
|
||||
|
||||
// Wait for 5 secs...
|
||||
// Note that this is multitasking sleep, and if there are any icons/menus onscreen,
|
||||
// they would be usable, in this case you have only pointer usable
|
||||
Sleep(5*50);
|
||||
|
||||
|
||||
// Normal apps exit from main into system's mainloop, and app finish
|
||||
// when user selects it from icons or menu, but here we want to exit
|
||||
// immediately.
|
||||
|
@ -33,7 +33,7 @@ void foo(void)
|
||||
{
|
||||
/* Functions resident in an overlay can access all program variables and
|
||||
** constants at any time without any precautions because those are never
|
||||
** placed in overlays. The string constant "One" is an example for such
|
||||
** placed in overlays. The string constant "One" is an example for such
|
||||
** a constant resident in the main program.
|
||||
*/
|
||||
show("One");
|
||||
|
@ -1,12 +1,12 @@
|
||||
/*
|
||||
GEOSLib example
|
||||
|
||||
|
||||
This small application removes GEOS disk write protection tag.
|
||||
e.g. boot disk is always protected after boot-up
|
||||
|
||||
|
||||
Maciej 'YTM/Elysium' Witkowiak
|
||||
<ytm@elysium.pl>
|
||||
|
||||
|
||||
21.03.2000
|
||||
*/
|
||||
|
||||
@ -60,7 +60,7 @@ void main(void)
|
||||
{
|
||||
// Here we clear the screen. Not really needed anyway...
|
||||
GraphicsString(&clearScreen);
|
||||
|
||||
|
||||
// Get the name of current disk to show it in dialog box
|
||||
GetPtrCurDkNm(diskName);
|
||||
|
||||
|
@ -14,7 +14,7 @@ int main (void) {
|
||||
int flashes = 255;
|
||||
int displayable = 1;
|
||||
int e = 0;
|
||||
int r = 0;
|
||||
int r = 0;
|
||||
int d = 0;
|
||||
int i = 0;
|
||||
int l = 0;
|
||||
@ -40,7 +40,7 @@ int main (void) {
|
||||
puts ("\n\nHow many times (0 for forever) to repeat?");
|
||||
c = getchar();
|
||||
if ( (c >= '0') && (c <= '9') ) {// between 1 and 9 loops allowed
|
||||
z = 1; // a number was pressed
|
||||
z = 1; // a number was pressed
|
||||
t = c - '0'; // convert char to int
|
||||
puts ("\n\nLook at the front panel.\n");
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ int main (void) {
|
||||
error = 0;
|
||||
}
|
||||
}
|
||||
segment += 0x1000; // Increment to next segment
|
||||
segment += 0x1000; // Increment to next segment
|
||||
}
|
||||
|
||||
segment[0] = 0x00; // Check beginning of top memory segment
|
||||
|
@ -52,7 +52,7 @@ int main (void) {
|
||||
ior3b = VIA3.prb;
|
||||
|
||||
puts ("================== Digital I/O Status ==================");
|
||||
puts (" Port1A Port1B Port2A Port2B Port3A Port3B" );
|
||||
puts (" Port1A Port1B Port2A Port2B Port3A Port3B" );
|
||||
printf ("DDR %02X %02X %02X %02X %02X %02X\n\r",ddr1a,ddr1b,ddr2a,ddr2b,ddr3a,ddr3b);
|
||||
printf ("IOR %02X %02X %02X %02X %02X %02X\n\r",ior1a,ior1b,ior2a,ior2b,ior3a,ior3b);
|
||||
puts ("========================================================\n");
|
||||
@ -75,7 +75,7 @@ int main (void) {
|
||||
cmd[strlen(cmd)-1] = '\0';
|
||||
|
||||
if ( strncasecmp(cmd, "quit", 4) == 0 ) {
|
||||
going = 0;
|
||||
going = 0;
|
||||
}
|
||||
else if ( strncasecmp(cmd, "help", 4) == 0 ) {
|
||||
instr = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user