0 Members and 1 Guest are viewing this topic.
YOu didn't mention at all about xlrd. Can you not do this without some excel database? (If memory serves, that is what xlrd does)
~/TICalc$ python Prizm*Traceback (most recent call last): File "Prizm Disassembler.pyw", line 3, in <module> import xlrdImportError: No module named xlrd~/TICalc$
def getG3Adata(event): dlg = wx.FileDialog(self, "Choose a file", self.dirname, "", 'g3a Files (*.g3a)|*.g3a', wx.OPEN) if dlg.ShowModal() == wx.ID_OK: self.filename=dlg.GetFilename() self.dirname=dlg.GetDirectory() # Open the file, read the contents and set them into # the text edit window filehandle=open(os.path.join(self.dirname, self.filename),'r') filehandle.close() self.SetTitle('Assemblex - '+self.filename) hexvalues = open(self.filename, "rb").read().encode("hex") hexProgram = fill(hexvalues,16) hexProgramData = hexProgram[28672:(len(hexProgram)-4)] hexProgramUpperData = hexProgramData.upper() self.inputText.SetValue(self.inputText.GetValue() + hexProgramUpperData)
Sorry about multiple posts ahead of time, if there are any. I'm just going to lump everything together in one post:1) BSL, I think there's a problem with branch adresses in your disassembler. It keeps jumping to the middle of Longwords.2) I finally got my Prizm today and my god are the math functions fast. I couldn't even measure the time of individual functions(they took less than a sec on 1000 iteration loops) and the integral function is 3-4x faster than a TI-84+ SE with a really complicated equation. I see a ton of potential in the platform if we get something like Axe built.
Sorry about multiple posts ahead of time, if there are any. I'm just going to lump everything together in one post:1) BSL, I think there's a problem with branch adresses in your disassembler. It keeps jumping to the middle of Longwords.
Yes, the header is $7000 bytes large. There's also a four-byte area at the very end of the file that you should skip.
Quote from: Qwerty.55 on January 17, 2011, 01:43:01 amSorry about multiple posts ahead of time, if there are any. I'm just going to lump everything together in one post:1) BSL, I think there's a problem with branch adresses in your disassembler. It keeps jumping to the middle of Longwords.2) I finally got my Prizm today and my god are the math functions fast. I couldn't even measure the time of individual functions(they took less than a sec on 1000 iteration loops) and the integral function is 3-4x faster than a TI-84+ SE with a really complicated equation. I see a ton of potential in the platform if we get something like Axe built. I think your right with this potential. Although the ARM on the nspire can reach higher clock speeds than the SH3 some instructions, such as division, can take over 100 clock cycles while the SH3 and its RISC architecture can do the same instruction in only one cycle.
def getG3Adata(event): dlg = wx.FileDialog(self, "Choose a file", self.dirname, "", 'g3a Files (*.g3a)|*.g3a', wx.OPEN) if dlg.ShowModal() == wx.ID_OK: self.filename=dlg.GetFilename() self.dirname=dlg.GetDirectory() # Open the file, read the contents and set them into # the text edit window filehandle=open(os.path.join(self.dirname, self.filename),'r') filehandle.close() self.SetTitle('PRIZM Disassembler - '+self.filename) hexvalues = open(self.filename, "rb").read().encode("hex") hexProgram = fill(hexvalues,16) hexProgramData = hexProgram[57344:(len(hexProgram)-4)] self.inputText.SetValue(self.inputText.GetValue() + hexProgramData)
00007000: MOV.L R14,@-R1500007002: STS.L PR,@-R1500007004: ADD $FC,R1500007006: MOV.L R4,@R1500007008: MOV.L @($07*4+PC),R3 = #003000340000700A: JSR @R30000700C: MOV R5, R140000700E: MOV.L @($07*4+PC),R1 = #0038DF0000007010: MOV $01, R600007012: MOV $00, R400007014: JSR @R100007016: MOV R6, R500007018: MOV.L @($05*4+PC),R7 = #0033767C0000701A: EXTU.W R14,R50000701C: MOV.L @R15,R40000701E: ADD $04,R1500007020: LDS.L @R15+,PR00007022: JMP @R700007024: MOV.L @R15+,R1400007026: 0000 ?00007028: .data 00300034 dword ref:70080000702C: .data 0038df00 dword ref:700E00007030: .data 0033767c dword ref:701800007034: MOV.L @($0D*4+PC),R7 = #0038FE4C00007036: MOV $00, R600007038: MOV.L @($0D*4+PC),R4 = #0038FE500000703A: BRA $70420000703C: MOV.L @R7,R20000703E: MOV.L R6,@R200007040: ADD $04,R200007042: ;code ref: 703A00007042: MOV.L @R4,R500007044: CMP/HS R5,R2