📄 mdk_mixasm.texi
字号:
@c -*-texinfo-*-@c This is part of the GNU MDK Reference Manual.@c Copyright (C) 2000, 2001@c Free Software Foundation, Inc.@c See the file mdk.texi for copying conditions.@c $Id: mdk_mixasm.texi,v 1.5 2001/09/26 23:15:55 jao Exp $@node mixasm, mixvm, mixvm.el, Top@comment node-name, next, previous, up@chapter @code{mixasm}, the MIXAL assembler@cindex @code{mixasm}@cindex MIXAL@cindex assemblerMIX programs, as executed by @code{mixvm}, are composed of binaryinstructions loaded into the virtual machine memory as MIXwords. Although you could write your MIX programs directly as a seriesof words in binary format, you have at your disposal a more friendlyassembly language, MIXAL (@pxref{MIXAL}) which is compiled into binaryform by @code{mixasm}, the MIXAL assembler included in @sc{mdk}. In thischapter, you will find a complete description of @code{mixasm} options.@menu* Invoking @code{mixasm}:: @code{mixasm} options@end menu@node Invoking @code{mixasm}, , mixasm, mixasm@comment node-name, next, previous, up@section Invoking @code{mixasm}In its simplest form, @code{mixasm} is invoked with a single argument,which is the name of the MIXAL file to be compiled, e.g.@examplemixasm hello@end example@noindentwill compile either @file{hello} or @file{hello.mixal}, producing abinary file named @file{hello.mix} if no errors are found.In addition, @code{mixasm} can be invoked with the following commandline options (note, that, following GNU's conventions, we provide a longoption name for each available single letter switch):@examplemixasm [-vhulg] [-o OUTPUT_FILE] [--version] [--help] [--usage] [--debug] [--output=OUTPUT_FILE] [--list[=LIST_FILE]] file@end example@noindentThe meaning of these options is as follows:@defopt -v@defoptx --versionPrints version and copyleft information and exits.@end defopt@defopt -h@defoptx --help@defoptx -u@defoptx --usagePrints a summary of available options and exits.@end defopt@defopt -g@defoptx --debugIncludes debugging information in the compiled file, allowing breakpointsetting at source level and symbol table inspection under @code{mixvm}.@end defopt@defopt -o output_file@defoptx --output=output_fileBy default, the given source file @var{file.mixal} is compiled into@var{file.mix}. You can provide a different name for the output fileusing this option.@end defopt@defopt -l@defoptx @w{--list[=list_file]}This option causes @code{mixasm} to produce, in addion to the@file{.mix} file, an ASCII file containing a summary of the compilationresults. The file is named after the MIXAL source file, changing itsextension to @file{.mls} if no argument is provided; otherwise, thelisting file is named according to the argument.@end defopt
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -