mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-23 06:32:11 +00:00
nes: fixed hello.c preset
This commit is contained in:
parent
a9a8a574c3
commit
8b3bee9e7b
@ -166,6 +166,7 @@ TODO:
|
|||||||
- make sure to flatten subdirs
|
- make sure to flatten subdirs
|
||||||
- astrocade
|
- astrocade
|
||||||
- ctrl+alt+l on ubuntu locks screen
|
- ctrl+alt+l on ubuntu locks screen
|
||||||
|
- alt-D doesn't work anymore
|
||||||
- cookie
|
- cookie
|
||||||
- list of stuff for policy
|
- list of stuff for policy
|
||||||
- popup
|
- popup
|
||||||
|
@ -13,7 +13,7 @@ Finally, turn on the PPU to display video.
|
|||||||
|
|
||||||
// main function, run after console reset
|
// main function, run after console reset
|
||||||
void main(void) {
|
void main(void) {
|
||||||
int x;
|
|
||||||
// set palette colors
|
// set palette colors
|
||||||
pal_col(0,0x02); // set screen to dark blue
|
pal_col(0,0x02); // set screen to dark blue
|
||||||
pal_col(1,0x14); // pink
|
pal_col(1,0x14); // pink
|
||||||
@ -27,10 +27,6 @@ void main(void) {
|
|||||||
// enable PPU rendering (turn on screen)
|
// enable PPU rendering (turn on screen)
|
||||||
ppu_on_all();
|
ppu_on_all();
|
||||||
|
|
||||||
for (x=0; x<500; x++) {
|
|
||||||
ppu_wait_frame();
|
|
||||||
}
|
|
||||||
ppu_off();
|
|
||||||
// infinite loop
|
// infinite loop
|
||||||
while (1) ;
|
while (1) ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user