ktechlab-devel

You can subscribe to this list here.

2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 Jan Feb Mar Apr May Jun Jul (12) Aug (21) Sep (22) Oct (16) Nov (18) Dec (20) Jan (103) Feb (33) Mar (20) Apr (14) May Jun (14) Jul (5) Aug (11) Sep (4) Oct (1) Nov (3) Dec (17) Jan (8) Feb (6) Mar (6) Apr (73) May (19) Jun (57) Jul (18) Aug (3) Sep (22) Oct (18) Nov (45) Dec (5) Jan Feb (7) Mar (2) Apr (2) May (61) Jun (18) Jul (20) Aug (16) Sep (41) Oct (3) Nov (75) Dec (39) Jan (33) Feb (131) Mar (27) Apr (47) May (65) Jun (37) Jul (41) Aug (27) Sep (80) Oct (106) Nov (119) Dec (35) Jan (42) Feb (15) Mar (17) Apr (19) May Jun (2) Jul (23) Aug (12) Sep (13) Oct (13) Nov (16) Dec (1) Jan (3) Feb (1) Mar (3) Apr (6) May (20) Jun (14) Jul (5) Aug Sep (2) Oct Nov (14) Dec (2) Jan Feb (4) Mar (3) Apr (4) May (3) Jun (1) Jul (8) Aug (7) Sep (3) Oct (3) Nov Dec (1) Jan Feb (1) Mar Apr (6) May Jun Jul (2) Aug (3) Sep (6) Oct (5) Nov Dec (1) Jan Feb Mar Apr May (2) Jun Jul (2) Aug Sep Oct Nov (2) Dec (1) Jan (1) Feb Mar Apr May (13) Jun (6) Jul (15) Aug (1) Sep (5) Oct (1) Nov (2) Dec (1) Jan (2) Feb (1) Mar Apr (2) May (4) Jun (1) Jul Aug (7) Sep (3) Oct (12) Nov (7) Dec (7) Jan (3) Feb (1) Mar Apr (2) May Jun (6) Jul Aug Sep Oct Nov Dec
S M T W T F S

1
(1)
2

3

4
(3)
5
(2)
6
(3)
7

8
(1)
9
(3)
10
(1)
11

12

13
(2)
14
(3)
15

16
(3)
17
(2)
18
(4)
19
(1)
20

21
(1)
22

23

24

25

26
(1)
27

28
(2)

Showing 2 results of 2

 [Ktechlab-devel] Cant compile a microbe code From: - 2006-02-17 17:29:43 ```Hi! I try to compile this micorbe code with Ktechlab SVN, but gpasm cant compile it. P16F84 a = 1 b = 0 c = 20 /// Villogas sebessege/ d = 0 TRISB = b'11111111' TRISA = b'00111' start: *while* a <= 255 AND b == 0 { /// Ha a = 256, akkor az utolso led vilagit/ a = a*2 *if* a == 255 *then* b = 1 PORTB = a delay 20 } *while* a >= 1 AND b == 1 { a = a/2 *if* a == 1 *then* b = 0 PORTB = a delay 20 } goto start *end* Here's the log: Building: /home/sevcsik/workz/PIC/fairco/villogtato.hex microbe /home/sevcsik/workz/PIC/fairco/villogtato.microbe /tmp/kde-sevcsik/ktechlab5wUWXb.asm --show-source *** Compilation successful *** gpasm --output /home/sevcsik/workz/PIC/fairco/villogtato.hex --hex-format inhx8m --radix DEC --warning 2 --ignore-case --force-list /tmp/kde-sevcsik/ktechlab5wUWXb.asm /tmp/kde-sevcsik/ktechlab5wUWXb.asm:43:Error [116] Value of symbol "start" differs on second pass pass 1=0, pass 2=6 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:106:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=48 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:107:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=48 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:110:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=49 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:111:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=49 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:114:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=50 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:115:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=50 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:118:Error [116] Value of symbol "__picfunc_m ultiply_loop" differs on second pass pass 1=47, pass 2=51 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:119:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=51 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:122:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=52 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:123:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=52 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:126:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=53 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:127:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=53 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:130:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=54 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:131:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=54 /tmp /kde-sevcsik/ktechlab5wUWXb.asm:134:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=55 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:135:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=55 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:138:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=56 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:139:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=56 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:142:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=57 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:143:Error [116] Value of symbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=57 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:146:Error [116] Value of symbol "__picfunc_multiply_loop" differs on second pass pass 1=47, pass 2=58 /tmp/kde-sevcsik/ktechlab5wUWXb.asm:147:Error [116] Value of sy mbol "__picfunc_multiply" differs on second pass pass 1=47, pass 2=58 *** Assembly failed *** Why is that the microbe compiling is successful, but gpasm can't asemble it? i have no idea :) thanks for the help ```
 [Ktechlab-devel] instruction cycles From: - 2006-02-17 14:28:58 ```Recently I was experimenting with little programs and KTechLab, but somet= imes strange things happen. For example, why is this program producing a perfect square wave in RA4 o= utput? loop: BSF PORTA, 4 BCF PORTA,4 GOTO loop According to the pic specification, GOTO should take 2 cycles and B?F sho= uld take only 1 cycle. To correct this, we must add two NOP's after BSF, is this correct? With this little program we should have a perfect square wave on the RA4 pin. loop: BSF PORTA, 4 NOP NOP BCF PORTA,4 GOTO loop ```

Showing 2 results of 2