提交 eeae6657 创建 作者: 赵鹏翀's avatar 赵鹏翀

init template

上级
/Debug
/Release
\ No newline at end of file
<?xml version="1.0" encoding="gb2312"?>
<ASMProject Version="1.00" Name="Demo016" TemplatePath="console(c)\Project" ProjectID="7088c82b-ed7a-4e5c-8bba-9d929491f7ac" IsSubmitWork="0">
<Configurations>
<Configuration Name="Debug" DebuggerFlavor="0">
<Tool Name="PreBuildEventTool"/>
<Tool Name="CustomBuildTool"/>
<Tool Name="GCCCompilerTool" PreprocessorDefinitions="_DEBUG" GenerateDebugInformation="-1" LanguageStandard="c99"/>
<Tool Name="PreLinkEventTool"/>
<Tool Name="GCCLinkerTool"/>
<Tool Name="PostBuildEventTool"/>
</Configuration>
<Configuration Name="Release" DebuggerFlavor="0">
<Tool Name="PreBuildEventTool"/>
<Tool Name="CustomBuildTool"/>
<Tool Name="GCCCompilerTool" PreprocessorDefinitions="NDEBUG" LanguageStandard="c99"/>
<Tool Name="PreLinkEventTool"/>
<Tool Name="GCCLinkerTool" StripDebugInfo="-1"/>
<Tool Name="PostBuildEventTool"/>
</Configuration>
</Configurations>
<Files>
<Filter Name="ͷļ" Filter="h;hpp;hxx">
<File RelativePath=".\console.h">
</File>
</Filter>
<Filter Name="Դļ" Filter="cpp;c;cc;cxx">
<File RelativePath=".\asm.s">
</File>
<File RelativePath=".\console.c">
</File>
</Filter>
</Files>
</ASMProject>
添加文件
.globl _asmfun
_asmfun:
sub %al, %al #OF=0,SF=0,ZF=1,PF=1,CF=0
mov $0x10, %al #OF=0,SF=0,ZF=1,PF=1,CF=0
add $0x90, %al #OF=0,SF=1,ZF=0,PF=1,CF=0
mov $0x80, %al #OF=0,SF=1,ZF=0,PF=1,CF=0
add $0x80, %al #OF=1,SF=0,ZF=1,PF=1,CF=1
mov $0xfc, %al #OF=1,SF=0,ZF=1,PF=1,CF=1
add $0x5, %al #OF=0,SF=0,ZF=0,PF=0,CF=1
mov $0x7d, %al #OF=0,SF=0,ZF=0,PF=0,CF=1
add $0xb, %al #OF=1,SF=1,ZF=0,PF=1,CF=0
ret #򷵻
\ No newline at end of file
#include "console.h"
unsigned long asmfun(); // asmfun()
int main()
{
asmfun(); // úasmfun()
}
#ifndef _CONSOLE_H_
#define _CONSOLE_H_
#include <stdio.h>
/* TODO: 在此处引用程序需要的其他头文件 */
#endif /* _CONSOLE_H_ */
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论