[net.micro] counting to 10 million with a 16 bit integer?

MBF@cmu-cs-c.arpa (02/06/83)

The first thing that hit me when I read the post about the C benchmark
running in 4 seconds on a Z80 was the fact that it would have to be
doing about 2.5 million 32-bit decrements and conditional branches
per second (!) - I'd love to have such a machine!! Z80's don't have
a 32-bit DJNZ instruction!

I guess BDS C doesn't believe in compile-time range-checking of constants:
the program must be counting 10M modulo 64k, or some such.  But, then,
16-bit ints would make a lot of sense on a z80.

Mark Dzmura
-------