Mercurial > repos > blastem
comparison backend_x86.c @ 667:30ccf56842d6
All cycle counters are now based off the master clock. This seems to have messed up Z80 interrupt timing (music in Sonic 2 is too slow for instance), but things are generally working
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 03 Jan 2015 16:08:23 -0800 |
parents | 6aa29ac33f1a |
children | fc04781f4d28 |
comparison
equal
deleted
inserted
replaced
666:b68039895627 | 667:30ccf56842d6 |
---|---|
1 #include "backend.h" | 1 #include "backend.h" |
2 #include "gen_x86.h" | 2 #include "gen_x86.h" |
3 | 3 |
4 void cycles(cpu_options *opts, uint32_t num) | 4 void cycles(cpu_options *opts, uint32_t num) |
5 { | 5 { |
6 add_ir(&opts->code, num, opts->cycles, SZ_D); | 6 add_ir(&opts->code, num*opts->clock_divider, opts->cycles, SZ_D); |
7 } | 7 } |
8 | 8 |
9 void check_cycles_int(cpu_options *opts, uint32_t address) | 9 void check_cycles_int(cpu_options *opts, uint32_t address) |
10 { | 10 { |
11 code_info *code = &opts->code; | 11 code_info *code = &opts->code; |