azzeloof / supercon-2022-badge-vm

GNU General Public License v3.0
0 stars 1 forks source link

pcm = self.ram[0x0e] << 4 Unsupported Operand type(s) #7

Open MS3FGX opened 1 year ago

MS3FGX commented 1 year ago

Having limited luck running the new version against the examples that come with the assembler. One of the issues I'm seeing is that if program uses jump functions, it will show "Unsupported operand types" for the lines that determine pcl/pcm/pch.

If I cast them as int(), the error goes away:

pcm = int(self.ram[0x0e]) << 4 pch = int(self.ram[0x0f]) << 8

This change gets the stalagtites.asm example to run for a bit longer, but it still ultimately crashes with an error after what looks to be one loop around.

Honestly don't understand the emu well enough to know what exactly the issue is, but thought it was clue worth reporting.

azzeloof commented 1 year ago

I just fixed a similar bug that Elliot caught, and I think it may have been the same line causing it. Mind trying it again? Also good catch! Thanks for reporting