jdykstra / ucsd-psystem-vm

Actively maintained fork of Peter Miller's UCSD P-System tools - Virtual machine
Other
30 stars 9 forks source link

Infinite loop in DIF instruction. #3

Closed michalgw closed 2 years ago

michalgw commented 2 years ago

Implementation of the DIF instruction contains an endless loop: https://github.com/jdykstra/ucsd-psystem-vm/blob/43c8fb9fc86dfba3a4ae78ec1256630fa533b388/ucsdpsys_vm/main.c#L2200-L2201

jdykstra commented 2 years ago

Thanks for the report. I should be able to test and commit the fix by the weekend.

I'm curious. Did you find this with a code checker, or trip across it while actually using the P-System tools? And if the later, for what? I see lots of people cloning the repos, but I don't know what my "customers" are doing with it.

michalgw commented 2 years ago

Actually, I'm porting this code to Pascal (using Free Pascal). Finally, I would like to create a vm for Atari 8-bit platform using MadPascal (https://github.com/tebe6502/Mad-Pascal).