Firstly, my apologies that this is a bit vague, but I stumbled across this issue late last night, I'm away from the computer I was using and I don't understand python well enough to diagnose the problem myself.
I'm using the acorn.py plugin to help understand some code I'm looking at. If I don't use it the process works, but when I do use it, various code sections cause it to fall over at line 1333 of acorn.py.
It seems not to like the type of input_buffer_addr when trying to apply the << (shift) operator to it. NoneType vs Int if I remember correctly. If I comment out line 2605 to disable the osword_hook feature
then it works and the other BBC specific annotations work, so I'm inferring there is something wrong with osword_hook.
Or possibly I'm doing something wrong.
Apart from that, it's a wonderful tool.
Jeremy
I'm using the acorn.py plugin to help understand some code I'm looking at. If I don't use it the process works, but when I do use it, various code sections cause it to fall over at line 1333 of acorn.py.
Code:
xy_addr(input_buffer_addr, input_buffer_addr+1)
It seems not to like the type of input_buffer_addr when trying to apply the << (shift) operator to it. NoneType vs Int if I remember correctly. If I comment out line 2605 to disable the osword_hook feature
Code:
#subroutine(0xfff1, "osword", None, None, hook=osword_hook, is_entry_point=False)
Or possibly I'm doing something wrong.
Apart from that, it's a wonderful tool.
Jeremy
Statistics: Posted by EdwardianDuck — Tue Jun 25, 2024 8:05 am