home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
TASMSWAN.ZIP
/
TALLY.C
< prev
next >
Wrap
Text File
|
1989-07-17
|
404b
|
21 lines
/******************************************************************
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);
}