projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add general-purpose timer to GUI
[emu8051.git]
/
src
/
common
/
cpu8051.c
diff --git
a/src/common/cpu8051.c
b/src/common/cpu8051.c
index
2c2845e
..
107f2ef
100644
(file)
--- a/
src/common/cpu8051.c
+++ b/
src/common/cpu8051.c
@@
-114,6
+114,8
@@
cpu8051_init(void)
{
memory_init();
+ gp_timer_reset();
+
cpu8051.pc = 0;
cpu8051.clock = 0;
cpu8051.active_priority = -1;
@@
-314,6
+316,8
@@
cpu8051_Exec(void)
*/
psw_compute_parity_bit();
+ gp_timer_increment(insttiming);
+
for (i = 0; i < insttiming; i++) {
cpu8051_CheckInterrupts();
timers_check();