suggestions for future QB64
#25
Code: (Select All)
For i = 1 To 10
    Print "hello"
Next i
End

resultas in the file main.txt :
Code: (Select All)
S_0:;
S_1:;
fornext_value2= 1 ;
fornext_finalvalue2= 10 ;
fornext_step2= 1 ;
if (fornext_step2<0) fornext_step_negative2=1; else fornext_step_negative2=0;
if (new_error) goto fornext_error2;
goto fornext_entrylabel2;
while(1){
fornext_value2=fornext_step2+(*__SINGLE_I);
fornext_entrylabel2:
*__SINGLE_I=fornext_value2;
if (fornext_step_negative2){
if (fornext_value2<fornext_finalvalue2) break;
}else{
if (fornext_value2>fornext_finalvalue2) break;
}
fornext_error2:;
if(qbevent){evnt(1);if(r)goto S_1;}
do{
tqbs=qbs_new(0,0);
qbs_set(tqbs,qbs_new_txt_len("hello",5));
if (new_error) goto skip3;
makefit(tqbs);
qbs_print(tqbs,0);
qbs_print(nothingstring,1);
skip3:
qbs_free(tqbs);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(2);}while(r);
fornext_continue_1:;
}
fornext_exit_1:;
do{
sub_end();
if(!qbevent)break;evnt(4);}while(r);
sub_end();
return;
}
void SUB_VWATCH(){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data1.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (new_error) goto exit_subfunc;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free1.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}

difficult to understand. it is not directly modifiable. it would be necessary to study the method used by the original author of qb64. well it works, it is the main thing.
Reply


Messages In This Thread
suggestions for future QB64 - by Jack - 04-17-2022, 10:41 PM
RE: suggestion for future QB64 - by Pete - 04-18-2022, 05:57 AM
RE: suggestion for future QB64 - by PhilOfPerth - 04-24-2022, 12:14 AM
RE: suggestion for future QB64 - by bplus - 04-24-2022, 01:34 AM
RE: suggestion for future QB64 - by Pete - 04-24-2022, 01:51 AM
RE: suggestion for future QB64 - by bplus - 04-26-2022, 06:12 PM
RE: suggestion for future QB64 - by Pete - 04-26-2022, 06:24 PM
RE: suggestion for future QB64 - by justsomeguy - 04-26-2022, 10:28 PM
RE: suggestion for future QB64 - by Pete - 04-26-2022, 11:03 PM
RE: suggestion for future QB64 - by Fortran66 - 04-29-2022, 09:46 PM
RE: suggestion for future QB64 - by SMcNeill - 04-26-2022, 11:11 PM
RE: suggestion for future QB64 - by Tim - 04-27-2022, 05:52 AM
RE: suggestions for future QB64 - by justsomeguy - 04-26-2022, 11:39 PM
RE: suggestions for future QB64 - by PhilOfPerth - 04-26-2022, 11:58 PM
RE: suggestions for future QB64 - by Pete - 04-27-2022, 12:26 AM
RE: suggestions for future QB64 - by admin - 04-27-2022, 12:36 AM
RE: suggestions for future QB64 - by Pete - 04-27-2022, 12:50 AM
RE: suggestions for future QB64 - by admin - 04-27-2022, 06:14 AM
RE: suggestions for future QB64 - by Tim - 04-27-2022, 06:30 AM
RE: suggestions for future QB64 - by admin - 04-27-2022, 06:35 AM
RE: suggestions for future QB64 - by Tim - 04-27-2022, 04:27 PM
RE: suggestions for future QB64 - by Pete - 04-27-2022, 04:38 PM
RE: suggestions for future QB64 - by Tim - 04-27-2022, 11:39 PM
RE: suggestions for future QB64 - by SMcNeill - 04-28-2022, 03:04 PM
RE: suggestions for future QB64 - by CharlieJV - 04-28-2022, 05:03 PM
RE: suggestions for future QB64 - by crumpets - 04-28-2022, 02:07 PM
RE: suggestions for future QB64 - by Coolman - 04-28-2022, 05:02 PM
RE: suggestions for future QB64 - by bplus - 04-28-2022, 05:15 PM
RE: suggestions for future QB64 - by CharlieJV - 04-28-2022, 05:32 PM
RE: suggestions for future QB64 - by SMcNeill - 04-28-2022, 06:37 PM
RE: suggestions for future QB64 - by bplus - 04-28-2022, 05:58 PM
RE: suggestions for future QB64 - by aurel - 04-28-2022, 08:28 PM
RE: suggestions for future QB64 - by Pete - 04-28-2022, 08:33 PM
RE: suggestions for future QB64 - by Pete - 04-28-2022, 11:42 PM
RE: suggestions for future QB64 - by Tim - 05-05-2022, 06:37 PM
RE: suggestions for future QB64 - by SMcNeill - 04-28-2022, 08:31 PM
RE: suggestions for future QB64 - by SMcNeill - 04-28-2022, 08:38 PM
RE: suggestions for future QB64 - by Tim - 04-28-2022, 09:01 PM
RE: suggestions for future QB64 - by bplus - 04-28-2022, 10:35 PM
RE: suggestions for future QB64 - by Dav - 04-28-2022, 11:38 PM
RE: suggestions for future QB64 - by aurel - 04-29-2022, 12:00 PM
RE: suggestions for future QB64 - by bplus - 04-29-2022, 06:42 PM
RE: suggestions for future QB64 - by Pete - 04-29-2022, 07:03 PM
RE: suggestions for future QB64 - by bplus - 04-29-2022, 07:47 PM
RE: suggestions for future QB64 - by Pete - 04-29-2022, 07:54 PM
RE: suggestions for future QB64 - by bplus - 04-29-2022, 07:57 PM
RE: suggestions for future QB64 - by SMcNeill - 04-29-2022, 09:56 PM
RE: suggestions for future QB64 - by madscijr - 05-05-2022, 05:59 PM
RE: suggestions for future QB64 - by mnrvovrfc - 07-25-2022, 06:07 AM
RE: suggestions for future QB64 - by madscijr - 07-25-2022, 03:18 PM
RE: suggestions for future QB64 - by mnrvovrfc - 07-25-2022, 10:25 PM
RE: suggestions for future QB64 - by madscijr - 07-26-2022, 01:09 AM
RE: suggestions for future QB64 - by mnrvovrfc - 07-26-2022, 07:51 PM
RE: suggestions for future QB64 - by SMcNeill - 07-26-2022, 09:15 PM
RE: suggestions for future QB64 - by Pete - 05-05-2022, 06:23 PM
RE: suggestions for future QB64 - by madscijr - 05-05-2022, 08:29 PM
RE: suggestions for future QB64 - by madscijr - 05-05-2022, 08:45 PM
RE: suggestions for future QB64 - by crumpets - 05-07-2022, 09:01 AM
RE: suggestions for future QB64 - by dano - 05-12-2022, 11:32 PM
RE: suggestions for future QB64 - by RNBW - 07-25-2022, 01:44 PM
RE: suggestions for future QB64 - by bplus - 05-07-2022, 03:57 PM
RE: suggestions for future QB64 - by RhoSigma - 07-25-2022, 03:22 PM
RE: suggestions for future QB64 - by DSMan195276 - 07-26-2022, 02:52 AM
RE: suggestions for future QB64 - by TempodiBasic - 07-26-2022, 12:52 PM
RE: suggestions for future QB64 - by DSMan195276 - 07-26-2022, 04:32 PM
RE: suggestions for future QB64 - by TempodiBasic - 07-26-2022, 06:59 PM
RE: suggestions for future QB64 - by madscijr - 07-26-2022, 07:27 PM



Users browsing this thread: 19 Guest(s)