comparison ztestgen.c @ 1746:cd6f4cea97b6

Call srand in Z80 test generator so different values are used when regenerating tests
author Michael Pavone <pavone@retrodev.com>
date Wed, 06 Feb 2019 08:54:56 -0800
parents a6c6b621d0dc
children
comparison
equal deleted inserted replaced
1745:a8f04b0ab744 1746:cd6f4cea97b6
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <sys/stat.h> 11 #include <sys/stat.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <errno.h> 13 #include <errno.h>
14 #include <time.h>
14 15
15 extern z80inst z80_tbl_a[256]; 16 extern z80inst z80_tbl_a[256];
16 extern z80inst z80_tbl_extd[0xC0-0x40]; 17 extern z80inst z80_tbl_extd[0xC0-0x40];
17 extern z80inst z80_tbl_bit[256]; 18 extern z80inst z80_tbl_bit[256];
18 extern z80inst z80_tbl_ix[256]; 19 extern z80inst z80_tbl_ix[256];
528 } 529 }
529 } 530 }
530 531
531 int main(int argc, char ** argv) 532 int main(int argc, char ** argv)
532 { 533 {
534 srand(time(NULL));
533 z80_gen_all(); 535 z80_gen_all();
534 return 0; 536 return 0;
535 } 537 }