forked from frje/B.A.T.II
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLEF208.S
58 lines (42 loc) · 1.4 KB
/
CLEF208.S
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
46
47
48
49
50
51
52
53
54
55
56
clr.l -(sp) ;passer en superviseur
move.w #$20,-(sp)
trap #1
addq.l #6,sp
move.l d0,ex_pile
move.w #$2700,sr
move.b #14,$ff8800
loop:
bclr #4,$ff8802 ;DTR +12V
move.w #5000,d0 ; move.w #26,d0
b000:
nop ;le condensateur se charge
dbra d0,b000
move.b $fffa01,d7
andi.w #%1000110,d7
cmpi.w #%1000100,d7
bne rouge
bset #4,$ff8802 ;le condensateur se decharge
nop
nop
nop
nop
nop
move.b $fffa01,d6
andi.w #%1000110,d6
cmp.w d6,d7
bne vert
move.w #$0007,$ff8240
exit:
move.l ex_pile,-(sp) ;user
move.w #$20,-(sp)
trap #1
addq.l #6,sp
clr.w -(sp)
trap #1 ;fin
rouge:
move.w #$700,$ff8240
bra exit
vert:
move.w #$0070,$ff8240
bra exit
.BSS