M .gitignore => .gitignore +6 -5
@@ 5,11 5,12 @@
/Source/boot.rom
/uxn/
-*snarf
-*theme
+*.snarf
+*.theme
-*rom
-*png~
-*autosave.kra
+*.sym
+*.rom
+*.png~
+*.autosave.kra
M README.md => README.md +1 -1
@@ 9,7 9,7 @@ The [Playdate](https://play.date/) is a monochromatic handheld console, programm
```
sudo apt-get install gcc-arm-none-eabi clang # Debian
-sudo pacman -Sy gcc-arm-none-eabi clang #Arch
+sudo pacman -Sy gcc-arm-none-eabi arm-none-eabi-newlib clang #Arch
```
## Build
M build.sh => build.sh +2 -2
@@ 1,6 1,7 @@
#!/bin/sh -e
-TARGET=etc/wireworld.tal
+export PLAYDATE_SDK_PATH="/home/neauoire/Documents/playdate/PlaydateSDK-1.13.0"
+TARGET="etc/wireworld.tal"
rm -rf bin
mkdir bin
@@ 10,4 11,3 @@ uxnasm $TARGET etc/boot.rom
clang-format -i src/main.c
clang-format -i src/devices/ppu.c
clang-format -i src/devices/ppu.h
-
M src/main.c => src/main.c +4 -3
@@ 99,14 99,15 @@ screen_deo(Uint8 *d, Uint8 port)
POKDEV(0xc, addr); /* auto addr+length */
POKDEV(0x8, x + dx); /* auto x+8 */
POKDEV(0xa, y + dy); /* auto y+8 */
- pd->graphics->markUpdatedRows(y, y + 7 + n*8);
+ pd->graphics->markUpdatedRows(y, y + 7 + n * 8);
break;
}
}
}
void
-audio_deo(Uint8 *d, Uint8 port){
+audio_deo(Uint8 *d, Uint8 port)
+{
/* TODO
Apu *c = &apu[d - devaudio0];
if(!w) {
@@ 173,7 174,7 @@ apu_init(void)
{
int i;
SoundChannel *ch = pd->sound->getDefaultChannel();
- for(i = 0; i < POLYPHONY; ++i)
+ for(i = 0; i < POLYPHONY; ++i)
apu_sources[i] = pd->sound->channel->addCallbackSource(ch, audio_callback, &apu[i], 1);
pd->sound->channel->setVolume(ch, 1.0);
pd->sound->channel->setPan(ch, 0.0);