vs-ude / mic-1-toolbox

Web-based MIC-1 emulator and toolbox
https://vs-ude.github.io/mic-1-toolbox/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

TOS register does sometimes have the wrong value #123

Closed YasinKavuk closed 1 year ago

YasinKavuk commented 1 year ago

Should have the value from the top of the stack.

YasinKavuk commented 1 year ago

When INVOKEVIRTUAL is executed the TOS will always have the value of objref. Because the number of possible parameters for the invoked method can vary the TOS can not be set.

Knowing this and with the fixes befor the only issue is now that the current "animate" method in the director service is a async method with a delay implemented. The hard coded delay is not a good solution and causes the TOS to not update properly in the register-view. This methods should be modified to fix the issue.