projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b95c4f8
)
Fix bug when processing interrupts
author
Anthony Liu
<antliu@gmail.com>
Thu, 5 Dec 2013 15:48:36 +0000
(23:48 +0800)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 6 Dec 2013 04:41:24 +0000
(23:41 -0500)
Push current PC onto stack and take vector address from parameter.
src/cpu8051.c
patch
|
blob
|
history
diff --git
a/src/cpu8051.c
b/src/cpu8051.c
index
6480853
..
956ae7d
100644
(file)
--- a/
src/cpu8051.c
+++ b/
src/cpu8051.c
@@
-226,8
+226,8
@@
cpu8051_ReadB(uint8_t bit_address)
static void
cpu8051_process_interrupt(int pc, int pri)
{
- stack_push16(pc);
- cpu8051.pc =
0x0B
;
+ stack_push16(
cpu8051.
pc);
+ cpu8051.pc =
pc
;
cpu8051.active_priority = pri;
}