Difference between revisions of "Code Examples"
From GbdevWiki
(→Assembler examples) |
|||
Line 10: | Line 10: | ||
70 end | 70 end | ||
</pre> | </pre> | ||
+ | |||
+ | == C examples == | ||
+ | [[Simple paint program]] | ||
== Simple GBDK example == | == Simple GBDK example == |
Revision as of 16:42, 27 July 2014
Simple GBBasic 2.10 example
10 rem Simple example 20 for i=1 to 16 30 u=rnd(1)*16 40 print u 50 delay 20 60 next i 70 end
C examples
Simple GBDK example
#include <gb/gb.h> #include <stdio.h> void main() { printf("nHello World!"); }