Skip to content

Commit da64407

Browse files
author
Ozan
committed
extracted zip files
1 parent 0c806d6 commit da64407

File tree

14 files changed

+827
-0
lines changed

14 files changed

+827
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Experiment - 2/.DS_Store

0 Bytes
Binary file not shown.

Experiment - 2/150190021/.DS_Store

6 KB
Binary file not shown.
-570 Bytes
Binary file not shown.

Experiment - 2/150190021/exp2.asm

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
; PART - 1
2+
; GROUP - 1
3+
4+
SetupP4 mov.b #11111111b,&P1DIR
5+
mov.b #00000000b,&P2DIR
6+
mov.b #00000000b,&P1OUT
7+
mov.b #00000000b,&P2OUT
8+
mov.b P2IN,R7
9+
mov.b #00000000b, R6
10+
mov.b #0d, R8
11+
jmp Mainloop1
12+
13+
Increment inc R6
14+
inc R8
15+
jmp Mainloop1
16+
17+
18+
Mainloop1 bis.b R6, &P1OUT
19+
mov.w #00500000, R15
20+
21+
cmp #128D, R8
22+
jeq SetupP4
23+
L1 dec.w R15
24+
jnz L1
25+
cmp R7, &P2IN
26+
jeq Mainloop1
27+
jmp Increment
28+
29+
30+
31+
32+
; PART - 2
33+
34+
SetupP4
35+
mov.b #00000000b, &P1DIR
36+
bic.b #11111111b,&P1IN
37+
bis.b #00000000b, &P1IN
38+
mov.b #00000000b, R6
39+
mov.b #00000000b, R8
40+
mov.b #00000000b, R7
41+
jmp Mainloop1
42+
43+
IncrementX inc R6
44+
45+
jmp Mainloop1
46+
47+
48+
IncrementY inc R8
49+
50+
jmp Mainloop1
51+
52+
reset mov.b #00000000b, R6
53+
54+
mov.b #00000000b, R8
55+
jmp Mainloop1
56+
57+
58+
59+
60+
Mainloop1
61+
62+
mov.w #00500000, R15
63+
L1 dec.w R15
64+
jnz L1
65+
66+
bit.b #10000000b, &P1IN
67+
jeq IncrementX
68+
69+
bit.b #01000000b, &P1IN
70+
jeq IncrementY
71+
72+
bit.b #00100000b, &P1IN
73+
jeq reset
74+
75+
jmp Mainloop1
76+
77+
78+
79+
; PART - 3
80+
81+
82+
SetupP4
83+
mov.b #00000000b, &P1DIR
84+
bic.b #11111111b,&P1IN
85+
bis.b #00000000b, &P1IN
86+
mov.b #00000000b, R6
87+
mov.b #00000000b, R8
88+
mov.b #00000000b, R7
89+
jmp Mainloop1
90+
91+
IncrementX inc R6
92+
93+
jmp Mainloop1
94+
95+
96+
IncrementY inc R8
97+
98+
jmp Mainloop1
99+
100+
reset mov.b #00000000b, R6
101+
102+
mov.b #00000000b, R8
103+
jmp Mainloop1
104+
105+
Multi
106+
add R6,R7
107+
mov.b R8,R5
108+
dec R5
109+
cmp #00000000b,R5
110+
jnz Multi
111+
jmp Mainloop1
112+
113+
114+
115+
Mainloop1
116+
117+
mov.w #00500000, R15
118+
L1 dec.w R15
119+
jnz L1
120+
121+
bit.b #10000000b, &P1IN
122+
jeq IncrementX
123+
124+
bit.b #01000000b, &P1IN
125+
jeq IncrementY
126+
127+
bit.b #00100000b, &P1IN
128+
jeq reset
129+
130+
bit.b #0001000b, &P1IN
131+
jeq Multi
132+
jmp Mainloop1

Experiment - 3/.DS_Store

0 Bytes
Binary file not shown.

Experiment - 3/150190021/.DS_Store

6 KB
Binary file not shown.
-1.97 KB
Binary file not shown.

0 commit comments

Comments
 (0)