-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.txt
127 lines (112 loc) · 2.27 KB
/
test.txt
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.234567890123456789
LAB2C START 0000
. lda te*te1
. lda te/te1
. lda te+te1
lda te1-te
. LDA ALPHA
LDB #10
LDX #0
ADDR A,B
org 1000
. STA SAVEW,X
. STA SAVEW,X
LDA =X'5f'
LDA =X'df'
LDA =C'8j5'
te word 5
te1 word 5
LDA =w'1552'
LDA =w'-152'
LDA =W'124'
LDA =W'-152'
LDA =W'1624'
LDA =W'4095'
ltorg
lda loop
word -1000
resw 1
. resw -1
. resw 9999
. resw 10000
BAse alpha
.Format 4
+SUB #12
+sub 12
+sub loop
+sub #loop
+sub @12
+sub @loop
+sub @loop-500
+sub #loop+500
+sub loop-500
. +SUB #12,x
+sub 12,x
+sub loop,x
. +sub #loop,x
. +sub @12,x
. +sub @loop,x
. +sub @loop+500,x
. +sub #loop+500,x
+sub loop+500,x
LDX #0
LDCH HEXCHAR
STA INPUT
LOOP LDCH STRING,X
. lda test
. lda none
v1 lda 4095
.v2 lda 4096
v3 lda #4095
.v4 lda #4096
v5 lda @4095
.v6 lda @4096
.v7 lda -4095
..v8 lda -4096
.v9 lda #-4095
..v10 lda #-4096
.v11 lda @-4095
.v12 lda @-4096
COMP INPUT
LDA 1000
.sajed EQU loop-1000
b1 equ 4000
b11 equ 4000
b2 equ 1000
b3 equ 2000
b5 equ 500
. BASE loop-1000
LDA loop-loop+1000
LDA 1000
LDA 2000
LDA 500
BAse 1500
LDA b1
nobase
. lda b11
LDA b3
LDA b2
resw 3500
BASE 4000
resw 3000
test word 5
.LDA b5
sajed1 LDA loop+1000
.sajed2 LDA loop-1000
sajed4 LDA loop-1000+952
.sajed6 LDA loop-sajed1+HEXCHAR-found
JEQ FOUND
STCH OUTPUT,X
TIX #5
. JLT LOOP
nobaSe
FOUND J OUTPUT
ALPHA WORD 2
SAVEW RESW 2
HEXCHAR BYTE X'6145fd56'
INPUT RESB 1
beso BYTE C'F4 '
BYTE C'F5 '
STRING RESW 1
OUTPUT RESB 5
END