Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asm6: collect all SEGMENTs, not just zp/bss
Turns out we need assignments within the corresponding ifdef, not pulled out into a separate section. for #9
- Loading branch information
Showing
4 changed files
with
75 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
python3 ../tools/pilbmp2nes.py sicktiles.png sicktiles.chr | ||
asm6 shell.asm6 sick.nes | ||
|
||
# Make sure we have a music file | ||
OLDCWD=$(pwd) | ||
echo "running in $OLDCWD" | ||
cd .. | ||
make obj/nes/musicseq.s | ||
cd "$OLDCWD" | ||
|
||
python3 ../tools/pilbmp2nes.py sicktiles.png sicktiles.chr < /dev/null | ||
python3 sick.py < /dev/null > pently.asm6 | ||
asm6 -L shell.asm6 sick.nes sick.lst.txt | ||
Mesen.exe sick.nes | ||
#fceux sick.nes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
ppu_clear_oam: | ||
txa | ||
and #$FC | ||
tax | ||
lda #$FF | ||
@loop: | ||
sta OAM,x | ||
inx | ||
inx | ||
inx | ||
inx | ||
bne @loop | ||
rts | ||
|
||
ppu_screen_on: | ||
stx PPUSCROLL | ||
sty PPUSCROLL | ||
sta PPUCTRL | ||
lda #BG_ON | ||
bcc @no_sprites | ||
lda #BG_ON|OBJ_ON | ||
@no_sprites: | ||
sta PPUMASK | ||
rts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters