• Please review our updated Terms and Rules here

Strings and parentheses in Turbo Pascal

OK, I'm a bit further with only pushing and popping strings to and from the stack. Just a bit because when I shorted a corner, which should have worked, I got complete weird results on the screen. To make a long story short, I forgot a CLD at one place. in the display routine. But it took me so long because I was fiddling with those push and pop routines and blamed them, especially the pop routine because things went wrong after using it. The pop routine uses the STD instruction and when applying the display routine, that one started to display the wrong data in the wrong order. Shorting the corner in this case was removing a copy routine that has the CLD instruction on board which made the display function work correctly.
Just one instruction and it took me hours........
 
Back
Top