Skip to content

Commit 0dff969

Browse files
commiting Routine
1 parent f87cd50 commit 0dff969

File tree

67 files changed

+1162
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1162
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>BELOW PROGRAM IS TO BE ENTERED IN LADDER</name>
4+
<functionalBlock> MOV R3,A
5+
INC DPTR
6+
MOVX A,@DPTR
7+
MOV R2,A
8+
LCALL DIV_32BIT
9+
MOV DPTR,#D${INPUT}H ;D2060H IS THE QUOTIENT
10+
MOV A,RSLT_3
11+
MOVX @DPTR,A
12+
INC DPTR
13+
MOV A,RSLT_2
14+
MOVX @DPTR,A
15+
INC DPTR
16+
MOV A,RSLT_1
17+
MOVX @DPTR,A
18+
</functionalBlock>
19+
<inputs class="linked-hash-map">
20+
<entry>
21+
<int>1</int>
22+
<string>${INPUT1}</string>
23+
</entry>
24+
</inputs>
25+
<values class="linked-hash-map"/>
26+
<components/>
27+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>BELOW ROUTINE IS FOR MAIN LADDER</name>
4+
<functionalBlock> MOV DPTR,#D${INPUT 1}H ;DIVIDENT
5+
MOVX A,@DPTR
6+
MOV RSLT_1,A
7+
INC DPTR
8+
MOVX A,@DPTR
9+
MOV RSLT_0,A
10+
11+
MOV DPTR,#D${INPUT 2}H ;DIVISOR
12+
MOVX A,@DPTR
13+
MOV R3,A
14+
INC DPTR
15+
MOVX A,@DPTR
16+
MOV R2,A
17+
18+
LCALL DIV_16BIT
19+
20+
21+
MOV DPTR,#D${INPUT 3}H ;QUOTIENT
22+
MOV RSLT_1,A
23+
MOVX @DPTR,A
24+
INC DPTR
25+
MOV RSLT_0,A
26+
MOVX @DPTR,A
27+
28+
INC DPTR,#D${INPUT 4} ;REMAINDER IS AT D2011
29+
MOV A,TEMP_1
30+
MOVX @DPTR,A
31+
INC DPTR
32+
MOV A,TEMP_0
33+
MOVX @DPTR,A
34+
</functionalBlock>
35+
<inputs class="linked-hash-map">
36+
<entry>
37+
<int>1</int>
38+
<string>${INPUT1}</string>
39+
</entry>
40+
<entry>
41+
<int>2</int>
42+
<string>${INPUT2}</string>
43+
</entry>
44+
<entry>
45+
<int>3</int>
46+
<string>${INPUT3}</string>
47+
</entry>
48+
<entry>
49+
<int>4</int>
50+
<string>${INPUT4}</string>
51+
</entry>
52+
</inputs>
53+
<values class="linked-hash-map"/>
54+
<components/>
55+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>BELOW ROUTINE SHOLD BE PUT IN MAIN LADDER</name>
4+
<functionalBlock>MOV A,#03 ;CONSTANT 3 IS LENGTH OF TABLE READ
5+
MOV DPTR,# D${INPUT 1}H ;D2050 IS THE START OF TABLE
6+
7+
LCALL READ_TABLE
8+
9+
MOV DPTR,#D${INPUT 2}L
10+
MOVX @DPTR,A
11+
MOV A,B
12+
MOV DPTR,#D${INPUT 3}H
13+
MOVX @DPTR,A
14+
</functionalBlock>
15+
<inputs class="linked-hash-map">
16+
<entry>
17+
<int>1</int>
18+
<string>${INPUT1}</string>
19+
</entry>
20+
<entry>
21+
<int>2</int>
22+
<string>${INPUT2}</string>
23+
</entry>
24+
<entry>
25+
<int>3</int>
26+
<string>${INPUT3}</string>
27+
</entry>
28+
</inputs>
29+
<values class="linked-hash-map"/>
30+
<components/>
31+
</org.grandviewtech.entity.bo.Routine>

resources/routine/routine/BIT RESET

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>BIT RESET</name>
4+
<functionalBlock>MOV DPTR,#RLY512_519+
5+
MOVX A,@DPTR
6+
CLR RLY567
7+
MOVX @DPTR,A
8+
9+
</functionalBlock>
10+
<inputs class="linked-hash-map"/>
11+
<values class="linked-hash-map"/>
12+
<components/>
13+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>BIT SET</name>
4+
<functionalBlock>MOV DPTR,#RLY512_519+
5+
MOVX A,@DPTR
6+
SETB RLY600
7+
MOVX @DPTR,A
8+
</functionalBlock>
9+
<inputs class="linked-hash-map"/>
10+
<values class="linked-hash-map"/>
11+
<components/>
12+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>CLR FLAG WORD</name>
4+
<functionalBlock>MOV DPTR,#RLY512_519
5+
CLR A
6+
MOVX @DPTR,A
7+
INC DPTR
8+
MOVX @DPTR,A
9+
</functionalBlock>
10+
<inputs class="linked-hash-map"/>
11+
<values class="linked-hash-map"/>
12+
<components/>
13+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>COMPARE INSTRUCTION WITH ONE CONSTANT DATA</name>
4+
<functionalBlock>MOV A,#03H ;MSD DATA
5+
MOV R3,A
6+
MOV A,#0E8H
7+
MOV R2,A
8+
MOV DPTR,#D${INPUT 1]H ;DATA B
9+
MOVX A,@DPTR
10+
MOV R5,A
11+
INC DPTR
12+
MOVX A,@DPTR
13+
MOV R4,A
14+
15+
LCALL COMPARE
16+
17+
;IF DATA A IS LESS THAN DATA B
18+
19+
MOV C,RLY33
20+
MOV DPTR,#RLY512_519
21+
MOVX A,@DPTR
22+
MOV RLY514,C;
23+
MOVX @DPTR,A
24+
25+
;IF DATA B IS EQUAL TO DATA A
26+
27+
MOV C,RLY34
28+
MOV DPTR,#RLY512_519+
29+
MOVX A,@DPTR
30+
MOV RLY567,C;
31+
MOVX @DPTR,A
32+
33+
;IF DATA B IS LESS THAN DATA A
34+
35+
MOV C,RLY35
36+
MOV DPTR,#RLY512_519
37+
MOVX A,@DPTR
38+
MOV RLY598,C;
39+
MOVX @DPTR,A
40+
</functionalBlock>
41+
<inputs class="linked-hash-map"/>
42+
<values class="linked-hash-map"/>
43+
<components/>
44+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>COMPARE WITH BOTH DATA VARIABLE</name>
4+
<functionalBlock>MOV DPTR,#D${INPUT 1}H ;DATA A
5+
MOVX A,@DPTR
6+
MOV R3,A
7+
INC DPTR
8+
MOVX A,@DPTR
9+
MOV R2,A
10+
MOV DPTR,#D${INPUT 2}H ;DATA B
11+
MOVX A,@DPTR
12+
MOV R5,A
13+
INC DPTR
14+
MOVX A,@DPTR
15+
MOV R4,A
16+
17+
LCALL COMPARE
18+
19+
;IF DATA A IS LESS THAN DATA B
20+
21+
MOV C,RLY33
22+
MOV DPTR,#RLY512_519
23+
MOVX A,@DPTR
24+
MOV RLY514,C;
25+
MOVX @DPTR,A
26+
27+
;IF DATA B IS EQUAL TO DATA A
28+
29+
MOV C,RLY34
30+
MOV DPTR,#RLY512_519+
31+
MOVX A,@DPTR
32+
MOV RLY567,C;
33+
MOVX @DPTR,A
34+
35+
;IF DATA B IS LESS THAN DATA A
36+
37+
MOV C,RLY35
38+
MOV DPTR,#RLY512_519+
39+
MOVX A,@DPTR
40+
MOV RLY598,C;
41+
MOVX @DPTR,A
42+
</functionalBlock>
43+
<inputs class="linked-hash-map">
44+
<entry>
45+
<int>1</int>
46+
<string>${INPUT1}</string>
47+
</entry>
48+
<entry>
49+
<int>2</int>
50+
<string>${INPUT2}</string>
51+
</entry>
52+
</inputs>
53+
<values class="linked-hash-map"/>
54+
<components/>
55+
</org.grandviewtech.entity.bo.Routine>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<org.grandviewtech.entity.bo.Routine>
2+
<description></description>
3+
<name>COMPLEMENT BIT</name>
4+
<functionalBlock>MOV DPTR,#RLY512_519+
5+
MOVX A,@DPTR
6+
MOV C,RLY567
7+
CPL C
8+
MOV RLY567,C
9+
MOVX @DPTR,A
10+
</functionalBlock>
11+
<inputs class="linked-hash-map"/>
12+
<values class="linked-hash-map"/>
13+
<components/>
14+
</org.grandviewtech.entity.bo.Routine>

0 commit comments

Comments
 (0)