Created
March 7, 2018 09:19
-
-
Save eriksvedang/956b00b7f0c4c0f1623a3e12ef82155a to your computer and use it in GitHub Desktop.
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
ENIAS_TILE_ADDRESS=$B000 | |
ENIAS_SPRITE_ADDRESS=$F400 | |
ENIAS_PALETTE_ADDRESS=$F500 | |
ENIAS_NAMETABLE_ADDRESS=$F000 | |
.org $0200 | |
ldx #$00 ; offset into sprite-table | |
lda #$00 | |
sta ENIAS_SPRITE_ADDRESS,x ; x-position | |
inx | |
lda #$00 | |
sta ENIAS_SPRITE_ADDRESS,x ; y-position | |
inx | |
lda #$21 | |
sta ENIAS_SPRITE_ADDRESS,x ; tile-index | |
rts | |
.segment "GFX_SPRITES" | |
.repeat 64 | |
.byte $00, $FE, $44, $80 | |
.endrepeat | |
.segment "GFX_NAMETABLE" | |
.repeat 768 | |
.byte $00 | |
.endrepeat | |
.segment "GFX_TILES" | |
.incbin "enias-font.bin" | |
.segment "GFX_PALETTE" | |
.incbin "default_palette.bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment