搜索资源列表
闰年计算
- data segment ;定义数据段 infon db 0dh,0ah,'Please input a year: $' Y db 0dh,0ah,'This is a leap year! $' N db 0dh,0ah,'This is not a leap year! $' w dw
C51
- /*这是我用C语言编的第一个程序,编译通过,下载到单片机里能够正常运行,我非常高兴,对我来说有纪念价值*/ -#include <reg51f.h> #include <intrins.h> #include <math.h> sbit P2_0=P2^0 bit FLAG=0 char m,ptr=0 static const char tab[16]={0x01,0x02,0x03,0x0c,
2-n-power
- 汇编 求2的n次方 include irvine32.inc IsZero proto ,address: ptr dword ,kind:dword 判断正数还是负数还是0 Negation proto ,address: ptr dword ,kind:dword 求相反数 .data str1 byte "请输入16进制的96位整数的低32位(8个):",0 str2 byte "请输入16进制的96位整数的中32位(8个):",0 str3 byte "请输入
Fibonacci-Sequence
- 汇编 菲波那契数列 include irvine32.inc 原理:f3=f2+f1 .data str1 byte "请输入所求的菲波那契数列的位数:",0 str2 byte "此程序中菲波那契数列最大位置:",0 j dword 2 求最大位置 f1 dword 1,0,0 用3个32位表示一个96位 f2 dword 1,0,0 用3个32位表示一个96位 m dword ? .code main proc mov
找CALL的源頭 HOOK的點
- 找CALL的源頭 HOOK的點 假如是CALL PTR 形式的點就必須用4byte搜尋
hex2str
- this an hext2tsring algortym _hex_to_string proc mov ecx, 8 _loop1: movzx eax, byte ptr [esi] mov ebx,eax and eax,15 cmp eax, 9 jg _jg1 add eax,30h jmp _jmp1 _jg1: add eax,37h _jmp1: shr ebx,4 cmp ebx, 9 jg _jg2 add
