文件名称:phone
介绍说明--下载内容均来自于网络,请自行研究使用
在本次试验中需要注意基址寄存器BX的移动方法,对以字为单位的数组,BX的移动方式
是每移动一次加2或者减2
另外函数调用的过程中需要小心PUSH和pop的调用是否安全,例如在name_sort中pop CX的
时候没有先Push CX,导致了name_sort函数不可以调用
此程序使用比较高效的方法只是对号码单的首地址进行排序,为此开辟了一个地址数组
AdTable,类似C语言中的指针数组
在每个名字的前面存有每个名字的长度,有利于对名字进行比较,体现了空间换时间-In this trial need to pay attention to base address register BX mobile methods, to the word as a unit of the array, BX mobile is mobile once every 2 or minus 2 plus another function call the process requires careful PUSH and call it pop security, for example, in name_sort in a time when pop CX without first Push CX, led name_sort function can not call this procedure the use of efficient methods of comparison only the first address of a single number to sort this opened up an address array AdTable, similar to C Language pointer array in front of each name there is the length of each name is beneficial to compare the name reflects the space for time
是每移动一次加2或者减2
另外函数调用的过程中需要小心PUSH和pop的调用是否安全,例如在name_sort中pop CX的
时候没有先Push CX,导致了name_sort函数不可以调用
此程序使用比较高效的方法只是对号码单的首地址进行排序,为此开辟了一个地址数组
AdTable,类似C语言中的指针数组
在每个名字的前面存有每个名字的长度,有利于对名字进行比较,体现了空间换时间-In this trial need to pay attention to base address register BX mobile methods, to the word as a unit of the array, BX mobile is mobile once every 2 or minus 2 plus another function call the process requires careful PUSH and call it pop security, for example, in name_sort in a time when pop CX without first Push CX, led name_sort function can not call this procedure the use of efficient methods of comparison only the first address of a single number to sort this opened up an address array AdTable, similar to C Language pointer array in front of each name there is the length of each name is beneficial to compare the name reflects the space for time
(系统自动生成,下载前可以参看下载内容)
下载文件列表
phone.asm