# asm_for_all **Repository Path**: ZandraWoo/asm_for_all ## Basic Information - **Project Name**: asm_for_all - **Description**: 汇编代码集锦 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: http://tieba.baidu.com/p/3741076799 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2015-05-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 本共享库采用GPLV3许可证,请在所有提交代码开头包括许可证,如下: ``` ; This program is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program. If not, see . ``` - 目标:共享一些常用代码块,以及示例代码,代码最好统一格式。为方便索引生成,请在开头注释中说明程序用途,输入输出。 - 库结构:分成share(共享)与“精选集”(暂无)两块,再分别分为template(代码块),与example(示例)。 - 任何用户都可以上传自己的代码到“共享”库中。 管理员责任:对不同用户共享的代码进行走查(code review),对上传者进行修改建议,将上传的归并到精选集中。管理员上传代码也需要其他管理员相同过程处理。 根据代码开头的注释,生成代码索引如下。工具代码请见[projectTools/IndexGenerator](http://git.oschina.net/zhishi/asm_for_all/tree/master/projectTools/IndexGenerator). [ASCII2BCD.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/ASCII2BCD.asm) 下行定义你的CPU MODEL [DOS文本写显存.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/DOS文本写显存.asm) 下行定义你的CPU MODEL [HEX2ASCII.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/HEX2ASCII.asm) [HEX2BCD.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/HEX2BCD.asm) 下行定义你的CPU MODEL [HEXVIEW.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/HEXVIEW.asm) [RDCMOS.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/RDCMOS.asm) 下行定义你的CPU MODEL head 磁头 track 磁道 sector 扇区 Sector of per Track 每磁道扇区数 [三数排序.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/三数排序.asm) 设有3个单字节无符号数存放在BUF开始的缓冲区中,编写一个能将它们从大到小从新排列的程序。 [字数据数组排序.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/字数据数组排序.asm) 设某一数组的长度为N个元素,均为字数据,试编制一个程序使该数组中的数据按照从小到大的次序排列。(要从大到小排序,只需把JBE改为JAE即可) [正负数判断.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/正负数判断.asm) 判断一个数X的正,负数,还是零。(假设是正数,输出+,是负数,输出-,是零,输出This is a zore !) [范围0-16求最小数.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/console/范围0-16求最小数.asm) 求十个数中的最小数,并以十进制输出。(若要求最大的,只要把JC 改为JNC 即可)(仅局限于0---16间的数比较,因为ADD AL,30H只是针对一位的十六进制转换十进制的算法) [HEX2ASCII.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/example/win32/HEX2ASCII.asm) MASMPlus 代码模板 - 控制台程序 [TextOutput.asm](http://git.oschina.net/zhishi/asm_for_all/blob/master/share/template/TextOutput.asm)