March 2011
3 posts
5 tags
ARM assembly on Android part 3
Before I dug into anything deeper I wanted to code a slightly larger sample and get to know some of the common instructions. I expanded the Hello World code and added a naive length function that iterates over the string and computes the number of characters between the start address and the null terminator.
Here’s the code:
.data
string:
.asciz "Hello, world!\n"
string2:
.asciz "String...
5 tags
ARM assembly on Android part 2
Previously I showed how I set everything up in order to run asm code on android. It was far from exciting but I would have loved to have that post when I started. In this part I show my simple Hello World code. First, have a look at the following links:
ARM Assembly Primer part 1, 2 & 3
ARM Assembly Primer part 4
“Hello World” in Assembly
I based my code on the Hello World...
5 tags
ARM assembly on Android
Having recently bought a Nexus S phone I immediately started looking into how one could play around with some assembly coding on it. Google Android apps usually use the Android SDK which is based on Java. There’s also a native development kit (NDK) which supports C/C++. The process for developing for this platform is not as clear and easy as I had expected from Google.
The workflow (as far...
February 2011
1 post
2 tags
OBJ triangulator
I’ve spent a lot of time on implementing my master’s thesis recently and I’ve reached a point where I need to test the results on different geometry. There are great free models to be found on the internet but unfortunately most of them are quad based. My OBJ loader doesn’t support loading quads, only triangles. Instead of adding this, I decided to do something else.
...
June 2010
1 post
2 tags
Heightmap generation
I’ve been playing around a bit with random number generators and heightmaps. My goal is at some point to procedurally generate as much of a limited landscape as possible. I haven’t done much work as I’m currently setting up the renderer at the same time too. But I did make some progress with the heightmaps.
I currently have three different algorithms that generate the...
May 2010
1 post
4 tags
Overloading macros
How do I overload macros you ask? Well, you can’t! But that would be a short post so I’ll show something else you can do. Imagine working with a code base that uses a function call for a specific purpose, for instance AllocateMemory( Heap h, int size ) is used to do all your allocations. One day, you decide that you want to do some memory tracking and would like to print out where...
October 2009
1 post
1 tag
1 tag
Airborn
I’ve been really busy lately. When I’m not working late I’m always coding something in the evenings. I’ve started to learn quite a bit about the Cell processor, since the beautiful PS3 devkits are idle in the office after work, and I’ve even started to learn some UnrealScript.
I don’t know why but I’ve never really been into modding. I’ve always wanted to code my games from scratch but I...
May 2008
1 post
1 tag
January 2008
2 posts
2 tags
3 tags
Signed angle between two 2d vectors
So I’m sitting at my computer and writing on some fun new game in XNA and I need to play around with some angles for rotating some sprites. Right now I have a ship which moves around a world. It works very well and it’s pretty cute, but need to make it more badass so I want to put a cannon on it. The cannon should be able to rotate all 360 degrees because I want to be able to shoot with my ship in...