Еве пробав да преведам иако не го познавам баш најдобро C јазикот. Вака како што е, кодот се компајлира , но не знам дали ќе работи. Можеби има грешки.
'char array[10],p,j,s,i,still;
dim MyArray as char[10]
dim p as char
dim j as char
dim s as char
dim i as char
dim still as char
'void clock(){ RB6=1;RB6=0;}
sub procedure clock
PORTB.6 = 1
PORTB.6 = 0
end sub
'void reset(){ RB7=1;RB7=0;}
sub procedure MyReset
PORTB.7 = 1
PORTB.7 = 0
end sub
'void scroll(char a,char b,char c,char d,char e) '//display function //
sub procedure scroll(dim a, b, c, d, e as char)
'{
'short int count=6;
dim count as integer
count = 6
while(count > 0)
'{
'array[0]=~a;
MyArray[0] = Not(a)
'a=b;b=c;c=d;d=e;e=255;
a = 255
b = 255
c = 255
d = 255
e = 255
'reset();
MyReset
'for(s=0;s<still;s++)
while s < still
'{
s = s + 1
'for)i=0;i<10;i++)
for i = 0 to 9
'{
p = 1
'for(j=0;j<9;j++)
for j = 0 to 8
'{
'PORTD=~(array[i]&(p));__delay_ms(.1);p<<=1;
PORTA = Not(MyArray[i] and p) ' <-- go kompajlirav za 16F628A kojsto nema PORTD
Delay_us(100)
p = p << 1
'}
next j
'clock();
clock
'}
next i
'}
wend
'for(i=9;i>0;i--)
for i = 9 to 0 step -1
'{
'array[i]=array[i-1];
MyArray[i] = MyArray[i - 1]
'}
next i
'count--;
count = count -1
'}
wend
'}
end sub