├── README.md ├── _rom ├── doc02 gritdemo.gba ├── doc06 bios_lz77.gba ├── doc07 sram.gba ├── doc08 cpu_div_mod.gba ├── doc10 emu_debug.gba ├── doc11 gbfs.gba ├── doc12 bitmap_font.gba ├── doc13 bitmap_font2.gba ├── doc14 tile_font.gba ├── doc15 tile_font2.gba ├── doc16 template.gba ├── doc17 key_ex.gba ├── doc18 fixedpoint.gba ├── doc19 rnd.gba ├── doc20 rtc.gba ├── doc21 dma_ex.gba ├── doc22 affine_spr.gba ├── doc23 spr_doubler.gba ├── doc24 flash_test.gba ├── doc25 stack_test.gba ├── doc26 timing_test.gba ├── tut02 bitmap1.gba ├── tut03 bitmap2.gba ├── tut03 bitmap2_nowait.gba ├── tut04 bitmap3.gba ├── tut05 bitmap4.gba ├── tut06 key.gba ├── tut07 sprite1.gba ├── tut08 sprite2.gba ├── tut09 timer.gba ├── tut10 tile1.gba ├── tut11 tile2.gba ├── tut12 dma.gba ├── tut13 interrupt.gba ├── tut14 mosaic.gba ├── tut15 window.gba ├── tut16 blend.gba ├── tut17 scaling1.gba ├── tut18 scaling2.gba ├── tut19 rotate1.gba ├── tut20 rotate2.gba ├── tut21 raster_scroll.gba ├── tut22 directsound1.gba ├── tut23 directsound2.gba ├── tut24 gbsound1.gba ├── tut25 gbsound2.gba ├── tut26 gbsound3.gba ├── tut27 gbsound4.gba └── tut28 gpt_test.gba ├── clean_all.bat ├── doc02 grit └── gritdemo.gba ├── doc06 bios_lz77 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ └── image.png ├── doc07 sram ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── doc08 cpu_div_mod ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── doc10 emu_debug ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── doc11 gbfs ├── Makefile ├── gbfs │ ├── data │ │ ├── image1.grit │ │ ├── image1.png │ │ ├── image2.grit │ │ └── image2.png │ ├── make_gbfs.bat │ └── test.gbfs ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res │ └── Makefile └── test.gbfs ├── doc12 bitmap_font ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ └── tool │ ├── bdf2bmp06.zip │ └── k12x10bdf.tar.gz ├── doc13 bitmap_font2 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── mplus_j10r.bmp │ ├── mplus_j10r.grit │ ├── mplus_jfnt.txt │ └── tool │ └── mplus_bitmap_fonts-2.2.4.tar.gz ├── doc14 tile_font ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── BGSmall8Font.bmp │ ├── BGSmall8Font.grit │ └── Makefile ├── doc15 tile_font2 ├── Makefile ├── bg.c ├── bg.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── cct_mika.bin │ ├── font_ascii.bmp │ ├── font_ascii.grit │ ├── font_mika.bmp │ ├── font_mika.grit │ └── tool │ ├── mkcct.zip │ └── ttf2bmp.zip ├── doc16 template ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── main.h ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── doc17 key_ex ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── doc18 fixedpoint ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.bmp │ ├── font_ascii.grit │ ├── spr_test.grit │ └── spr_test.png ├── spr.c └── spr.h ├── doc19 rnd ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── rnd.c └── rnd.h ├── doc20 rtc ├── Makefile ├── bg.c ├── bg.h ├── doc │ ├── S3511A_E.pdf │ └── S3511A_J.pdf ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── rtc.c └── rtc.h ├── doc21 dma_ex ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── brin.grit │ ├── brin.png │ ├── font_ascii.grit │ └── font_ascii.png ├── doc22 affine_spr ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── math.c ├── math.h ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.grit │ ├── font_ascii.png │ ├── metr0.grit │ ├── metr0.png │ ├── metr1.grit │ └── metr1.png ├── spr.c ├── spr.h └── tool │ ├── sin.c │ └── sinlut.c ├── doc23 spr_doubler ├── Makefile ├── bg.c ├── bg.h ├── bullet.arm.c ├── bullet.arm.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.grit │ ├── font_ascii.png │ ├── spr_bullet_small.bmp │ └── spr_bullet_small.grit ├── rnd.arm.c ├── rnd.arm.h ├── spr.arm.c ├── spr.arm.h └── tool │ ├── sin.c │ └── sinlut.c ├── doc24 flash_test ├── Makefile ├── bg.c ├── bg.h ├── doc │ └── 20005023B.pdf ├── flash.c ├── flash.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── doc25 stack_test ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── doc26 timing_test ├── Makefile ├── bg.c ├── bg.h ├── code.c ├── code.h ├── irq.arm.c ├── irq.arm.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── make_all.bat ├── tut02 bitmap1 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── tut03 bitmap2 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── tut04 bitmap3 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── frame1.bmp │ ├── frame1.grit │ ├── frame2.bmp │ └── frame2.grit ├── tut05 bitmap4 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── frame1.bmp │ ├── frame1.grit │ ├── frame2.bmp │ └── frame2.grit ├── tut06 key ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep └── res │ └── Makefile ├── tut07 sprite1 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── spr1.grit │ ├── spr1.png │ ├── spr2.grit │ └── spr2.png ├── tut08 sprite2 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── spr.grit │ └── spr.png ├── tut09 timer ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── spr.grit │ └── spr.png ├── tut10 tile1 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── bg0.grit │ └── bg0.png ├── tut11 tile2 ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── bg0kusa.grit │ ├── bg0kusa.png │ ├── bg1kumo.grit │ └── bg1kumo.png ├── tut12 dma ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ └── image.png ├── tut13 interrupt ├── Makefile ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.arm.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── spr.grit │ └── spr.png ├── tut14 mosaic ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ └── image.png ├── tut15 window ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ ├── image.png │ ├── image2.grit │ └── image2.png ├── tut16 blend ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ ├── image.png │ ├── image2.grit │ └── image2.png ├── tut17 scaling1 ├── Makefile ├── font.c ├── font.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── image.grit │ ├── image.png │ ├── k6x10.bmp │ └── k6x10.grit ├── tut18 scaling2 ├── Makefile ├── font.c ├── font.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ ├── spr_slime.grit │ └── spr_slime.png ├── spr.c └── spr.h ├── tut19 rotate1 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── math.c ├── math.h ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.grit │ ├── font_ascii.png │ ├── image.grit │ └── image.png └── tool │ ├── sin.c │ └── sinlut.c ├── tut20 rotate2 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── math.c ├── math.h ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.grit │ ├── font_ascii.png │ ├── metr0.grit │ └── metr0.png ├── spr.c ├── spr.h └── tool │ ├── sin.c │ └── sinlut.c ├── tut21 raster_scroll ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── math.c ├── math.h ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── Makefile │ ├── font_ascii.grit │ ├── font_ascii.png │ ├── image.grit │ └── image.png └── tool │ ├── sin.c │ └── sinlut.c ├── tut22 directsound1 ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj │ └── .gitkeep ├── res.h ├── res │ ├── 1_c3.bin │ ├── 2_d3.bin │ ├── 3_e3.bin │ ├── 4_f3.bin │ ├── 5_g3.bin │ ├── 6_a3.bin │ ├── 7_b3.bin │ ├── 8_c4.bin │ ├── Makefile │ ├── font_ascii.bmp │ └── font_ascii.grit ├── snd.arm.c ├── snd.arm.h └── tool │ ├── 1_c3.bin │ ├── 1_c3.wav │ ├── 2_d3.bin │ ├── 2_d3.wav │ ├── 3_e3.bin │ ├── 3_e3.wav │ ├── 4_f3.bin │ ├── 4_f3.wav │ ├── 5_g3.bin │ ├── 5_g3.wav │ ├── 6_a3.bin │ ├── 6_a3.wav │ ├── 7_b3.bin │ ├── 7_b3.wav │ ├── 8_c4.bin │ ├── 8_c4.wav │ └── scale.py ├── tut23 directsound2 ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── libmm │ ├── gcc_patch.s │ ├── maxmod.h │ ├── mm_effect.s │ ├── mm_init_default.s │ ├── mm_main.s │ ├── mm_main_gba.s │ ├── mm_mas.s │ ├── mm_mas_arm.s │ ├── mm_mixer_gba.s │ ├── mm_types.h │ ├── mp_defs.inc │ ├── mp_format_mas.inc │ ├── mp_macros.inc │ ├── mp_mas.inc │ ├── mp_mas_structs.inc │ ├── mp_mixer_gba.inc │ └── swi_gba.inc ├── main.c ├── make_bin.bat ├── make_clean.bat ├── malloc.c ├── malloc.h ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── ambulance.wav │ ├── boom.wav │ ├── flatoutlies.mod │ ├── font_ascii.bmp │ └── font_ascii.grit ├── tut24 gbsound1 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── mode3.c ├── mode3.h ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ └── tool │ ├── bdf2bmp06.zip │ └── k12x10bdf.tar.gz ├── tut25 gbsound2 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── mode3.c ├── mode3.h ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ └── tool │ ├── bdf2bmp06.zip │ └── k12x10bdf.tar.gz ├── tut26 gbsound3 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── mode3.c ├── mode3.h ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ └── tool │ ├── bdf2bmp06.zip │ └── k12x10bdf.tar.gz ├── tut27 gbsound4 ├── Makefile ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib │ ├── common.c │ ├── common.h │ ├── crt0.s │ ├── div.h │ ├── div.s │ ├── gba.h │ ├── gbfs.c │ ├── gbfs.h │ ├── sys.arm.c │ └── sys.arm.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── mode3.c ├── mode3.h ├── obj │ └── .gitkeep ├── res.h └── res │ ├── Makefile │ ├── k6x10.bmp │ ├── k6x10.grit │ └── tool │ ├── bdf2bmp06.zip │ └── k12x10bdf.tar.gz └── tut28_gpt_test ├── Makefile ├── bg.c ├── bg.h ├── irq.arm.c ├── irq.arm.h ├── key.c ├── key.h ├── lib ├── common.c ├── common.h ├── crt0.s ├── div.h ├── div.s ├── gba.h ├── gbfs.c ├── gbfs.h ├── sys.arm.c └── sys.arm.h ├── libgpt ├── gbt_hardware.h ├── gbt_player.c └── gbt_player.h ├── main.c ├── make_bin.bat ├── make_clean.bat ├── obj └── .gitkeep ├── res.h ├── res ├── Makefile ├── bg_keyboard.bmp ├── bg_keyboard.grit ├── font_ascii.bmp ├── font_ascii.grit ├── spr_cur.bmp └── spr_cur.grit ├── spr.c ├── spr.h └── tool ├── In_the_Town_fix.mod ├── Joyous_Takeoff_fix.mod ├── _make.bat ├── mod └── mod2gbt.py ├── s3m └── s3m2gbt.py ├── template.s3m ├── template1.h ├── template2.h └── template3.h /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/README.md -------------------------------------------------------------------------------- /_rom/doc02 gritdemo.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc02 gritdemo.gba -------------------------------------------------------------------------------- /_rom/doc06 bios_lz77.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc06 bios_lz77.gba -------------------------------------------------------------------------------- /_rom/doc07 sram.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc07 sram.gba -------------------------------------------------------------------------------- /_rom/doc08 cpu_div_mod.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc08 cpu_div_mod.gba -------------------------------------------------------------------------------- /_rom/doc10 emu_debug.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc10 emu_debug.gba -------------------------------------------------------------------------------- /_rom/doc11 gbfs.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc11 gbfs.gba -------------------------------------------------------------------------------- /_rom/doc12 bitmap_font.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc12 bitmap_font.gba -------------------------------------------------------------------------------- /_rom/doc13 bitmap_font2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc13 bitmap_font2.gba -------------------------------------------------------------------------------- /_rom/doc14 tile_font.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc14 tile_font.gba -------------------------------------------------------------------------------- /_rom/doc15 tile_font2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc15 tile_font2.gba -------------------------------------------------------------------------------- /_rom/doc16 template.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc16 template.gba -------------------------------------------------------------------------------- /_rom/doc17 key_ex.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc17 key_ex.gba -------------------------------------------------------------------------------- /_rom/doc18 fixedpoint.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc18 fixedpoint.gba -------------------------------------------------------------------------------- /_rom/doc19 rnd.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc19 rnd.gba -------------------------------------------------------------------------------- /_rom/doc20 rtc.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc20 rtc.gba -------------------------------------------------------------------------------- /_rom/doc21 dma_ex.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc21 dma_ex.gba -------------------------------------------------------------------------------- /_rom/doc22 affine_spr.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc22 affine_spr.gba -------------------------------------------------------------------------------- /_rom/doc23 spr_doubler.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc23 spr_doubler.gba -------------------------------------------------------------------------------- /_rom/doc24 flash_test.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc24 flash_test.gba -------------------------------------------------------------------------------- /_rom/doc25 stack_test.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc25 stack_test.gba -------------------------------------------------------------------------------- /_rom/doc26 timing_test.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/doc26 timing_test.gba -------------------------------------------------------------------------------- /_rom/tut02 bitmap1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut02 bitmap1.gba -------------------------------------------------------------------------------- /_rom/tut03 bitmap2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut03 bitmap2.gba -------------------------------------------------------------------------------- /_rom/tut03 bitmap2_nowait.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut03 bitmap2_nowait.gba -------------------------------------------------------------------------------- /_rom/tut04 bitmap3.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut04 bitmap3.gba -------------------------------------------------------------------------------- /_rom/tut05 bitmap4.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut05 bitmap4.gba -------------------------------------------------------------------------------- /_rom/tut06 key.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut06 key.gba -------------------------------------------------------------------------------- /_rom/tut07 sprite1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut07 sprite1.gba -------------------------------------------------------------------------------- /_rom/tut08 sprite2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut08 sprite2.gba -------------------------------------------------------------------------------- /_rom/tut09 timer.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut09 timer.gba -------------------------------------------------------------------------------- /_rom/tut10 tile1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut10 tile1.gba -------------------------------------------------------------------------------- /_rom/tut11 tile2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut11 tile2.gba -------------------------------------------------------------------------------- /_rom/tut12 dma.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut12 dma.gba -------------------------------------------------------------------------------- /_rom/tut13 interrupt.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut13 interrupt.gba -------------------------------------------------------------------------------- /_rom/tut14 mosaic.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut14 mosaic.gba -------------------------------------------------------------------------------- /_rom/tut15 window.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut15 window.gba -------------------------------------------------------------------------------- /_rom/tut16 blend.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut16 blend.gba -------------------------------------------------------------------------------- /_rom/tut17 scaling1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut17 scaling1.gba -------------------------------------------------------------------------------- /_rom/tut18 scaling2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut18 scaling2.gba -------------------------------------------------------------------------------- /_rom/tut19 rotate1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut19 rotate1.gba -------------------------------------------------------------------------------- /_rom/tut20 rotate2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut20 rotate2.gba -------------------------------------------------------------------------------- /_rom/tut21 raster_scroll.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut21 raster_scroll.gba -------------------------------------------------------------------------------- /_rom/tut22 directsound1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut22 directsound1.gba -------------------------------------------------------------------------------- /_rom/tut23 directsound2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut23 directsound2.gba -------------------------------------------------------------------------------- /_rom/tut24 gbsound1.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut24 gbsound1.gba -------------------------------------------------------------------------------- /_rom/tut25 gbsound2.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut25 gbsound2.gba -------------------------------------------------------------------------------- /_rom/tut26 gbsound3.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut26 gbsound3.gba -------------------------------------------------------------------------------- /_rom/tut27 gbsound4.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut27 gbsound4.gba -------------------------------------------------------------------------------- /_rom/tut28 gpt_test.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/_rom/tut28 gpt_test.gba -------------------------------------------------------------------------------- /clean_all.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | for /d %%i in (.\*) do ( 5 | pushd "%%i" 6 | echo %%i 7 | make clean 8 | popd 9 | ) 10 | 11 | pause 12 | -------------------------------------------------------------------------------- /doc02 grit/gritdemo.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc02 grit/gritdemo.gba -------------------------------------------------------------------------------- /doc06 bios_lz77/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc06 bios_lz77/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc06 bios_lz77/lib/gba.h -------------------------------------------------------------------------------- /doc06 bios_lz77/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc06 bios_lz77/lib/gbfs.h -------------------------------------------------------------------------------- /doc06 bios_lz77/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc06 bios_lz77/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc06 bios_lz77/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc06 bios_lz77/obj/.gitkeep -------------------------------------------------------------------------------- /doc06 bios_lz77/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/image.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc06 bios_lz77/res/image.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -gzl 7 | -------------------------------------------------------------------------------- /doc06 bios_lz77/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc06 bios_lz77/res/image.png -------------------------------------------------------------------------------- /doc07 sram/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc07 sram/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc07 sram/lib/gba.h -------------------------------------------------------------------------------- /doc07 sram/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc07 sram/lib/gbfs.h -------------------------------------------------------------------------------- /doc07 sram/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc07 sram/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc07 sram/main.c -------------------------------------------------------------------------------- /doc07 sram/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc07 sram/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc07 sram/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc07 sram/obj/.gitkeep -------------------------------------------------------------------------------- /doc08 cpu_div_mod/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc08 cpu_div_mod/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc08 cpu_div_mod/lib/gba.h -------------------------------------------------------------------------------- /doc08 cpu_div_mod/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc08 cpu_div_mod/lib/gbfs.h -------------------------------------------------------------------------------- /doc08 cpu_div_mod/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc08 cpu_div_mod/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc08 cpu_div_mod/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc08 cpu_div_mod/obj/.gitkeep -------------------------------------------------------------------------------- /doc10 emu_debug/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc10 emu_debug/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc10 emu_debug/lib/gba.h -------------------------------------------------------------------------------- /doc10 emu_debug/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc10 emu_debug/lib/gbfs.h -------------------------------------------------------------------------------- /doc10 emu_debug/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc10 emu_debug/main.c -------------------------------------------------------------------------------- /doc10 emu_debug/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc10 emu_debug/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc10 emu_debug/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc10 emu_debug/obj/.gitkeep -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/data/image1.grit: -------------------------------------------------------------------------------- 1 | -fh! 2 | -g 3 | -gb 4 | -gB16 5 | -ftb 6 | -gzl 7 | -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/data/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/gbfs/data/image1.png -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/data/image2.grit: -------------------------------------------------------------------------------- 1 | -fh! 2 | -g 3 | -gb 4 | -gB16 5 | -ftb 6 | -gzl 7 | -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/data/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/gbfs/data/image2.png -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/make_gbfs.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | cd data 5 | 6 | grit image1.png -ffimage1.grit 7 | grit image2.png -ffimage2.grit 8 | ren *.img.bin *. 9 | 10 | gbfs ..\test.gbfs *.img 11 | del *.img 12 | 13 | 14 | echo done! 15 | pause 16 | -------------------------------------------------------------------------------- /doc11 gbfs/gbfs/test.gbfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/gbfs/test.gbfs -------------------------------------------------------------------------------- /doc11 gbfs/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc11 gbfs/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/lib/gba.h -------------------------------------------------------------------------------- /doc11 gbfs/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/lib/gbfs.h -------------------------------------------------------------------------------- /doc11 gbfs/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc11 gbfs/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/main.c -------------------------------------------------------------------------------- /doc11 gbfs/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc11 gbfs/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc11 gbfs/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/obj/.gitkeep -------------------------------------------------------------------------------- /doc11 gbfs/test.gbfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc11 gbfs/test.gbfs -------------------------------------------------------------------------------- /doc12 bitmap_font/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc12 bitmap_font/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/lib/gba.h -------------------------------------------------------------------------------- /doc12 bitmap_font/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/lib/gbfs.h -------------------------------------------------------------------------------- /doc12 bitmap_font/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/main.c -------------------------------------------------------------------------------- /doc12 bitmap_font/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc12 bitmap_font/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc12 bitmap_font/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/obj/.gitkeep -------------------------------------------------------------------------------- /doc12 bitmap_font/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/k6x10.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc12 bitmap_font/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/res/k6x10.bmp -------------------------------------------------------------------------------- /doc12 bitmap_font/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /doc12 bitmap_font/res/tool/bdf2bmp06.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/res/tool/bdf2bmp06.zip -------------------------------------------------------------------------------- /doc12 bitmap_font/res/tool/k12x10bdf.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc12 bitmap_font/res/tool/k12x10bdf.tar.gz -------------------------------------------------------------------------------- /doc13 bitmap_font2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc13 bitmap_font2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/lib/gba.h -------------------------------------------------------------------------------- /doc13 bitmap_font2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/lib/gbfs.h -------------------------------------------------------------------------------- /doc13 bitmap_font2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/main.c -------------------------------------------------------------------------------- /doc13 bitmap_font2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc13 bitmap_font2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc13 bitmap_font2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/obj/.gitkeep -------------------------------------------------------------------------------- /doc13 bitmap_font2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/mplus_j10r.h" 6 | 7 | extern const char mplus_jfnt_txt; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /doc13 bitmap_font2/res/mplus_j10r.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/res/mplus_j10r.bmp -------------------------------------------------------------------------------- /doc13 bitmap_font2/res/mplus_j10r.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /doc13 bitmap_font2/res/mplus_jfnt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/res/mplus_jfnt.txt -------------------------------------------------------------------------------- /doc13 bitmap_font2/res/tool/mplus_bitmap_fonts-2.2.4.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc13 bitmap_font2/res/tool/mplus_bitmap_fonts-2.2.4.tar.gz -------------------------------------------------------------------------------- /doc14 tile_font/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc14 tile_font/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc14 tile_font/lib/gba.h -------------------------------------------------------------------------------- /doc14 tile_font/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc14 tile_font/lib/gbfs.h -------------------------------------------------------------------------------- /doc14 tile_font/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc14 tile_font/main.c -------------------------------------------------------------------------------- /doc14 tile_font/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc14 tile_font/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc14 tile_font/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc14 tile_font/obj/.gitkeep -------------------------------------------------------------------------------- /doc14 tile_font/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/BGSmall8Font.h" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /doc14 tile_font/res/BGSmall8Font.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc14 tile_font/res/BGSmall8Font.bmp -------------------------------------------------------------------------------- /doc14 tile_font/res/BGSmall8Font.grit: -------------------------------------------------------------------------------- 1 | -m! 2 | -gt 3 | -gB4 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc15 tile_font2/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/bg.c -------------------------------------------------------------------------------- /doc15 tile_font2/bg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/bg.h -------------------------------------------------------------------------------- /doc15 tile_font2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc15 tile_font2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/lib/gba.h -------------------------------------------------------------------------------- /doc15 tile_font2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/lib/gbfs.h -------------------------------------------------------------------------------- /doc15 tile_font2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/main.c -------------------------------------------------------------------------------- /doc15 tile_font2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc15 tile_font2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc15 tile_font2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/obj/.gitkeep -------------------------------------------------------------------------------- /doc15 tile_font2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/font_mika.h" 7 | 8 | extern const unsigned short cct_mika_bin[]; 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /doc15 tile_font2/res/cct_mika.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/res/cct_mika.bin -------------------------------------------------------------------------------- /doc15 tile_font2/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc15 tile_font2/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc15 tile_font2/res/font_mika.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/res/font_mika.bmp -------------------------------------------------------------------------------- /doc15 tile_font2/res/font_mika.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw2 3 | -Mh2 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc15 tile_font2/res/tool/mkcct.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/res/tool/mkcct.zip -------------------------------------------------------------------------------- /doc15 tile_font2/res/tool/ttf2bmp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc15 tile_font2/res/tool/ttf2bmp.zip -------------------------------------------------------------------------------- /doc16 template/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc16 template/bg.c -------------------------------------------------------------------------------- /doc16 template/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc16 template/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc16 template/lib/gba.h -------------------------------------------------------------------------------- /doc16 template/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc16 template/lib/gbfs.h -------------------------------------------------------------------------------- /doc16 template/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc16 template/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc16 template/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc16 template/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc16 template/obj/.gitkeep -------------------------------------------------------------------------------- /doc16 template/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc16 template/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc16 template/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc16 template/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc17 key_ex/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/bg.c -------------------------------------------------------------------------------- /doc17 key_ex/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/key.c -------------------------------------------------------------------------------- /doc17 key_ex/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/key.h -------------------------------------------------------------------------------- /doc17 key_ex/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc17 key_ex/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/lib/gba.h -------------------------------------------------------------------------------- /doc17 key_ex/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/lib/gbfs.h -------------------------------------------------------------------------------- /doc17 key_ex/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc17 key_ex/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc17 key_ex/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc17 key_ex/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/obj/.gitkeep -------------------------------------------------------------------------------- /doc17 key_ex/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc17 key_ex/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc17 key_ex/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc17 key_ex/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc18 fixedpoint/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/bg.c -------------------------------------------------------------------------------- /doc18 fixedpoint/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/key.c -------------------------------------------------------------------------------- /doc18 fixedpoint/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/key.h -------------------------------------------------------------------------------- /doc18 fixedpoint/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc18 fixedpoint/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/lib/gba.h -------------------------------------------------------------------------------- /doc18 fixedpoint/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/lib/gbfs.h -------------------------------------------------------------------------------- /doc18 fixedpoint/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc18 fixedpoint/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc18 fixedpoint/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/obj/.gitkeep -------------------------------------------------------------------------------- /doc18 fixedpoint/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/spr_test.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /doc18 fixedpoint/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc18 fixedpoint/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc18 fixedpoint/res/spr_test.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /doc18 fixedpoint/res/spr_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc18 fixedpoint/res/spr_test.png -------------------------------------------------------------------------------- /doc19 rnd/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/bg.c -------------------------------------------------------------------------------- /doc19 rnd/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/key.c -------------------------------------------------------------------------------- /doc19 rnd/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/key.h -------------------------------------------------------------------------------- /doc19 rnd/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc19 rnd/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/lib/gba.h -------------------------------------------------------------------------------- /doc19 rnd/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/lib/gbfs.h -------------------------------------------------------------------------------- /doc19 rnd/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc19 rnd/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc19 rnd/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc19 rnd/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/obj/.gitkeep -------------------------------------------------------------------------------- /doc19 rnd/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc19 rnd/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc19 rnd/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc19 rnd/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc20 rtc/doc/S3511A_E.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/doc/S3511A_E.pdf -------------------------------------------------------------------------------- /doc20 rtc/doc/S3511A_J.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/doc/S3511A_J.pdf -------------------------------------------------------------------------------- /doc20 rtc/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/key.c -------------------------------------------------------------------------------- /doc20 rtc/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/key.h -------------------------------------------------------------------------------- /doc20 rtc/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc20 rtc/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/lib/gba.h -------------------------------------------------------------------------------- /doc20 rtc/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/lib/gbfs.h -------------------------------------------------------------------------------- /doc20 rtc/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc20 rtc/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc20 rtc/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc20 rtc/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/obj/.gitkeep -------------------------------------------------------------------------------- /doc20 rtc/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc20 rtc/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc20 rtc/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc20 rtc/rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/rtc.c -------------------------------------------------------------------------------- /doc20 rtc/rtc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc20 rtc/rtc.h -------------------------------------------------------------------------------- /doc21 dma_ex/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/key.c -------------------------------------------------------------------------------- /doc21 dma_ex/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/key.h -------------------------------------------------------------------------------- /doc21 dma_ex/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc21 dma_ex/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/lib/gba.h -------------------------------------------------------------------------------- /doc21 dma_ex/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/lib/gbfs.h -------------------------------------------------------------------------------- /doc21 dma_ex/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /doc21 dma_ex/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc21 dma_ex/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc21 dma_ex/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/obj/.gitkeep -------------------------------------------------------------------------------- /doc21 dma_ex/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/brin.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc21 dma_ex/res/brin.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -fts 3 | -gu16 4 | 5 | -gB4 6 | -mRtpf 7 | -mLs 8 | -------------------------------------------------------------------------------- /doc21 dma_ex/res/brin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/res/brin.png -------------------------------------------------------------------------------- /doc21 dma_ex/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc21 dma_ex/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc21 dma_ex/res/font_ascii.png -------------------------------------------------------------------------------- /doc22 affine_spr/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/bg.c -------------------------------------------------------------------------------- /doc22 affine_spr/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/key.c -------------------------------------------------------------------------------- /doc22 affine_spr/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/key.h -------------------------------------------------------------------------------- /doc22 affine_spr/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc22 affine_spr/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/lib/gba.h -------------------------------------------------------------------------------- /doc22 affine_spr/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/lib/gbfs.h -------------------------------------------------------------------------------- /doc22 affine_spr/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc22 affine_spr/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc22 affine_spr/math.h: -------------------------------------------------------------------------------- 1 | #ifndef MATH_H 2 | #define MATH_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | #include "lib/gba.h" 9 | 10 | //--------------------------------------------------------------------------- 11 | 12 | 13 | //--------------------------------------------------------------------------- 14 | s32 MathSin(u32 theta); 15 | s32 MathCos(u32 theta); 16 | 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /doc22 affine_spr/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/obj/.gitkeep -------------------------------------------------------------------------------- /doc22 affine_spr/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/metr0.h" 7 | #include "res/metr1.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /doc22 affine_spr/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc22 affine_spr/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/res/font_ascii.png -------------------------------------------------------------------------------- /doc22 affine_spr/res/metr0.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc22 affine_spr/res/metr0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/res/metr0.png -------------------------------------------------------------------------------- /doc22 affine_spr/res/metr1.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc22 affine_spr/res/metr1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc22 affine_spr/res/metr1.png -------------------------------------------------------------------------------- /doc23 spr_doubler/bullet.arm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/bullet.arm.c -------------------------------------------------------------------------------- /doc23 spr_doubler/bullet.arm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/bullet.arm.h -------------------------------------------------------------------------------- /doc23 spr_doubler/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/key.c -------------------------------------------------------------------------------- /doc23 spr_doubler/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/key.h -------------------------------------------------------------------------------- /doc23 spr_doubler/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc23 spr_doubler/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/lib/gba.h -------------------------------------------------------------------------------- /doc23 spr_doubler/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/lib/gbfs.h -------------------------------------------------------------------------------- /doc23 spr_doubler/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc23 spr_doubler/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc23 spr_doubler/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/obj/.gitkeep -------------------------------------------------------------------------------- /doc23 spr_doubler/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/spr_bullet_small.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc23 spr_doubler/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc23 spr_doubler/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/res/font_ascii.png -------------------------------------------------------------------------------- /doc23 spr_doubler/res/spr_bullet_small.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/res/spr_bullet_small.bmp -------------------------------------------------------------------------------- /doc23 spr_doubler/res/spr_bullet_small.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw0 3 | -Mh0 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc23 spr_doubler/spr.arm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/spr.arm.c -------------------------------------------------------------------------------- /doc23 spr_doubler/spr.arm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc23 spr_doubler/spr.arm.h -------------------------------------------------------------------------------- /doc24 flash_test/doc/20005023B.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/doc/20005023B.pdf -------------------------------------------------------------------------------- /doc24 flash_test/flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/flash.c -------------------------------------------------------------------------------- /doc24 flash_test/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/key.c -------------------------------------------------------------------------------- /doc24 flash_test/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/key.h -------------------------------------------------------------------------------- /doc24 flash_test/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc24 flash_test/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/lib/gba.h -------------------------------------------------------------------------------- /doc24 flash_test/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/lib/gbfs.h -------------------------------------------------------------------------------- /doc24 flash_test/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc24 flash_test/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc24 flash_test/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/obj/.gitkeep -------------------------------------------------------------------------------- /doc24 flash_test/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc24 flash_test/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc24 flash_test/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc24 flash_test/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc25 stack_test/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc25 stack_test/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc25 stack_test/lib/gba.h -------------------------------------------------------------------------------- /doc25 stack_test/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc25 stack_test/lib/gbfs.h -------------------------------------------------------------------------------- /doc25 stack_test/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /doc25 stack_test/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /doc25 stack_test/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc25 stack_test/obj/.gitkeep -------------------------------------------------------------------------------- /doc25 stack_test/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc25 stack_test/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc25 stack_test/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc25 stack_test/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /doc26 timing_test/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /doc26 timing_test/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc26 timing_test/lib/gba.h -------------------------------------------------------------------------------- /doc26 timing_test/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc26 timing_test/lib/gbfs.h -------------------------------------------------------------------------------- /doc26 timing_test/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del *.sav 6 | pause 7 | -------------------------------------------------------------------------------- /doc26 timing_test/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc26 timing_test/obj/.gitkeep -------------------------------------------------------------------------------- /doc26 timing_test/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /doc26 timing_test/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/doc26 timing_test/res/font_ascii.bmp -------------------------------------------------------------------------------- /doc26 timing_test/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /make_all.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | for /d %%i in (.\*) do ( 5 | pushd "%%i" 6 | echo %%i 7 | make 8 | popd 9 | ) 10 | 11 | pause 12 | -------------------------------------------------------------------------------- /tut02 bitmap1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut02 bitmap1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut02 bitmap1/lib/gba.h -------------------------------------------------------------------------------- /tut02 bitmap1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut02 bitmap1/lib/gbfs.h -------------------------------------------------------------------------------- /tut02 bitmap1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut02 bitmap1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut02 bitmap1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut02 bitmap1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut02 bitmap1/obj/.gitkeep -------------------------------------------------------------------------------- /tut03 bitmap2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut03 bitmap2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut03 bitmap2/lib/gba.h -------------------------------------------------------------------------------- /tut03 bitmap2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut03 bitmap2/lib/gbfs.h -------------------------------------------------------------------------------- /tut03 bitmap2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut03 bitmap2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut03 bitmap2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut03 bitmap2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut03 bitmap2/obj/.gitkeep -------------------------------------------------------------------------------- /tut04 bitmap3/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut04 bitmap3/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/lib/gba.h -------------------------------------------------------------------------------- /tut04 bitmap3/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/lib/gbfs.h -------------------------------------------------------------------------------- /tut04 bitmap3/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut04 bitmap3/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/main.c -------------------------------------------------------------------------------- /tut04 bitmap3/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut04 bitmap3/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut04 bitmap3/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/obj/.gitkeep -------------------------------------------------------------------------------- /tut04 bitmap3/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/frame1.h" 6 | #include "res/frame2.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut04 bitmap3/res/frame1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/res/frame1.bmp -------------------------------------------------------------------------------- /tut04 bitmap3/res/frame1.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB8 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut04 bitmap3/res/frame2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut04 bitmap3/res/frame2.bmp -------------------------------------------------------------------------------- /tut04 bitmap3/res/frame2.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB8 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut05 bitmap4/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut05 bitmap4/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/lib/gba.h -------------------------------------------------------------------------------- /tut05 bitmap4/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/lib/gbfs.h -------------------------------------------------------------------------------- /tut05 bitmap4/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut05 bitmap4/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/main.c -------------------------------------------------------------------------------- /tut05 bitmap4/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut05 bitmap4/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut05 bitmap4/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/obj/.gitkeep -------------------------------------------------------------------------------- /tut05 bitmap4/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/frame1.h" 6 | #include "res/frame2.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut05 bitmap4/res/frame1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/res/frame1.bmp -------------------------------------------------------------------------------- /tut05 bitmap4/res/frame1.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut05 bitmap4/res/frame2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut05 bitmap4/res/frame2.bmp -------------------------------------------------------------------------------- /tut05 bitmap4/res/frame2.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut06 key/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut06 key/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut06 key/lib/gba.h -------------------------------------------------------------------------------- /tut06 key/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut06 key/lib/gbfs.h -------------------------------------------------------------------------------- /tut06 key/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut06 key/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut06 key/main.c -------------------------------------------------------------------------------- /tut06 key/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut06 key/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut06 key/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut06 key/obj/.gitkeep -------------------------------------------------------------------------------- /tut07 sprite1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut07 sprite1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/lib/gba.h -------------------------------------------------------------------------------- /tut07 sprite1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/lib/gbfs.h -------------------------------------------------------------------------------- /tut07 sprite1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut07 sprite1/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/main.c -------------------------------------------------------------------------------- /tut07 sprite1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut07 sprite1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut07 sprite1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/obj/.gitkeep -------------------------------------------------------------------------------- /tut07 sprite1/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/spr1.h" 6 | #include "res/spr2.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut07 sprite1/res/spr1.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut07 sprite1/res/spr1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/res/spr1.png -------------------------------------------------------------------------------- /tut07 sprite1/res/spr2.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu8 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut07 sprite1/res/spr2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut07 sprite1/res/spr2.png -------------------------------------------------------------------------------- /tut08 sprite2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut08 sprite2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut08 sprite2/lib/gba.h -------------------------------------------------------------------------------- /tut08 sprite2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut08 sprite2/lib/gbfs.h -------------------------------------------------------------------------------- /tut08 sprite2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut08 sprite2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut08 sprite2/main.c -------------------------------------------------------------------------------- /tut08 sprite2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut08 sprite2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut08 sprite2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut08 sprite2/obj/.gitkeep -------------------------------------------------------------------------------- /tut08 sprite2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/spr.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut08 sprite2/res/spr.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut08 sprite2/res/spr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut08 sprite2/res/spr.png -------------------------------------------------------------------------------- /tut09 timer/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut09 timer/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut09 timer/lib/gba.h -------------------------------------------------------------------------------- /tut09 timer/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut09 timer/lib/gbfs.h -------------------------------------------------------------------------------- /tut09 timer/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut09 timer/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut09 timer/main.c -------------------------------------------------------------------------------- /tut09 timer/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut09 timer/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut09 timer/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut09 timer/obj/.gitkeep -------------------------------------------------------------------------------- /tut09 timer/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/spr.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut09 timer/res/spr.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut09 timer/res/spr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut09 timer/res/spr.png -------------------------------------------------------------------------------- /tut10 tile1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut10 tile1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut10 tile1/lib/gba.h -------------------------------------------------------------------------------- /tut10 tile1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut10 tile1/lib/gbfs.h -------------------------------------------------------------------------------- /tut10 tile1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut10 tile1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut10 tile1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut10 tile1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut10 tile1/obj/.gitkeep -------------------------------------------------------------------------------- /tut10 tile1/res.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut10 tile1/res.h -------------------------------------------------------------------------------- /tut10 tile1/res/bg0.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -fts 3 | -gu16 4 | -------------------------------------------------------------------------------- /tut10 tile1/res/bg0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut10 tile1/res/bg0.png -------------------------------------------------------------------------------- /tut11 tile2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut11 tile2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/lib/gba.h -------------------------------------------------------------------------------- /tut11 tile2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/lib/gbfs.h -------------------------------------------------------------------------------- /tut11 tile2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut11 tile2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/main.c -------------------------------------------------------------------------------- /tut11 tile2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut11 tile2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut11 tile2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/obj/.gitkeep -------------------------------------------------------------------------------- /tut11 tile2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/bg0kusa.h" 6 | #include "res/bg1kumo.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut11 tile2/res/bg0kusa.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut11 tile2/res/bg0kusa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/res/bg0kusa.png -------------------------------------------------------------------------------- /tut11 tile2/res/bg1kumo.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut11 tile2/res/bg1kumo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut11 tile2/res/bg1kumo.png -------------------------------------------------------------------------------- /tut12 dma/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut12 dma/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut12 dma/lib/gba.h -------------------------------------------------------------------------------- /tut12 dma/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut12 dma/lib/gbfs.h -------------------------------------------------------------------------------- /tut12 dma/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut12 dma/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut12 dma/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut12 dma/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut12 dma/obj/.gitkeep -------------------------------------------------------------------------------- /tut12 dma/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/image.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut12 dma/res/image.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut12 dma/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut12 dma/res/image.png -------------------------------------------------------------------------------- /tut13 interrupt/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut13 interrupt/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut13 interrupt/lib/gba.h -------------------------------------------------------------------------------- /tut13 interrupt/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut13 interrupt/lib/gbfs.h -------------------------------------------------------------------------------- /tut13 interrupt/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut13 interrupt/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut13 interrupt/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut13 interrupt/obj/.gitkeep -------------------------------------------------------------------------------- /tut13 interrupt/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/spr.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut13 interrupt/res/spr.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut13 interrupt/res/spr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut13 interrupt/res/spr.png -------------------------------------------------------------------------------- /tut14 mosaic/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/key.c -------------------------------------------------------------------------------- /tut14 mosaic/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/key.h -------------------------------------------------------------------------------- /tut14 mosaic/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut14 mosaic/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/lib/gba.h -------------------------------------------------------------------------------- /tut14 mosaic/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/lib/gbfs.h -------------------------------------------------------------------------------- /tut14 mosaic/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut14 mosaic/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut14 mosaic/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut14 mosaic/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/obj/.gitkeep -------------------------------------------------------------------------------- /tut14 mosaic/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/image.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut14 mosaic/res/image.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut14 mosaic/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut14 mosaic/res/image.png -------------------------------------------------------------------------------- /tut15 window/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/key.c -------------------------------------------------------------------------------- /tut15 window/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/key.h -------------------------------------------------------------------------------- /tut15 window/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut15 window/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/lib/gba.h -------------------------------------------------------------------------------- /tut15 window/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/lib/gbfs.h -------------------------------------------------------------------------------- /tut15 window/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut15 window/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut15 window/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut15 window/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/obj/.gitkeep -------------------------------------------------------------------------------- /tut15 window/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/image.h" 6 | #include "res/image2.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut15 window/res/image.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut15 window/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/res/image.png -------------------------------------------------------------------------------- /tut15 window/res/image2.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut15 window/res/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut15 window/res/image2.png -------------------------------------------------------------------------------- /tut16 blend/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/key.c -------------------------------------------------------------------------------- /tut16 blend/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/key.h -------------------------------------------------------------------------------- /tut16 blend/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut16 blend/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/lib/gba.h -------------------------------------------------------------------------------- /tut16 blend/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/lib/gbfs.h -------------------------------------------------------------------------------- /tut16 blend/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut16 blend/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut16 blend/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut16 blend/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/obj/.gitkeep -------------------------------------------------------------------------------- /tut16 blend/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/image.h" 6 | #include "res/image2.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut16 blend/res/image.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut16 blend/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/res/image.png -------------------------------------------------------------------------------- /tut16 blend/res/image2.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut16 blend/res/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut16 blend/res/image2.png -------------------------------------------------------------------------------- /tut17 scaling1/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/key.c -------------------------------------------------------------------------------- /tut17 scaling1/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/key.h -------------------------------------------------------------------------------- /tut17 scaling1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut17 scaling1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/lib/gba.h -------------------------------------------------------------------------------- /tut17 scaling1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/lib/gbfs.h -------------------------------------------------------------------------------- /tut17 scaling1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut17 scaling1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut17 scaling1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut17 scaling1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/obj/.gitkeep -------------------------------------------------------------------------------- /tut17 scaling1/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/image.h" 6 | #include "res/k6x10.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut17 scaling1/res/image.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut17 scaling1/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/res/image.png -------------------------------------------------------------------------------- /tut17 scaling1/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut17 scaling1/res/k6x10.bmp -------------------------------------------------------------------------------- /tut17 scaling1/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut18 scaling2/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/key.c -------------------------------------------------------------------------------- /tut18 scaling2/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/key.h -------------------------------------------------------------------------------- /tut18 scaling2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut18 scaling2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/lib/gba.h -------------------------------------------------------------------------------- /tut18 scaling2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/lib/gbfs.h -------------------------------------------------------------------------------- /tut18 scaling2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut18 scaling2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut18 scaling2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut18 scaling2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/obj/.gitkeep -------------------------------------------------------------------------------- /tut18 scaling2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/k6x10.h" 6 | #include "res/spr_slime.h" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tut18 scaling2/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/res/k6x10.bmp -------------------------------------------------------------------------------- /tut18 scaling2/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut18 scaling2/res/spr_slime.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gu16 3 | -gB4 4 | -fts 5 | -------------------------------------------------------------------------------- /tut18 scaling2/res/spr_slime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/res/spr_slime.png -------------------------------------------------------------------------------- /tut18 scaling2/spr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut18 scaling2/spr.c -------------------------------------------------------------------------------- /tut19 rotate1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut19 rotate1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/lib/gba.h -------------------------------------------------------------------------------- /tut19 rotate1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/lib/gbfs.h -------------------------------------------------------------------------------- /tut19 rotate1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut19 rotate1/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/main.c -------------------------------------------------------------------------------- /tut19 rotate1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut19 rotate1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut19 rotate1/math.h: -------------------------------------------------------------------------------- 1 | #ifndef MATH_H 2 | #define MATH_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | #include "lib/gba.h" 9 | 10 | //--------------------------------------------------------------------------- 11 | 12 | 13 | //--------------------------------------------------------------------------- 14 | s32 MathSin(u32 theta); 15 | s32 MathCos(u32 theta); 16 | s32 MathAbs(s32 num); 17 | 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /tut19 rotate1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/obj/.gitkeep -------------------------------------------------------------------------------- /tut19 rotate1/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/image.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut19 rotate1/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut19 rotate1/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/res/font_ascii.png -------------------------------------------------------------------------------- /tut19 rotate1/res/image.grit: -------------------------------------------------------------------------------- 1 | -g 2 | -gb 3 | -gB16 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut19 rotate1/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut19 rotate1/res/image.png -------------------------------------------------------------------------------- /tut20 rotate2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut20 rotate2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut20 rotate2/lib/gba.h -------------------------------------------------------------------------------- /tut20 rotate2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut20 rotate2/lib/gbfs.h -------------------------------------------------------------------------------- /tut20 rotate2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut20 rotate2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut20 rotate2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut20 rotate2/math.h: -------------------------------------------------------------------------------- 1 | #ifndef MATH_H 2 | #define MATH_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | #include "lib/gba.h" 9 | 10 | //--------------------------------------------------------------------------- 11 | 12 | 13 | //--------------------------------------------------------------------------- 14 | s32 MathSin(u32 theta); 15 | s32 MathCos(u32 theta); 16 | s32 MathAbs(s32 num); 17 | 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /tut20 rotate2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut20 rotate2/obj/.gitkeep -------------------------------------------------------------------------------- /tut20 rotate2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/metr0.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut20 rotate2/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut20 rotate2/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut20 rotate2/res/font_ascii.png -------------------------------------------------------------------------------- /tut20 rotate2/res/metr0.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut20 rotate2/res/metr0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut20 rotate2/res/metr0.png -------------------------------------------------------------------------------- /tut21 raster_scroll/irq.arm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/irq.arm.c -------------------------------------------------------------------------------- /tut21 raster_scroll/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/key.c -------------------------------------------------------------------------------- /tut21 raster_scroll/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/key.h -------------------------------------------------------------------------------- /tut21 raster_scroll/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut21 raster_scroll/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/lib/gba.h -------------------------------------------------------------------------------- /tut21 raster_scroll/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/lib/gbfs.h -------------------------------------------------------------------------------- /tut21 raster_scroll/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/main.c -------------------------------------------------------------------------------- /tut21 raster_scroll/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut21 raster_scroll/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut21 raster_scroll/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/obj/.gitkeep -------------------------------------------------------------------------------- /tut21 raster_scroll/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/image.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut21 raster_scroll/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut21 raster_scroll/res/font_ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/res/font_ascii.png -------------------------------------------------------------------------------- /tut21 raster_scroll/res/image.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut21 raster_scroll/res/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut21 raster_scroll/res/image.png -------------------------------------------------------------------------------- /tut22 directsound1/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/key.c -------------------------------------------------------------------------------- /tut22 directsound1/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/key.h -------------------------------------------------------------------------------- /tut22 directsound1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut22 directsound1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/lib/gba.h -------------------------------------------------------------------------------- /tut22 directsound1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/lib/gbfs.h -------------------------------------------------------------------------------- /tut22 directsound1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut22 directsound1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut22 directsound1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/obj/.gitkeep -------------------------------------------------------------------------------- /tut22 directsound1/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | 7 | extern const unsigned char _1_c3_bin; 8 | extern const unsigned char _2_d3_bin; 9 | extern const unsigned char _3_e3_bin; 10 | extern const unsigned char _4_f3_bin; 11 | extern const unsigned char _5_g3_bin; 12 | extern const unsigned char _6_a3_bin; 13 | extern const unsigned char _7_b3_bin; 14 | extern const unsigned char _8_c4_bin; 15 | 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /tut22 directsound1/res/1_c3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/1_c3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/2_d3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/2_d3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/3_e3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/3_e3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/4_f3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/4_f3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/5_g3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/5_g3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/6_a3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/6_a3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/7_b3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/7_b3.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/8_c4.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/8_c4.bin -------------------------------------------------------------------------------- /tut22 directsound1/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/res/font_ascii.bmp -------------------------------------------------------------------------------- /tut22 directsound1/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut22 directsound1/tool/1_c3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/1_c3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/1_c3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/1_c3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/2_d3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/2_d3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/2_d3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/2_d3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/3_e3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/3_e3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/3_e3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/3_e3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/4_f3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/4_f3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/4_f3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/4_f3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/5_g3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/5_g3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/5_g3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/5_g3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/6_a3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/6_a3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/6_a3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/6_a3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/7_b3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/7_b3.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/7_b3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/7_b3.wav -------------------------------------------------------------------------------- /tut22 directsound1/tool/8_c4.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/8_c4.bin -------------------------------------------------------------------------------- /tut22 directsound1/tool/8_c4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut22 directsound1/tool/8_c4.wav -------------------------------------------------------------------------------- /tut23 directsound2/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/key.c -------------------------------------------------------------------------------- /tut23 directsound2/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/key.h -------------------------------------------------------------------------------- /tut23 directsound2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut23 directsound2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/lib/gba.h -------------------------------------------------------------------------------- /tut23 directsound2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/lib/gbfs.h -------------------------------------------------------------------------------- /tut23 directsound2/libmm/gcc_patch.s: -------------------------------------------------------------------------------- 1 | // 2023/05/18 reject libgcc. 2 | // patched -> _call_via_r7, _call_via_r1, malloc 3 | 4 | 5 | .align 0 6 | .global _call_via_r7 7 | .thumb_func 8 | 9 | _call_via_r7: 10 | bx r7 11 | 12 | 13 | .align 0 14 | .global _call_via_r1 15 | .thumb_func 16 | 17 | _call_via_r1: 18 | bx r1 19 | 20 | -------------------------------------------------------------------------------- /tut23 directsound2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/main.c -------------------------------------------------------------------------------- /tut23 directsound2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut23 directsound2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut23 directsound2/malloc.c: -------------------------------------------------------------------------------- 1 | #include "malloc.h" 2 | 3 | //--------------------------------------------------------------------------- 4 | u8 MallocMem[2000]; 5 | 6 | //--------------------------------------------------------------------------- 7 | u32* MallocPatch(u32 size) 8 | { 9 | TRACE("MallocPatch: size=%d\n", size); 10 | 11 | return (u32*)MallocMem; 12 | } 13 | -------------------------------------------------------------------------------- /tut23 directsound2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/obj/.gitkeep -------------------------------------------------------------------------------- /tut23 directsound2/res.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/res.h -------------------------------------------------------------------------------- /tut23 directsound2/res/ambulance.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/res/ambulance.wav -------------------------------------------------------------------------------- /tut23 directsound2/res/boom.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/res/boom.wav -------------------------------------------------------------------------------- /tut23 directsound2/res/flatoutlies.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/res/flatoutlies.mod -------------------------------------------------------------------------------- /tut23 directsound2/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut23 directsound2/res/font_ascii.bmp -------------------------------------------------------------------------------- /tut23 directsound2/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut24 gbsound1/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/key.c -------------------------------------------------------------------------------- /tut24 gbsound1/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/key.h -------------------------------------------------------------------------------- /tut24 gbsound1/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut24 gbsound1/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/lib/gba.h -------------------------------------------------------------------------------- /tut24 gbsound1/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/lib/gbfs.h -------------------------------------------------------------------------------- /tut24 gbsound1/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut24 gbsound1/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/main.c -------------------------------------------------------------------------------- /tut24 gbsound1/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut24 gbsound1/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut24 gbsound1/mode3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/mode3.c -------------------------------------------------------------------------------- /tut24 gbsound1/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/obj/.gitkeep -------------------------------------------------------------------------------- /tut24 gbsound1/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/k6x10.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut24 gbsound1/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/res/k6x10.bmp -------------------------------------------------------------------------------- /tut24 gbsound1/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut24 gbsound1/res/tool/bdf2bmp06.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/res/tool/bdf2bmp06.zip -------------------------------------------------------------------------------- /tut24 gbsound1/res/tool/k12x10bdf.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut24 gbsound1/res/tool/k12x10bdf.tar.gz -------------------------------------------------------------------------------- /tut25 gbsound2/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/key.c -------------------------------------------------------------------------------- /tut25 gbsound2/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/key.h -------------------------------------------------------------------------------- /tut25 gbsound2/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut25 gbsound2/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/lib/gba.h -------------------------------------------------------------------------------- /tut25 gbsound2/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/lib/gbfs.h -------------------------------------------------------------------------------- /tut25 gbsound2/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut25 gbsound2/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/main.c -------------------------------------------------------------------------------- /tut25 gbsound2/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut25 gbsound2/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut25 gbsound2/mode3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/mode3.c -------------------------------------------------------------------------------- /tut25 gbsound2/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/obj/.gitkeep -------------------------------------------------------------------------------- /tut25 gbsound2/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/k6x10.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut25 gbsound2/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/res/k6x10.bmp -------------------------------------------------------------------------------- /tut25 gbsound2/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut25 gbsound2/res/tool/bdf2bmp06.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/res/tool/bdf2bmp06.zip -------------------------------------------------------------------------------- /tut25 gbsound2/res/tool/k12x10bdf.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut25 gbsound2/res/tool/k12x10bdf.tar.gz -------------------------------------------------------------------------------- /tut26 gbsound3/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/key.c -------------------------------------------------------------------------------- /tut26 gbsound3/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/key.h -------------------------------------------------------------------------------- /tut26 gbsound3/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut26 gbsound3/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/lib/gba.h -------------------------------------------------------------------------------- /tut26 gbsound3/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/lib/gbfs.h -------------------------------------------------------------------------------- /tut26 gbsound3/lib/sys.arm.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_ARM_H__ 2 | #define __SYS_ARM_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | 10 | IWRAM_CODE void CpuSet( const void *source, void *dest, u32 mode); 11 | IWRAM_CODE void CpuFastSet( const void *source, void *dest, u32 mode); 12 | IWRAM_CODE void LZ77UnCompWram(void *source, void *dest); 13 | IWRAM_CODE void LZ77UnCompVram(void *source, void *dest); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /tut26 gbsound3/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/main.c -------------------------------------------------------------------------------- /tut26 gbsound3/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut26 gbsound3/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut26 gbsound3/mode3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/mode3.c -------------------------------------------------------------------------------- /tut26 gbsound3/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/obj/.gitkeep -------------------------------------------------------------------------------- /tut26 gbsound3/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/k6x10.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut26 gbsound3/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/res/k6x10.bmp -------------------------------------------------------------------------------- /tut26 gbsound3/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut26 gbsound3/res/tool/bdf2bmp06.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/res/tool/bdf2bmp06.zip -------------------------------------------------------------------------------- /tut26 gbsound3/res/tool/k12x10bdf.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut26 gbsound3/res/tool/k12x10bdf.tar.gz -------------------------------------------------------------------------------- /tut27 gbsound4/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/key.c -------------------------------------------------------------------------------- /tut27 gbsound4/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/key.h -------------------------------------------------------------------------------- /tut27 gbsound4/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut27 gbsound4/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/lib/gba.h -------------------------------------------------------------------------------- /tut27 gbsound4/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/lib/gbfs.h -------------------------------------------------------------------------------- /tut27 gbsound4/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/main.c -------------------------------------------------------------------------------- /tut27 gbsound4/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut27 gbsound4/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut27 gbsound4/mode3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/mode3.c -------------------------------------------------------------------------------- /tut27 gbsound4/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/obj/.gitkeep -------------------------------------------------------------------------------- /tut27 gbsound4/res.h: -------------------------------------------------------------------------------- 1 | #ifndef __RES_H__ 2 | #define __RES_H__ 3 | 4 | 5 | #include "res/k6x10.h" 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tut27 gbsound4/res/k6x10.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/res/k6x10.bmp -------------------------------------------------------------------------------- /tut27 gbsound4/res/k6x10.grit: -------------------------------------------------------------------------------- 1 | -p! 2 | -gb 3 | -gB8 4 | -fts 5 | -gu8 6 | -------------------------------------------------------------------------------- /tut27 gbsound4/res/tool/bdf2bmp06.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/res/tool/bdf2bmp06.zip -------------------------------------------------------------------------------- /tut27 gbsound4/res/tool/k12x10bdf.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut27 gbsound4/res/tool/k12x10bdf.tar.gz -------------------------------------------------------------------------------- /tut28_gpt_test/bg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/bg.c -------------------------------------------------------------------------------- /tut28_gpt_test/key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/key.c -------------------------------------------------------------------------------- /tut28_gpt_test/key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/key.h -------------------------------------------------------------------------------- /tut28_gpt_test/lib/div.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIV_H__ 2 | #define __DIV_H__ 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | #include "gba.h" 8 | 9 | IWRAM_CODE s32 Div(s32 Number, s32 Divisor); 10 | IWRAM_CODE s32 Mod(s32 Number, s32 Divisor); 11 | IWRAM_CODE u32 Abs(s32 Number, s32 Divisor); 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /tut28_gpt_test/lib/gba.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/lib/gba.h -------------------------------------------------------------------------------- /tut28_gpt_test/lib/gbfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/lib/gbfs.h -------------------------------------------------------------------------------- /tut28_gpt_test/make_bin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | :loop 5 | del test.gba 6 | make 7 | if exist test.gba goto run 8 | 9 | :miss 10 | pause 11 | cls 12 | goto loop 13 | 14 | :run 15 | if exist test.gbfs goto run2 16 | test.gba 17 | goto end 18 | 19 | :run2 20 | copy /b test.gba+test.gbfs test2.gba 21 | gbafix.exe test2.gba -tTest -cTest 22 | test2.gba 23 | 24 | :end 25 | pause 26 | goto loop 27 | 28 | -------------------------------------------------------------------------------- /tut28_gpt_test/make_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set PATH=c:\devkitPro\msys2\usr\bin;C:\devkitPro\devkitARM\bin;C:\devkitPro\tools\bin;%PATH% 3 | 4 | make clean 5 | del test2.gba 6 | del *.sav 7 | pause 8 | -------------------------------------------------------------------------------- /tut28_gpt_test/obj/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/obj/.gitkeep -------------------------------------------------------------------------------- /tut28_gpt_test/res.h: -------------------------------------------------------------------------------- 1 | #ifndef RES_H 2 | #define RES_H 3 | 4 | 5 | #include "res/font_ascii.h" 6 | #include "res/bg_keyboard.h" 7 | #include "res/spr_cur.h" 8 | #define SPR_CUR1_TILE_NUM 1 9 | #define SPR_CUR2_TILE_NUM 2 10 | #define SPR_CUR3_TILE_NUM 3 11 | 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /tut28_gpt_test/res/bg_keyboard.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/res/bg_keyboard.bmp -------------------------------------------------------------------------------- /tut28_gpt_test/res/bg_keyboard.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut28_gpt_test/res/font_ascii.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/res/font_ascii.bmp -------------------------------------------------------------------------------- /tut28_gpt_test/res/font_ascii.grit: -------------------------------------------------------------------------------- 1 | -gB4 2 | -Mw1 3 | -Mh1 4 | -fts 5 | -gu16 6 | -------------------------------------------------------------------------------- /tut28_gpt_test/res/spr_cur.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/res/spr_cur.bmp -------------------------------------------------------------------------------- /tut28_gpt_test/res/spr_cur.grit: -------------------------------------------------------------------------------- 1 | -gt 2 | -gB4 3 | -fts 4 | -gu16 5 | -------------------------------------------------------------------------------- /tut28_gpt_test/tool/In_the_Town_fix.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/tool/In_the_Town_fix.mod -------------------------------------------------------------------------------- /tut28_gpt_test/tool/Joyous_Takeoff_fix.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/tool/Joyous_Takeoff_fix.mod -------------------------------------------------------------------------------- /tut28_gpt_test/tool/_make.bat: -------------------------------------------------------------------------------- 1 | python mod\mod2gbt.py In_the_Town_fix.mod template1 2 | python mod\mod2gbt.py Joyous_Takeoff_fix.mod template2 3 | python s3m\s3m2gbt.py --input template.s3m --name template3 --output template3.h --instruments 4 | 5 | pause 6 | -------------------------------------------------------------------------------- /tut28_gpt_test/tool/template.s3m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akkera102/gbadev-ja/ed53907119f7167727f5441e776ff19fc0d3d065/tut28_gpt_test/tool/template.s3m --------------------------------------------------------------------------------