-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassString.bas
45 lines (29 loc) · 915 Bytes
/
PassString.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$regfile = "m328pdef.dat" ' ATMega328p
$crystal = 12288000 ' 12,288 MHz
$hwstack = 90 ' default use 32 for the hardware stack
$swstack = 60 ' default use 10 for the SW stack
$framesize = 40
$baud = 19200
Dim Bb,bbb,J As Byte , I As Integer , S As String *10 'dim used variables
Dim S_Container(10) as byte at S Overlay
Declare Sub Teststr(byval b As Byte , BYVAL Dl() As String)
S = "1234"
bbb =1
goto main
Sub Teststr(byval b As Byte ,BYref Dl() As String)
Dl(b) = Dl(b) + "add" 'works
'printbin D1(1) 'not working
'printbin D1(1) 'not working
'printbin D1 'not working
'for j=1 to 4
'printbin D1(j)
'next
print D1(1)
b=b+1
End Sub
main:
for i=1 to 120
Bb = Bb +1
call Teststr(1,S())
next i
:end