https://bugs.kde.org/show_bug.cgi?id=388213
Bug ID: 388213 Summary: microbe: delay function generates strange microbe code + conversion to asm fails Product: KTechLab Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: zoltan.pad...@gmail.com Reporter: zoltan.pad...@gmail.com CC: jul...@svg4all.de Target Milestone: --- Steps to reproduce: 1. create a new flowcode document 2. add start, delay, stop 3. set delay to some milliseconds, ex. 900ms 4. convert to ASM Expected: 5. conversion is successful Actually what happens: 5.1 delay statement in microbe generates strange delay of 900.009 ms 5.2 compilation of microbe fails with "Error [20] Delay must be a positive constant value" Example output and microbe code: Building: /tmp/kde-student/ktechlabCN10qT.hex *** Microbe generation successful *** microbe /tmp/kde-student/ktechlabXdkONV.microbe /tmp/kde-student/ktechlabUy7yeY.asm --show-source /tmp/kde-student/ktechlabXdkONV.microbe:11:Error [20] Delay must be a positive constant value /tmp/kde-student/ktechlabXdkONV.microbe:13:Error [20] Delay must be a positive constant value *** Compilation failed *** P16F84 // Initial variable values: x = 0 TRISA = 30 PORTA = 0 PORTB = 0 x = 0 PORTA.0 = high while x == 0 { delay 500.005 // ( 500 ms) PORTA.0 = high delay 600.006 // ( 600 ms) PORTA.0 = low } end P16F84 PORTA = 0 PORTB = 0 delay 900.009 end see comments here: https://zoltanp.github.io/2017/11/ktechlab-0-40-0.html -- You are receiving this mail because: You are watching all bug changes.