Closed SomphonSy closed 2 years ago
Hey, Thanks for reporting this! Hope you're finding this useful :)
The -
is actually not allowed in the procedure name, but the current documentation can make it seem like it is, sorry for that, I'll change it.
And your guess is correct, the emulator maintains an internal stack for call instruction, and the call pushes current address on the stack, and ret just returns it, so it essentially keeps executing call instruction again and again.
I'll fix it soon, along with another issue that is currently getting fixed. Thanks again for reporting this error :+1:
Anyway thanks for your 8086-emulator , it's a nice tools to start learning assembly !
Happy that it helps :)
Hey, I have made a patch that should fix this issue, you might need to do a hard refresh (ctrl+f5) on the website in case it still uses cached pages.
I have updated the docs to specify valid proc names, as well as fixed the infinite call looping. Please check once :) Thanks again for reporting the error :smile:
If there is still some error regarding this or issue, comment here, or feel free to close the issue :)
Hello , there is some issue with the definition of the procedure and with the interaction with the CALL instruction.
First in your documentation example , it seems like the procedure name can have a - in his name
But with this code :
I have the following error :
And with a correct procedure name like the following code , there is an other problem :
The RET instruction (i guess) , is returning the address to the CALL test_procedure instead of the next instruction , creating an infinite loop .
Anyway thanks for your 8086-emulator , it's a nice tools to start learning assembly !