汇编语言(Assembly)
文章平均质量分 87
N拳超人
美国富士康
展开
-
汇编语言的简单入门--Loop and output,input
程序的目的:将13个随机数[0-100)存储在数组里面,翻转,输出。TITLE Write a programINCLUDE Irvien32.inc.dataARRAY_SIZE = 13RAND_MAX = 100HALF_ARRAY_SIZE = ARRAY_SIZE/2rands DWORD ARRAY_SIZE dup(0).codemainPROC原创 2013-10-01 00:07:29 · 4558 阅读 · 0 评论 -
汇编语言的简单入门--斐波那契数列(非递归)
根据函数F(0)=0;F(1) = 1;F(n) = F(n-2) + F(n-1); TITLE Save an array and dispalyINCLUDE Irvine32.inc.dataarray DWORD 12 DUP (?) ; define a array for saving Fibonacci numbersstep = type array原创 2013-10-03 04:15:16 · 10940 阅读 · 0 评论 -
汇编语言的简答入门--斐波那契数列(递归)
TITLE Save an array and dispalyINCLUDE Irvine32.inc.dataarray DWORD 12 DUP (?) ; define a array for saving Fibonacci numbersstep = type arraynum DWORD ?count DWORD ?prompt byte "The first原创 2013-10-08 05:25:45 · 9098 阅读 · 0 评论 -
汇编语言--运用迭代和递归的方式按照要求输出
write a program to print square matrices of ‘x’. The printing job starts with the left-most corner and proceeds in a spiral way. The program should be paused for 10 milliseconds between printing each原创 2013-10-15 22:05:40 · 1696 阅读 · 0 评论 -
汇编--实现二分法和划分法
include irvine32.inc.dataarray DWORD 2,6,12,17,24,29,53,64,80,91 ;Define an array array1 DWORD 51,3,34,6,5,1,31,19,72,48step DWORD TYPE array ;this is stepkey BYTE 12pivot BYTE 30 ;Keyprompt BYTE "The原创 2013-10-29 21:45:28 · 1859 阅读 · 0 评论 -
汇编常见错误----合集(转)
segment exceeds 64K limit 区段超过64K限制invalid type for a data declaration 数据声明了一个无效的类型HIGH and LOW require immediate operands转载 2013-11-23 02:22:13 · 4578 阅读 · 0 评论