只记录一些我认为比较必要,容易出错的地方。(不断更新中) 内存:分为四段,代码段code segment,数据段data segment,栈stack, 堆heap。记住如下图 数据类型: 1.java整形常量默认为int类型,当使用long类型时,因此需要添加“l”或“L”,...
分类:
编程语言 时间:
2014-08-18 00:03:53
阅读次数:
229
;10.12assume cs:code,ds:datadata segment db 'word',0 db 'unix',0 db 'wind',0 db 'good',0data endscode segmentstart : ...
分类:
其他好文 时间:
2014-08-17 21:14:22
阅读次数:
179
1 ;实验九 2 assume cs:code,ds:data 3 data segment 4 db 'welcome to masm!' 5 data ends 6 7 code segment 8 start : 9 mov ax,data1...
分类:
其他好文 时间:
2014-08-17 21:10:12
阅读次数:
223
初次使用masmplus 其中在 codesg segment 使用了 start 标记, 并在end处标明了:end start 但是默认的masmplus 会提示 start 为 不认识的 external symbol,如下图 那怎么办, 原来是连接器不同造成的, 这里如果使用了类似的star...
分类:
其他好文 时间:
2014-08-17 18:21:52
阅读次数:
186
网络数据包的封包与拆包
过程如下:
将数据从一台计算机通过一定的路径发送到另一台计算机。应用层数据通过协议栈发到网络上时,每层协议都要加上一个数据首部(header),称为封装(Encapsulation),如下图所示:
不同的协议层对数据包有不同的称谓,在传输层叫做段(segment),在网络层叫做数据包(packet),在链路层叫做帧(frame)。数据封装成帧后发到传输介质...
分类:
系统相关 时间:
2014-08-17 11:47:12
阅读次数:
560
Description
There are two rows of positive integer numbers. We can draw one line segment between any two equal numbers, with values r, if one of them is located in the first row and the other one i...
分类:
其他好文 时间:
2014-08-16 23:52:01
阅读次数:
560
题目链接题意 : 如果两个线段相交就属于同一集合,查询某条线段所属集合有多少线段,输出。思路 : 先判断与其他线段是否相交,然后合并。 1 //1558 2 #include 3 #include 4 #include 5 #include 6 #define eps 1e-8 ...
分类:
其他好文 时间:
2014-08-15 17:30:29
阅读次数:
172
select sum(bytes) from dba_segments,等待时间0: waiting for 'gc cr request'...
分类:
数据库 时间:
2014-08-15 16:01:09
阅读次数:
456
题意很简单了,对一个区间有两种操作:
1. "C A B C" Color the board from segment A to segment B with color C.
//A~B涂上颜色C
2. "P A B" Output the number of different colors painted between segment A and segment B (includ...
分类:
其他好文 时间:
2014-08-15 14:39:58
阅读次数:
292
Description
You are given circular array a0,?a1,?...,?an?-?1.
There are two types of operations with it:
inc(lf,?rg,?v) — this operation increases each element on the segment
[lf,?rg] (inclu...
分类:
其他好文 时间:
2014-08-15 00:01:56
阅读次数:
327