Message board for the users of flat assembler.
> Examples and Tutorials > ARM GameBoy Advance on Android
Minimal version of Z77 for ARM. Includes portable graphics (draw pixel, line, rectangle, scanline, gradient), text operations (copy, compare, etc) and more.
Assemble with FASMARM (outputs .GBA). Runs in popular GBA emulators: VisualBoy Advance, No$GBA and GBA Emu for Android.
Thanks to Tomasz for FASM and to revolution for ARM addition. FASMARM is nice. Source is clear, written professionally and it includes documentation and examples. As a programming environment, I think FASM+ARM+Z77 together is way better than GNU/GCC ASM/C/C++ package. And I will never use Microsoft's junk bloated compilers or DevARMKit (600MB+ download!) or ARM's DS-5 package (bloatware) or Eclipse (slow, illogical, cluttered IDE, time consuming setup, downloads take forever).
You guys think drawing a 32BPP gradient in X86/Windoze is hard? Try drawing a 15BPP (184.108.40.206) gradient directly to VRAM in ARM bare-metal! (GBA, RPI, etc). Spent hours struggling with "draw.fade" and finally got it. I guarantee you won't find another 15BPP draw gradient anywhere online, not to mention written in ARM assembler.
GBA programming references:
* GBAtek: http://nocash.emubase.de/gbatek.htm
* CowBite: http://www.cs.rit.edu/~tjh8300/CowBite/CowBiteSpec.htm
Source Code Preview:
; $$$$$$$$$$$$$$$$$$ Z77 4 ARM $$$$$$$$$$$$$$$$$$$ ; *************** STAR^2 SOFTWARE **************** ; ???????????????????? Z.INC ????????????????????? ; ___ __ ; / _/_ __/ /___ _________ ; / _/ // / __/ // / __/ -_ ; /_/ \_,_/\__/\_,_/_/ \__/_ __ ; ___ ____ ___ ___ __ _ / / / /__ ____ ; / _ ` _-<