/******************************************************************
tally.c
a short in-line assembly language example
NOTE: you must use the TCC comand-line compiler for this !
********/
#include <stdio.h>
main()
{
int votes;
int tally;
votes = 100;
tally = 500;
printf("Tally : %d\n", tally);
asm mov ax,[votes]
asm add [tally],ax
printf("Tally : %d\n", tally);
}