simeonpilgrim / nikon-firmware-tools

Tools used during the reversing of the Nikon firmware
175 stars 30 forks source link

Emulator - Exception if starting TX19 while FR80 is running (or the reverse) #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) load both firmwares
2) "keep in sync" is not checked
3) start first TX19; everything ok
4) start FR80; I get immediately:
--
java.lang.NullPointerException
        at com.nikonhacker.emu.FrEmulator.onClockTick(FrEmulator.java:89)
        at com.nikonhacker.emu.FrEmulator.onClockTick(FrEmulator.java:27)
        at com.nikonhacker.emu.MasterClock.run(MasterClock.java:137)
        at java.lang.Thread.run(Thread.java:722)
null
FrCPUState : pc=0x00040008, rvalid=0b-1, reg=R0=0x50000000
R1=0x00000001
R2=0x00000000
R3=0x00000000
R4=0x00000000
R5=0x00000000
R6=0x00000000
R7=0x00000000
R8=0x00000000
R9=0x00000000
R10=0x00000000
R11=0x00000000
R12=0x00000000
R13=0x00000000
R14=0x00000000
R15=0x00000000
TBR=0x000FFC00
RP=0x00000000
SSP=0x00000000
USP=0x00000000
MDH=0x00000000
MDL=0x00000000
D6=0x00000000
D7=0x00000000
D8=0x00000000
D9=0x00000000
D10=0x00000000
D11=0x00000000
D12=0x00000000
D13=0x00000000
D14=0x00000000
D15=0x00000000
CR0=0x00000000
CR1=0x00000000
CR2=0x00000000
CR3=0x00000000
CR4=0x00000000
CR5=0x00000000
CR6=0x00000000
CR7=0x00000000
CR8=0x00000000
CR9=0x00000000
CR10=0x00000000
CR11=0x00000000
CR12=0x00000000
CR13=0x00000000
CR14=0x00000000
CR15=0x00000000
PS=0x00000000
CCR=0x00000000]}
Offending instruction :  1501           UNK
(on or before PC=0x00040008)
com.nikonhacker.emu.EmulationException: java.lang.NullPointerException
        at com.nikonhacker.emu.FrEmulator.onClockTick(FrEmulator.java:204
        at com.nikonhacker.emu.FrEmulator.onClockTick(FrEmulator.java:27)
        at com.nikonhacker.emu.MasterClock.run(MasterClock.java:137)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
        at com.nikonhacker.emu.FrEmulator.onClockTick(FrEmulator.java:89)
        ... 3 more

Original issue reported on code.google.com by vicnevicne on 27 Jun 2013 at 7:43

GoogleCodeExporter commented 9 years ago
Fixed. Instruction decoding was initialized after the clock was enabled !

Original comment by vicnevicne on 27 Jun 2013 at 9:19

GoogleCodeExporter commented 9 years ago
ok in 2.38

Original comment by code...@gmx.de on 9 Jul 2013 at 11:16