nasm汇编语言数组操作示例代码
代码语言:assembly
代码描述:nasm汇编语言数组操作示例代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
section .text global _start ;must be declared for linker (ld) _start: mov eax,3 ;number bytes to be summed mov ebx,0 ;EBX will store the sum mov ecx, x ;ECX will point to the current element to be summed top: add ebx, [ecx] add ecx,1 ;move pointer to next element dec eax ;decrement counter jnz top ;if counter not 0, then loop again done: add ebx, '0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0