summaryrefslogtreecommitdiffstats
path: root/system/d52/tests/test.ctl
blob: 1a6731b362b605fe50233b9cee7f39732db59423 (about) (plain) (blame)
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
;
; TEST.CTL - Sample Control File for D52
;
;   Control codes allowed in the CTL file:
;
;  A - Address		Specifies that the word entry is the address of
;			something for which a label should be generated.
;
;  B - Byte binary	Eight bit binary data (db).
;
;  C - Code		Executable code that must be analyzed.
;
;  F - SFR label	Specify name for SFR.
;
;  I - Ignore		Treat as uninitialized space. Will not be dis-
;			assembled as anything unless some other valid
;			code reaches it.
;
;  K - SFR bit		Specify name for SFR bit.
;
;  L - Label		Generate a label for this address.
;
;  M - Memory		Generate a label for bit addressable memory.
;
;  P - Patch		Add inline code (macro, for example)
;
;  R - Register		Specify name for register
;			(instead of rb2r5 for example).
;
;  S - Symbol		Generate a symbol for this value.
;
;  T - Text		ASCII text (db).
;
;  W - Word binary	Sixteen bit binary data (dw).
;
;  X - Operand name	Specify special name for operand.
;
;  # - Comment		Add header comment to output file.
;
;  ! - Inline comment	Add comment to end of line.
;
; example labels:
;
l 0000	start
l 0006	main
l 0016	loop
l 0024	subrtn
l 002a	vectbl
l 002e	message
;
; example symbol:
;
s 12	counter
;
; example ascii text:
;
t 002e-003a
;
; example register names:
;
r 10	reg0
r 12	reg2
;
; example SFR name:
;
f e0	accum
;
; example SFR bit name:
;
k e3	abit3
;
; example memory bit name:
;
m 20	membit
;
; example operand name:
;
x 004a	five
;
; example header comments:
;
# 0024	This is a subroutine.\n
# 002e	't' directive for ascii text\n
# 003b	\nData - 'b' and 'w' directives\n
# 003f
;
; example inline comments:
;
! 0007	note sfr bit def only affects indirect addressing
! 001d	do the loop
! 0024	do nothing routine
! 0025	these nops would not be disassembled
! 0026	without the 'c' directive
! 003b	binary data
! 003f	word data
# 0049	would get junk from 45h to 48h if not for the 'i' directive\n
! 0049	example of operand name 'x' directive
! 004b	'm' bit addressable memory directive
;
; example address table:
;
a 002a-002d
;
; example force disassembly of code (nops):
;
c 0025-0029
;
; example code to ignore:
;
i 0045-0048
;
; example binary data:
;
b 003b-003e
;
; example word data:
;
w 003f-0044
;
; example patch code:
;
p 0003		include "myfile.inc"\n;
;
; end of control file
;