Have a look into
scDataGen.c
The routine
void MakeSimplePtr(char *name, float r1)
takes care of the simple hand
and
void MakeTriangPtr(char *name, float r1, float r2)
generates the triangle shape hands.
Now change the math according to your specific design.
You need the compiler / assembler package used by the author.
It is a Linux program "Paul's 8031 Assembler" found at
http://www.pjrc.com/tech/8051/plus gnu-c.
Run make and the c- source will be compiled by gcc and started.
It will generate a set of data for the assembler program.
By redirecting the output into a file ScopeClockData.a51, it generates the
required data for the assembler program scopeclock.a51.
The resulting Hex file has to be "burned" into the chip.
You need to have a specific programmer to do this.
A simple design is available at the Atmel homepage.
Sounds a bit frightening- but visit the above mentioned page and find a very
sufficient support for the tools required- including the programmer and also for
windows.
If you take an AT89S4051 you can easily program the chip in the system.
Find the info at Atmels homepage.
Wish you a lot of fun