-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht65_l_branches.a65
85 lines (71 loc) · 918 Bytes
/
t65_l_branches.a65
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
; The the simple long branches
.listbytes unlimited
.include "test65.i65"
.include "../asminc/l_branches.i65"
.export _main
.pc02
.code
_main:
lbra pass_10
.repeat 128
nop
.endrepeat
tests_fail 10
pass_10:
clc
lbcc pass_20
.repeat 128
nop
.endrepeat
tests_fail 20
pass_20:
sec
lbcs pass_30
.repeat 128
nop
.endrepeat
tests_fail 30
pass_30:
lda #$01
lbne pass_40
.repeat 128
nop
.endrepeat
tests_fail 40
pass_40:
lda #$00
lbeq pass_50
.repeat 128
nop
.endrepeat
tests_fail 50
pass_50:
lbpl pass_60
.repeat 128
nop
.endrepeat
tests_fail 60
pass_60:
lda #$80
lbmi pass_70
.repeat 128
nop
.endrepeat
tests_fail 70
pass_70:
clv
lbvc pass_80
.repeat 128
nop
.endrepeat
tests_fail 80
pass_80:
lda #$70
adc #$70
lbvs pass_90
.repeat 128
nop
.endrepeat
tests_fail 90
pass_90:
tests_pass