blob: 5f531f735ba140cba5bbe4ff994723d8def41b18 (
plain)
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
|
';redcode' Comment.Single
'\n' Text.Whitespace
';name Dwarf' Comment.Single
'\n' Text.Whitespace
';author A. K. Dewdney' Comment.Single
'\n' Text.Whitespace
';version 94.1' Comment.Single
'\n' Text.Whitespace
';date April 29, 1993' Comment.Single
'\n' Text.Whitespace
';strategy Bombs every fourth instruction.' Comment.Single
'\n ' Text.Whitespace
'ORG' Name.Function
' ' Text.Whitespace
'start' Name
' ' Text.Whitespace
'; Indicates the instruction with' Comment.Single
'\n ' Text.Whitespace
'; the label "start" should be the' Comment.Single
'\n ' Text.Whitespace
'; first to execute.' Comment.Single
'\n' Text.Whitespace
'step' Name
' ' Text.Whitespace
'EQU' Name.Function
' ' Text.Whitespace
'4' Literal.Number.Integer
' ' Text.Whitespace
'; Replaces all occurrences of "step"' Comment.Single
'\n ' Text.Whitespace
'; with the character "4".' Comment.Single
'\n' Text.Whitespace
'target' Name
' ' Text.Whitespace
'DAT' Name.Function
'.' Punctuation
'F' Name.Decorator
' ' Text.Whitespace
'#' Operator
'0' Literal.Number.Integer
',' Punctuation
' ' Text.Whitespace
'#' Operator
'0' Literal.Number.Integer
' ' Text.Whitespace
'; Pointer to target instruction.' Comment.Single
'\n' Text.Whitespace
'start' Name
' ' Text.Whitespace
'ADD' Name.Function
'.' Punctuation
'AB' Name.Decorator
' ' Text.Whitespace
'#' Operator
'step' Name
',' Punctuation
' ' Text.Whitespace
'target' Name
' ' Text.Whitespace
'; Increments pointer by step.' Comment.Single
'\n ' Text.Whitespace
'MOV' Name.Function
'.' Punctuation
'AB' Name.Decorator
' ' Text.Whitespace
'#' Operator
'0' Literal.Number.Integer
',' Punctuation
' ' Text.Whitespace
'@' Operator
'target' Name
' ' Text.Whitespace
'; Bombs target instruction.' Comment.Single
'\n ' Text.Whitespace
'JMP' Name.Function
'.' Punctuation
'A' Name.Decorator
' ' Text.Whitespace
'start' Name
' ' Text.Whitespace
'; Same as JMP.A -2. Loops back to' Comment.Single
'\n ' Text.Whitespace
'; the instruction labelled "start".' Comment.Single
'\n ' Text.Whitespace
'END' Name.Function
'\n' Text.Whitespace
|