File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1+ #include "types.h"
2+
3+ void init_tables ();
4+
5+ /* Reduce local variables as much as possible to preserve stack space. */
6+
7+
18
29unsigned char * memcpy (unsigned char * dest , const unsigned char * src , int count )
310{
411while (count -- )
5- {
612* dest ++ = * src ++ ;
7- }
813return dest ;
914}
1015
@@ -55,7 +60,13 @@ void main()
5560{
5661/* You would add commands after here */
5762
58- /* ...and leave this loop in. There is an endless loop in
59- * 'start.asm' also, if you accidentally delete this next line */
60- for (;);
63+ init_tables ();
64+ init_video ();
65+ puts ("GREETINGS PROFESSOR FALKEN" );
66+ puts ("\r\nWOULD YOU LIKE TO PLAY A GAME?\r\n" );
67+ puthex (12345 );
68+ putdec (8808 );
69+ asm volatile ("int $0x3" );
70+ /* busy wait */
71+ for (;);
6172}
You can’t perform that action at this time.
0 commit comments