Brainduck icon indicating copy to clipboard operation
Brainduck copied to clipboard

Step backwards

Open Zomis opened this issue 9 years ago • 1 comments

If at all possible in BF, it would be useful to "step backwards" while debugging so that you can easier find where things go wrong when they go wrong

Zomis avatar Oct 16 '15 14:10 Zomis

For this you'd need to know a couple of things:

  • , what was the value of the cell before the operation?
  • if there is a [ or ] before the command, how many times has the loop been performed? Was it ever performed? Should we go backwards to before [ or before ] ?

The other commands are pretty clear how they should be reversed.

Zomis avatar Oct 26 '15 21:10 Zomis