Calculator Community > Casio Calculators

Casio Prizm - Kind of hiring patient person

(1/4) > >>

Munchor:
Hello everyone,

if you are willing to help the PRIZM community;
if you want to be credited in the SH3 Disassembler I'm making;
if you are patient;
if you don't mind spending half an hour, or maybe two halfs, working in something boring...

Then you are the right person!


--- Code: ---equates = ['Enii','9ndd']

prizmInstructions = ['Mov #imm, Rn','Mov.W @(disp*2+PC),Rn']
--- End code ---

I need you to complete those lists (arrays in fact), according to the tables here. Stuff that is less than 4 characters long should be 0009 for example, or 00XX. You will be credited for the disassembler I'm making (which will be released right after someone does this for me).

I've been quite busy and can't do it, but trust me, this is all it takes for finishing a very basic disassembler and it is really easy! It just takes some time.


Note: Make all the instructions and equates in order, and don't include stuff like 'Data Transfer Instructions' and 'System Control Instructions'.

Then PM me or post the lists ;D As you can see, it's python syntax so, in BLEEP BLOOP it should look like:

equates = ['BLEEP','BLOOP','BLEEP','BLOOP','BLEEP]

Thanks Much!

JosJuice:
I might do this... tomorrow. :P
Sorry, but I really have to sleep right now. If no one else wants do do this, I'll start at around 9 AM GMT or something.

jnesselr:
For the record, (and sorry I haven't already told you scout), but we are working on a GUI disassembler, and other stuff in a thing called prizmsuite.

We've already got the google site set up for it, so if you want to host some code there scout, just send me a PM.

Munchor:

--- Quote from: graphmastur on January 15, 2011, 04:22:17 pm ---For the record, (and sorry I haven't already told you scout), but we are working on a GUI disassembler, and other stuff in a thing called prizmsuite.

We've already got the google site set up for it, so if you want to host some code there scout, just send me a PM.

--- End quote ---

Hum, Language? Mine is Python (also GUI). But yeah I want to join the team of PrizmSuite. Just need to know the language.

Goplat:

--- Code: ---equates, prizmInstructions = zip(*[
('Enii', 'Mov #imm, Rn'),
('9ndd', 'Mov.W @(disp*2+PC),Rn'),
('Dndd', 'MOV.L @(disp*4+PC),Rn'),
('6nm3', 'Mov Rm, Rn'),
('2nm0', 'MOV.B Rm,@Rn'),
('2nm1', 'Mov.W Rm,@Rn'),
('2nm2', 'Mov.L Rm,@Rn'),
('6nm0', 'Mov.B @Rm,Rn'),
('6nm1', 'Mov.W @Rm,Rn'),
('6nm2', 'Mov.L @Rm,Rn'),
('2nm4', 'MOV.B Rm,@-Rn'),
('2nm5', 'MOV.W Rm,@-Rn'),
('2nm6', 'MOV.L Rm,@-Rn'),
('6nm4', 'MOV.B @Rm+,Rn'),
('6nm5', 'MOV.W @Rm+,Rn'),
('6nm6', 'MOV.L @Rm+,Rn'),
('80nd', 'MOV.B R0,@(disp+Rn)'),
('81nd', 'MOV.W R0,@(disp*2+Rn)'),
('1nmd', 'MOV.L Rm,@(disp*4+Rn)'),
('84md', 'MOV.B @(disp+Rm),R0'),
('85md', 'MOV.W @(disp*2+Rm),R0'),
('5nmd', 'MOV.L @(disp*4+Rm),Rn'),
('0nm4', 'MOV.B Rm,@(R0+Rn)'),
('0nm5', 'MOV.W Rm,@(R0+Rn)'),
('0nm6', 'MOV.L Rm,@(R0+Rn)'),
('0nmC', 'MOV.B @(R0+Rm),Rn'),
('0nmD', 'MOV.W @(R0+Rm),Rn'),
('0nmE', 'MOV.L @(R0+Rm),Rn'),
('C0dd', 'MOV.B R0,@(disp+GBR)'),
('C1dd', 'MOV.W R0,@(disp*2+GBR)'),
('C2dd', 'MOV.L R0,@(disp*4+GBR)'),
('C4dd', 'MOV.B @(disp+GBR),R0'),
('C5dd', 'MOV.W @(disp*2+GBR),R0'),
('C6dd', 'MOV.W @(disp*4+GBR),R0'),
('C7dd', 'MOVA @(disp*4+PC),R0'),
('0n29', 'MOVT Rn'),
('0n83', 'PREF @Rn'),
('6nm8', 'SWAP.B Rm,Rn'),
('6nm9', 'SWAP.W Rm,Rn'),
('2nmD', 'XTRCT Rm,Rn'),
('3nmC', 'ADD Rm,Rn'),
('7nii', 'ADD #imm,Rn'),
('3nmE', 'ADDC Rm,Rn'),
('3nmF', 'ADDV Rm,Rn'),
('88ii', 'CMP/EQ #imm,R0'),
('3nm0', 'CMP/EQ Rn,Rm'),
('3nm2', 'CMP/HS Rm,Rn'),
('3nm3', 'CMP/GE Rm,Rn'),
('3nm6', 'CMP/HI Rm,Rn'),
('3nm7', 'CMP/GT Rm,Rn'),
('4n11', 'CMP/PZ Rn'),
('4n15', 'CMP/PL Rn'),
('2nmC', 'CMP/STR Rm,Rn'),
('3nm4', 'DIV1 Rm,Rn'),
('2nm7', 'DIV0S Rm,Rn'),
('001A', 'DIV0U'),
('3nmD', 'DMULS.L Rm,Rn'),
('3nm5', 'DMULU.L Rm,Rn'),
('4n10', 'DT Rn'),
('6nmE', 'EXTS.B Rm,Rn'),
('6nmF', 'EXTS.W Rm,Rn'),
('6nmC', 'EXTU.B Rm,Rn'),
('6nmD', 'EXTU.W Rm,Rn'),
('0nmF', 'MAC.L @Rm+,@Rn+'),
('4nmF', 'MAC.W @Rm+,@Rn+'),
('0nm7', 'MUL.L Rm,Rn'),
('2nmF', 'MULS.W Rm,Rn'),
('2nmE', 'MULU.W Rm,Rn'),
('6nmB', 'NEG Rm,Rn'),
('6nmA', 'NEGC Rm,Rn'),
('3nm8', 'SUB Rm,Rn'),
('3nmA', 'SUBC Rm,Rn'),
('3nmB', 'SUBV Rm,Rn'),
('2nm9', 'AND Rm,Rn'),
('C9ii', 'AND #imm,R0'),
('CDii', 'AND.B #imm,@(R0+GBR)'),
('6nm7', 'NOT Rm,Rn'),
('2nmB', 'OR Rm,Rn'),
('CBii', 'OR #imm,R0'),
('CFii', 'OR.B #imm,@(R0+GBR)'),
('4nm8', 'TAS.B @Rn'),
('2nm8', 'TST Rm,Rn'),
('C8ii', 'TST #imm,R0'),
('CCii', 'TST.B #imm,@(R0+GBR)'),
('2nmA', 'XOR Rm,Rn'),
('CAii', 'XOR #imm,R0'),
('CEii', 'XOR.B #imm,@(R0+GBR)'),
('4n04', 'ROTL Rn'),
('4n05', 'ROTR Rn'),
('4n24', 'ROTCL Rn'),
('4n25', 'ROTCR Rn'),
('4nmC', 'SHAD Rm,Rn'),
('4n20', 'SHAL Rn'),
('4n21', 'SHAR Rn'),
('4nmD', 'SHLD Rm,Rn'),
('4n00', 'SHLL Rn'),
('4n01', 'SHLR Rn'),
('4n08', 'SHLL2 Rn'),
('4n09', 'SHLR2 Rn'),
('4n18', 'SHLL8 Rn'),
('4n19', 'SHLR8 Rn'),
('4n28', 'SHLR8 Rn'),
('4n29', 'SHLR16 Rn'),
('8Bdd', 'BF label'),
('8Fdd', 'BF/S label'),
('89dd', 'BT label'),
('8Ddd', 'BT/S label'),
('Addd', 'BRA label'),
('0n03', 'BRAF Rn'),
('Bddd', 'BSR label'),
('0n03', 'BSRF Rn'),
('4n2B', 'JMP @Rn'),
('4n0B', 'JSR @Rn'),
('000B', 'RTS'),
('0028', 'CLRMAC'),
('0048', 'CLRS'),
('0008', 'CLRT'),
('4m0E', 'LDC Rm,SR'),
('4m1E', 'LDC Rm,GBR'),
('4m2E', 'LDC Rm,VBR'),
('4M3E', 'LDC Rm,SSR'),
('4m4E', 'LDC Rm,SPC'),
('4m8E', 'LDC Rm,R0_BANK'),
('4m9E', 'LDC Rm,R1_BANK'),
('4mAE', 'LDC Rm,R2_BANK'),
('4mBE', 'LDC Rm,R3_BANK'),
('4mCE', 'LDC Rm,R4_BANK'),
('4mDE', 'LDC Rm,R5_BANK'),
('4mEE', 'LDC Rm,R6_BANK'),
('4mFE', 'LDC Rm,R7_BANK'),
('4m07', 'LDC.L @Rm+,SR'),
('4m17', 'LDC.L @Rm+,GBR'),
('4m27', 'LDC.L @Rm+,VBR'),
('4m37', 'LDC.L @Rm+,SSR'),
('4m47', 'LDC.L @Rm+,SPC'),
('4m87', 'LDC.L @Rm+,R0_BANK'),
('4m97', 'LDC.L @Rm+,R1_BANK'),
('4mA7', 'LDC.L @Rm+,R2_BANK'),
('4mB7', 'LDC.L @Rm+,R3_BANK'),
('4mC7', 'LDC.L @Rm+,R4_BANK'),
('4mD7', 'LDC.L @Rm+,R5_BANK'),
('4mE7', 'LDC.L @Rm+,R6_BANK'),
('4mF7', 'LDC.L @Rm+,R7_BANK'),
('4m0A', 'LDS Rm,MACH'),
('4m1A', 'LDS Rm,MACL'),
('4m2A', 'LDS Rm,PR'),
('4m06', 'LDS.L @Rm+,MACH'),
('4m16', 'LDS.L @Rm+,MACL'),
('4m26', 'LDS.L @Rm+,PR'),
('0038', 'LDTLB'),
('0009', 'NOP'),
('0n83', 'PREF @Rn'),
('002B', 'RTE'),
('0058', 'SETS'),
('0018', 'SETT'),
('001B', 'SLEEP'),
('0n02', 'STC SR,Rn'),
('0n12', 'STC GBR,Rn'),
('0n22', 'STC VBR,Rn'),
('0n32', 'STC SSR,Rn'),
('0n42', 'STC SPC,Rn'),
('0n82', 'STC R0_BANK,Rn'),
('0n92', 'STC R1_BANK,Rn'),
('0nA2', 'STC R2_BANK,Rn'),
('0nB2', 'STC R3_BANK,Rn'),
('0nC2', 'STC R4_BANK,Rn'),
('0nD2', 'STC R5_BANK,Rn'),
('0nE2', 'STC R6_BANK,Rn'),
('0nF2', 'STC R7_BANK,Rn'),
('4n03', 'STC.L SR,@-Rn'),
('4n13', 'STC.L GBR,@-Rn'),
('4n23', 'STC.L VBR,@-Rn'),
('4n33', 'STC.L SSR,@-Rn'),
('4n43', 'STC.L SPC,@-Rn'),
('4n83', 'STC.L R0_BANK,@-Rn'),
('4n93', 'STC.L R1_BANK,@-Rn'),
('4nA3', 'STC.L R2_BANK,@-Rn'),
('4nB3', 'STC.L R3_BANK,@-Rn'),
('4nC3', 'STC.L R4_BANK,@-Rn'),
('4nD3', 'STC.L R5_BANK,@-Rn'),
('4nE3', 'STC.L R6_BANK,@-Rn'),
('4nF3', 'STC.L R7_BANK,@-Rn'),
('0n0A', 'STS MACH,Rn'),
('0n1A', 'STS MACL,Rn'),
('0n2A', 'STS PR,Rn'),
('4n02', 'STS.L MACH,@-Rn'),
('4n12', 'STS.L MACL,@-Rn'),
('4n22', 'STS.L PR,@-Rn'),
('C3ii', 'TRAPA #imm'),
])

--- End code ---

Yeah, I cheated :p but hey, this is a lot more readable anyway

Edit: when you said in order, did you mean in numerical order or in the order of the original HTML file? numerical order is kind of ambiguous (0008 could go before or after 0n02, depending on n)

Navigation

[0] Message Index

[#] Next page

Go to full version