Re: QLiberator v3.41
Posted: Sat Jul 24, 2021 8:59 pm
Currently, Q-Liberator first goes through the work file and changes all hex and binary values into floats. This cannot be done to _sav files because people might complain about all their hex and binary values having disappeared.pjw wrote: SAVE ram1_test_bas
QSAVE
LIBERATE
<>
My preferred method for QLib-compiling stuff is to use the first
method described (above, under the code): Make a change to the code,
QSAVE. Click Compile. Test. Repeat. But clearly that doesnt work if
the source code contains binary or hex numbers.
Q-Liberator contains a mixture of both SuperBASIC and machine code routines. One of these is NEXT_TOKEN, which only occurs once in the program, but at present doesn’t cater for hex and bin tokens. This routine has already been disassembled – by Alain HAOUI, in February, last year. I don’t do any m/c work myself, but we are needing some help to modify this routine to accept the hex and bin tokens. This is how it looks in SuperBASIC …
NEXT_TOKEN sym1%, sym2%, sym3, sym4$, End_of_Stmt%, End_of_Line%
The hex or binary value would be returned as a float – in sym3
In the context of where such a value would appear …
sym1% = 11 indicating a float value
sym3 = the float value itself
All other parameters, sym2%, sym4$, End_of_Stmt% and End_of_Line% would remain unchanged.
If we can get this working, then this should make Per very happy. QLIB would then work with either a work or a _sav file, as the preliminary conversion to floats would not then be needed.
Perhaps Norm might be interested in taking a look? The files are in DeaQlib2.zip and can be downloaded from https://www.theqlforum.com/viewtopic.php ... =30#p31831
EmmBee