14 lines
413 B
Python
14 lines
413 B
Python
|
|
import r2pipe
|
||
|
|
import sys
|
||
|
|
|
||
|
|
def adsp_disasm(hex_str):
|
||
|
|
"""Simple bridge to our existing disasm logic"""
|
||
|
|
# For now, just return hex + architecture name as POC
|
||
|
|
return f"ADSP219x: {hex_str}"
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
r2 = r2pipe.open()
|
||
|
|
# Register architecture via r2pipe hook
|
||
|
|
# Note: Modern r2 supports python-based asm plugins via 'L' (plugins)
|
||
|
|
print("ADSP219x Plugin loaded via r2pipe")
|