Gujin: Difference between revisions

36 bytes added ,  29 days ago
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 77:
Create a file with that content:
 
<sourcesyntaxhighlight lang="c">
const char msg1[] = "Hello protected-mode text world! please reboot ...";
#define STACKSIZE 64 * 1024
Line 97:
continue;
}
</syntaxhighlight>
</source>
 
Then compile it like (you may need to add "-fno-stack-protector" too, distribution dependant):
Line 128:
Just create a file which [http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/project/gu/gujin/gujin/2.8.2/gujin-2.8.2.tar.gz/gujin/hello_bios.c?extract=true contains]:
 
<sourcesyntaxhighlight lang="c">
/* hello_bios.c - public domain - no support whatsoever */
 
Line 223:
return 0xA0000000; /* to return to Gujin menu, do not display "press a key to continue" */
}
</syntaxhighlight>
</source>
 
And then compile it by: