View Single Post
  #1  
Old 11-24-2014, 03:57
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,116
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 110
Thanks Rcvd at 220 Times in 126 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
IDA 8052 error ?

Here's a snippet of disassembled 8051 code :

Code:
...
0000:7019 D0 00                      pop     RAM_0
0000:701B E8                          mov     A, R0
0000:701C C0 E0                      push    A
0000:701E 74 05                      mov     A, #5
0000:7020 28                          add     A, R0
0000:7021 F8                          mov     R0, A         <--
0000:7022 E7                          mov     A, @R1
0000:7023 F6                          mov     @R0, A
0000:7024 19                          dec     R1
0000:7025 18                          dec     R0
0000:7026 E7                          mov     A, @R1
0000:7027 F6                          mov     @R0, A
0000:7028 19                          dec     R1
0000:7029 18                          dec     R0
0000:702A E7                          mov     A, @R1
0000:702B F6                          mov     @R0, A
0000:702C D0 E0                      pop     A
0000:702E A8 E0                      mov     R0, A        <--
0000:7030 F9                          mov     R1, A
0000:7031 09                          inc     R1
0000:7032 09                          inc     R1
...
Look at offset 7021 and 702E. Same instruction, different op code. What gives?

Git
Reply With Quote