ret指令,相当于 pop IP;修改IP的内容,从而实现近转移retf指令,相当于 pop IP pop CS;修改CS和IP的内容,从而实现远转移--------------CPU执行call指令时,进行两步操作:1、将当前的IP或者CS和IP压入栈中;2、转移call指...
分类:
其他好文 时间:
2014-10-10 00:01:57
阅读次数:
309
转载地址:http://www.cnblogs.com/dennisOne?模块化程序设计模块化程序设计汇编语言通过call和ret指令实现了模块化程序设计。可以实现多个相互联系、功能独立的子程序来解决一个复杂的问题。子程序的框架 1 assume cs:code 2 code segment 3 ...
分类:
编程语言 时间:
2014-10-07 13:18:53
阅读次数:
228
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", ret...
分类:
其他好文 时间:
2014-10-06 17:31:39
阅读次数:
251
题目链接:点击打开链接
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;
template
inline bool rd(T &ret) {
char c; int sgn;
if(c=getchar(),c==EO...
分类:
其他好文 时间:
2014-10-06 13:01:34
阅读次数:
181
题目链接:点击打开链接
给定r1,r2
表示2个圆柱体的半径
这两个圆柱体高是正无穷,互相垂直,问相交的最大面积
#include
#include
#include
#include
#define M 410
#define inf 0x3f3f3f3f
const double eps = 1e-8;
template
inline bool rd(T &ret) ...
分类:
其他好文 时间:
2014-10-05 19:47:49
阅读次数:
206
==线代好难
#include
#include
#include
#include
#include
#include
#include
template
inline bool rd(T &ret) {
char c; int sgn;
if(c=getchar(),c==EOF) return 0;
while(c!='-'&&(c'9')...
分类:
其他好文 时间:
2014-10-05 01:27:37
阅读次数:
293
接口文档:app配置接口 client/init请求数据json={"uid":"","sid":"","ver":"1", "request":{}}返回数据{"ret":0, "response":{ "tag_category":{ "中国画":...
分类:
Web程序 时间:
2014-09-28 15:07:12
阅读次数:
615
比如给出数组[5,7,6,9,11,10,8]判断其是否为二叉排序树的后序遍历结果,也就是能不能画出一个二叉排序树使其的后序遍历结果与这个数组相同,若可以返回true,不可以返回false。代码:int is_valid(int *data, int n){ if(data==NULL)ret...
分类:
其他好文 时间:
2014-09-27 12:39:59
阅读次数:
129
#include #include using namespace std;#define LL long longLL gcd(LL a, LL b){ return b ? gcd(b, a % b) : a;}LL polya(LL n){ LL ret = 0; for(L...
分类:
其他好文 时间:
2014-09-25 21:29:07
阅读次数:
219
CALL 指令在实现转移之前, 要将返回地址存入堆栈的, 以便子程可以通过 ret 指令返回到 CALL 指令下面的指令接着运行; jmp 就没用这些事儿, 直接过去就过去了, 以后的执行流程全由那里的说了算. 当然了, 一些特殊的执行流程控制技巧除外.call == ...
分类:
其他好文 时间:
2014-09-23 14:22:54
阅读次数:
126