Permalink
Browse files

started work on player

  • Loading branch information...
jkotlinski committed Jun 24, 2018
1 parent d6f6321 commit ca50ce40779259333aa2c71886b6aabd91fd00fb
Showing with 40 additions and 1 deletion.
  1. +4 −0 .gitignore
  2. +2 −1 .lvimrc
  3. +34 −0 player.s
@@ -3,3 +3,7 @@ CMakeFiles
Makefile
cmake_install.cmake
lsdpack.exe
*.gb
*.o
music.s
tags
@@ -1 +1,2 @@
map <F4> :wall!<CR>:make<CR>:!./lsdpack.exe ../lsdj/lsdj.gb<CR>
map <F3> :wall!<CR>:make<CR>:!./lsdpack.exe ../lsdj/lsdj.gb<CR>
map <F4> :wall!<CR>:!rgbasm -o music.o music.s<CR>:!rgbasm -o player.o player.s<CR>:!rgblink -o player.gb player.o music.o<CR>:!rgbfix -v -m 0x19 -p 0 player.gb<CR>
@@ -0,0 +1,34 @@
PlayerScope

SECTION "player_ram",WRAM0

.bank
ds 2
.ptr
ds 2

SECTION "boot",ROM0[$100]
jr $150

SECTION "player_code",ROM0[$150]
; initialize bank + ptr
ld hl,$3000
xor a
ld [.bank+1],a
ld [hl],a
ld [.ptr],a
ld h,$20
inc a
ld [.bank],a
ld [hl],a
ld a,$40
ld [.ptr+1],a

.mainloop
jr .mainloop

.on_lcd_interrupt
reti

SECTION "lcd_handler",ROM0[$48]
jp .on_lcd_interrupt

0 comments on commit ca50ce4

Please sign in to comment.