Minimo indispensabile
This commit is contained in:
commit
b1d9e434db
40
__init__.py
Normal file
40
__init__.py
Normal file
@ -0,0 +1,40 @@
|
||||
from binaryninja import *
|
||||
|
||||
class Pasticciotto(Architecture):
|
||||
name = 'pasticciotto'
|
||||
address_size = 2
|
||||
default_int_size = 2
|
||||
|
||||
regs = {
|
||||
'r0': RegisterInfo('r0', 2),
|
||||
'r1': RegisterInfo('r1', 2),
|
||||
'r2': RegisterInfo('r2', 2),
|
||||
'r3': RegisterInfo('r3', 2),
|
||||
's0': RegisterInfo('s0', 2),
|
||||
's1': RegisterInfo('s1', 2),
|
||||
's2': RegisterInfo('s2', 2),
|
||||
's3': RegisterInfo('s3', 2),
|
||||
'rp': RegisterInfo('rp', 2),
|
||||
'sp': RegisterInfo('sp', 2),
|
||||
'ip': RegisterInfo('ip', 2)
|
||||
}
|
||||
stack_pointer = 'sp'
|
||||
link_reg = 'rp'
|
||||
|
||||
def perform_get_instruction_info(self, data, addr):
|
||||
print("DATA: {}".format(data))
|
||||
print("ADDR: {}".format(addr))
|
||||
|
||||
result = InstructionInfo()
|
||||
result.length = 0
|
||||
# eventuali branch da aggiungere
|
||||
return result
|
||||
|
||||
def perform_get_instruction_text(self, data, addr):
|
||||
print("DATA: {}".format(data))
|
||||
print("ADDR: {}".format(addr))
|
||||
|
||||
tokens = ""
|
||||
length = 0
|
||||
|
||||
return tokens, length
|
BIN
__init__.pyc
Normal file
BIN
__init__.pyc
Normal file
Binary file not shown.
19
plugin.json
Normal file
19
plugin.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"plugin": {
|
||||
"name": "Pasticciotto Architecture Plugin",
|
||||
"type": ["architecture"],
|
||||
"api": "python2",
|
||||
"description": "A disassembler for the Pasticciotto architecture.",
|
||||
"longdescription": "This plugin disassembles Pasticciotto assembly code.",
|
||||
"license": {
|
||||
"name": "MIT",
|
||||
"text": "Copyright (c) 2017 Giulio De Pasquale.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
||||
},
|
||||
"version": "0.0.1",
|
||||
"author": "Giulio De Pasquale",
|
||||
"minimumBinaryNinjaVersion": {
|
||||
"release (Personal)": "1.0.13",
|
||||
"release (Commercial)": "1.0.320"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user