-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainFlow.html
40 lines (37 loc) · 3.48 KB
/
mainFlow.html
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
<h3>Main Flow</h3>
The kernel is composed of 6 modules: video, strings, sound, maths, ports and main.
<br /><br />
The main function invokes to following tasks:
<br /><br />
-initialize the video mode 640x480x16<br />
-draw the rotatable logo<br />
-draw the no rotatable logo<br />
-print the screen messages<br />
-read the password<br />
-if the password is correct, then fill the screen with "babel"<br />
-else restart the pc<br /> <br />
Because we do not have threads to synchronize the rotation of the squares we need to do a pseudo synchronization.<br />
<h4><hr />The Bucle<hr /></h4>
while( continue ){<br /> <br />
if( beginstage1 < clockangle < endstage1 ){<br />
draw_square(<br />
angle = anglestage1,<br />
size = sizesquare1 * (anglestage1/endstage1) <br />
);
<br /> anglestage1 += clockincrease;
<br /> }<br /><br /> if( beginstage2 < clockangle < endstage2 ){<br />
draw_square(<br />
angle = anglestage2,<br />
size = sizesquare2 * (anglestage2/endstage2) <br />
);<br /> anglestage2 += clockincrease;<br />
}<br /><br /> if( beginstage3 < clockangle < endstage3 ){<br />
draw_square(<br />
angle = anglestage3,<br />
size = sizesquare3 * (anglestage3/endstage3) <br />
);<br /> anglestage3 += clockincrease;<br />
}else{<br /> continue = false;<br />
}<br /><br /> clockangle += clockincrease;<br /><br />}<br />
<span style="font-size: medium;"><br /> </span><br /> <br />