Hi, I'm using OpenMSX to develop software for MSX. So, I made up a simple "integrated development environment", using Linux, Geany, OpenMSX and some TCL and shell scripts. So I write the Pascal code in Geany, and when I press F9, it runs and overclocked (10000%, hehehe) MSX 2 in OpenMSX, which compiles my code, using Turbo Pascal 3.0 or TP33F, from CPU. Here is some excerpts from my project, here and here. The github page is here (sorry, there aren't any English versions yet, only Portuguese).
My shell script counts how many lines does the program (and its includes) have, so I can have an idea of how much time does the OpenMSX should be running overclocked, in order to compile my code. It would be very nice if OpenMSX has its speed lowered to 100% when the compile ends. But I don't know how much time does it will spend.
Here goes an excerpt of my tcl script:
set power on
after boot "set speed 10000"
##
after time 16 "type d:compila.bat ; type \\r"
after time %%TIME2%% "diskmanipulator export hda4 /home/ricardo/MSX/programacao/dev/sandbox"
after time %%TIME3%% "set speed 100"
My script changes %%TIME2%% and %%TIME3%% tags to the time I need to lower the clock of the emulated MSX and export the drive D (which is my sandbox) to another directory. But I don't know how much time does it will spend.
Finally, is there a way of measuring this time in OpenMSX, in order to make my script more precise?
Thanks!