汇编语言
文章平均质量分 56
漫步人生路1
这个作者很懒,什么都没留下…
展开
-
8086汇编语言实现快速排序算法
.model small.stack.dataarray db 12,45,13,9,45,48,68,32,5,11count equ $-array.code.startupmov ax,countsub ax,1xor dx,dxmov bx,offset arraycall qsortmov cx,countagain:xor ax,原创 2014-11-04 20:51:48 · 8783 阅读 · 4 评论 -
C++之引用揭秘
测试代码#include #include using namespace std;void fun(int &b){ int a = b; cout }int main(){ int a = 8; fun(a); return 0;}第二条汇编指令将8这个值存储到变量a在栈中的空间。第三原创 2015-11-30 16:57:19 · 489 阅读 · 0 评论 -
从汇编代码看程序内存分布
力求内容精简,以图会意 如下为代码:#include <iostream>using namespace std;int fun(int a,int b){ int sum = a + b; return sum;}int main(){ int a = 2, b = 3; fun(a,b); return 0;}以下为汇编代码(main函数):原创 2016-10-14 11:32:12 · 4148 阅读 · 0 评论