mirror of
https://github.com/Museum-of-Art-and-Digital-Entertainment/macross.git
synced 2025-02-19 15:30:36 +00:00
updated write_6502.itr to work with heirloom troff; generated ps and pdf versions.
This commit is contained in:
parent
4cc8c97be5
commit
89c2200a90
@ -11,9 +11,9 @@ by
|
|||||||
Chip Morningstar
|
Chip Morningstar
|
||||||
.AI
|
.AI
|
||||||
Lucasfilm Ltd. Games Division
|
Lucasfilm Ltd. Games Division
|
||||||
\\*(Da
|
\*(Da
|
||||||
.ds LH Macross
|
.ds LH Macross
|
||||||
.ds CH \\*(Da
|
.ds CH \*(Da
|
||||||
.ds RH 6502 Version
|
.ds RH 6502 Version
|
||||||
.ds LF Lucasfilm Ltd. Proprietary Information
|
.ds LF Lucasfilm Ltd. Proprietary Information
|
||||||
.ds CF - % -
|
.ds CF - % -
|
||||||
@ -1923,37 +1923,43 @@ the end of the string is returned, if \fIstartPos\fR is positive, or to the
|
|||||||
beginning of the string, if \fIstartPos\fR is negative. If any of the indices
|
beginning of the string, if \fIstartPos\fR is negative. If any of the indices
|
||||||
cause the substring bounds to go off the end of \fIstring\fR an error results.
|
cause the substring bounds to go off the end of \fIstring\fR an error results.
|
||||||
For example,
|
For example,
|
||||||
|
.LP
|
||||||
.nf
|
.nf
|
||||||
\fCsubstr("hello there", 6, 3)\fR yields \fC"the"\fR
|
\fCsubstr("hello there", 6, 3)\fR yields \fC"the"\fR
|
||||||
\fCsubstr("hello there", -8, 2)\fR yields \fC"lo"\fR
|
\fCsubstr("hello there", -8, 2)\fR yields \fC"lo"\fR
|
||||||
\fCsubstr("hello there", 6, -3)\fR yields \fC"o t"\fR
|
\fCsubstr("hello there", 6, -3)\fR yields \fC"o t"\fR
|
||||||
\fCsubstr("hello there", -8, -4)\fR yields \fC"hell"\fR
|
\fCsubstr("hello there", -8, -4)\fR yields \fC"hell"\fR
|
||||||
\fCsubstr("hello there", 6)\fR yields \fC"there"\fR
|
\fCsubstr("hello there", 6)\fR yields \fC"there"\fR
|
||||||
\fCsubstr("hello there", -7)\fR yields \fC"hello"\fR
|
\fCsubstr("hello there", -7)\fR yields \fC"hello"\fR
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
\fCsymbolDefine(\fIstring\fR \*[ \fC, \fIvalue\fR \*] \fC)\fR
|
\fCsymbolDefine(\fIstring\fR \*[ \fC, \fIvalue\fR \*] \fC)\fR
|
||||||
.IP
|
.IP
|
||||||
Defines the symbol named by \fIstring\fP (with optional value \fIvalue\fP) as
|
Defines the symbol named by \fIstring\fP (with optional value \fIvalue\fP) as
|
||||||
if it had been defined with a \fCdefine\fR statement. For example:
|
if it had been defined with a \fCdefine\fR statement. For example:
|
||||||
|
.LP
|
||||||
.nf
|
.nf
|
||||||
\fCsymbolDefine(strcat("foon", "farm"), 47)\fR
|
\fCsymbolDefine(strcat("foon", "farm"), 47)\fR
|
||||||
.fi
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
.nf
|
|
||||||
\fCdefine foonfarm = 47\fR
|
\fCdefine foonfarm = 47\fR
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
\fCsymbolLookup(\fIstring\fC)\fR
|
\fCsymbolLookup(\fIstring\fC)\fR
|
||||||
.IP
|
.IP
|
||||||
A call to this function with a string operand is equivalent to a reference to
|
A call to this function with a string operand is equivalent to a reference to
|
||||||
the symbol that the string represents. For example,
|
the symbol that the string represents. For example,
|
||||||
|
.LP
|
||||||
.nf
|
.nf
|
||||||
\fCand symbolLookup("foo")\fR
|
\fCand symbolLookup("foo")\fR
|
||||||
.fi
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
.nf
|
|
||||||
\fCand foo\fR
|
\fCand foo\fR
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
\fCsymbolName(\fIsymbol\fC)\fR
|
\fCsymbolName(\fIsymbol\fC)\fR
|
||||||
@ -1961,12 +1967,14 @@ is equivalent to
|
|||||||
Returns a string which is the name of the symbol \fIsymbol\fR. For example,
|
Returns a string which is the name of the symbol \fIsymbol\fR. For example,
|
||||||
\fCsymbolName(foo)\fR would return \fC"foo"\fR. This can be used in
|
\fCsymbolName(foo)\fR would return \fC"foo"\fR. This can be used in
|
||||||
conjunction with the \fCsymbolLookup\fR function so that the following:
|
conjunction with the \fCsymbolLookup\fR function so that the following:
|
||||||
|
.LP
|
||||||
.nf
|
.nf
|
||||||
\fCand symbolLookup(strcat(symbolName(foo), "bar"))\fR
|
\fCand symbolLookup(strcat(symbolName(foo), "bar"))\fR
|
||||||
.fi
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
.nf
|
|
||||||
\fCand foobar\fR
|
\fCand foobar\fR
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
\fCsymbolUsage(\fIsymbol\fC)\fR
|
\fCsymbolUsage(\fIsymbol\fC)\fR
|
||||||
|
BIN
doc/writeup_6502.pdf
Normal file
BIN
doc/writeup_6502.pdf
Normal file
Binary file not shown.
10058
doc/writeup_6502.ps
Normal file
10058
doc/writeup_6502.ps
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user