Archive for the ‘C Programming’ Category

Simple Multi-Language System for Embedded Applications

Tuesday, January 13th, 2009

Today I wrote a simple Framework for Multi-Lingual embedded systems. It’s certainly not suitable for large applications, and only supports ASCII characters currently.

I’ll be extending it slightly and releasing it on google code in the near future.

(Available now upon email request).

Features include:

  • Small and simple design, Safe, and Secure.
  • Standard C Library
  • Constant Static Language scheme (Language Data is stored statically).
  • Will work with anything that uses a C compiler
  • Ultra small footprint.
  • Compatible with printf() and sprintf() functions, including %d %f etc

I’ll also be extending this, and improving it over the coming months. Its a very small project, so just let me know your requirements, and I may be able to implement them very quickly.

Using Pointers in C – Guide

Thursday, February 22nd, 2007

I’ve written a quick guide explaining how to use pointers properly in C. It also simplfies how they work, and will hopefully improve understanding on how to use them properly.

View

DUCK SHOOT GAME

Friday, November 10th, 2006

Ok guys, I’ve got alot of the duck shoot game, here’s just a couple of ideas.

To save me reading the switches repeatedly, I decided to put the current value of each into an array.

I did this by creating a function. Like below:

switches_arrayc.txt

When the function is called, you supply it with the number of the switch you want to test,
it then returns the value 1 or 0 of that switch.

The binary power is of the sequece 1,2,4,8,16,32,64,128 (It selects an individual switch).

Just & the bitfield with this number, and results in a 1 if switch is on, or 0 if off.