关闭

在裸机上在bios中断向量表中,汇编设置增加中断服务程序(向量地址设置三种方式)

bits 16 cpu 8086 %macro PutChar 2 ;必须定义写在使用前面;否则后面编译报错 mov al,%1 mov ah,09h mov bx,000ch mov cx,%2 mov dh,02h mov dl,0h int 10h %endmacro org 07c00h mov ax,cs mov ds,ax mov es,ax...
阅读(39) 评论(0)

win32汇编的segment,子程序,宏定义,局部变量定义test1

.386 .model flat,stdcall option casemap:none includelib user32.lib includelib gdi32.lib includelib kernel32.lib NULL EQU 0 MB_OK EQU 0 %echo mb_ok:MB_OK echo MB_OK MessageBoxA proto stdcall :dwor...
阅读(59) 评论(0)

win32汇编无头文件编译成功

.386 .model flat,stdcall option casemap:none includelib user32.lib includelib gdi32.lib includelib kernel32.lib NULL EQU 0 MB_OK EQU 0 MessageBoxA proto stdcall :dword,:dword,:dword,:dword ExitP...
阅读(52) 评论(0)

汇编关机代码

;$$ - start position bits 16 cpu 8086 org 07c00h mov ax,cs mov ds,ax mov es,ax ;output bootMsg -- first msg mov ax,bootMsg ;input parameter msg mov cx,bootMsgLen ;str length mov dh,00h ;...
阅读(73) 评论(0)

从pc裸机磁盘(第一个扇区以后的扇区)中载入程序数据并运行

;$$ - start position bits 16 cpu 8086 org 07c00h mov ax,cs mov ds,ax mov es,ax ;output bootMsg -- first msg mov ax,bootMsg ;input parameter msg mov cx,bootMsgLen ;str length mov dh,00h ;...
阅读(42) 评论(0)

学习PC裸机汇编输出HelloWorld环境搭建和解决启动镜像问题

OS platform: Windows7 Assembler : nasm,ndisasm Virtual Machine: VitualBox org 07c00h mov ax,cs mov ds,ax mov es,ax call DispStr jmp $ DispStr: mov ax,BootMessage mov bp,ax mov cx,len mov ax...
阅读(52) 评论(0)

我的乘法分析

整型大数值存储: 最大整型 8Byte、64位的long型存储整数最大一般不超过20位,如果计算数据位数多于20,数就会溢出,得到错误的数。如何存储很多位数甚至是无穷位数的整数?用数组存储大数,即数组中每个单元存储0,1,2,3,4,5,6,7,8,9其中的某个数,数组单元中的数排成一定的次序,也可以表示一个数。 ...
阅读(40) 评论(0)

linux asm(nasm) output strings

section .text global main main: mov eax,4 mov ebx,1 mov ecx,msg mov edx,len int 80h mov eax,1 int 80h msg: db "hello world!it's too long!/n","$",'\r\n\t',0,'12345',len len equ $-msg nasm -f e...
阅读(48) 评论(0)

nasm汇编程序例程got

section .text extern _MessageBoxA@16 %if __NASM_VERSION_ID__ >= 0x02030000 safeseh handler ; register handler as "safe handler" %endif handler: push DWORD 1 ; MB_OKCANCEL push DWORD caption push D...
阅读(52) 评论(0)

linux apache2 编译problems

apache2 depends : apr , apr-util ,so compiling apr and apr-util first successively. compiling apr-util and apr-iconv with parameter: --with-apr=/usr/local/apr like this: ./configure --with-apr=/usr...
阅读(56) 评论(0)

Ubuntu Qt5.6.2 ld -lGL Error solution

first command: locate libGL then create a link : sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so if your Ubuntu doesn't has libGL , you must apt-get install ... them...
阅读(43) 评论(0)

Ubuntu uninstalling software completely(include purge configuration and files)

reference: my problems and solution: don't clearly completely unintall jdk! (even though rmove all files of jdk,there are also some leaks) so,entirely clear these: this is clear co...
阅读(34) 评论(0)

windows android直接手动编译JNI successfully ever(long long ago)(vs 编译器)

D:\programming\java\YourSafe>ndk-build [armeabi] Compile++ thumb: hello <= hello.cpp [armeabi] StaticLibrary : libstdc++.a [armeabi] SharedLibrary : libhello.so [armeabi] Install : libhello.s...
阅读(44) 评论(0)

python 装饰器 code

def log(c): print "define log(c)" print "log input c :",c print "define wrapper(fn)" def wrapper(fn): print "define before_fn()" def before_fn(i): print "ex...
阅读(70) 评论(0)

几个公式(1)

...
阅读(35) 评论(0)

C# WebClient 多文件上传实现

public static void sendRecord2Server(DirectoryInfo di) { DirectoryInfo[] ds = di.GetDirectories(); foreach (DirectoryInfo d in ds) { sendR...
阅读(76) 评论(0)

Read IMAGE_DOS_HEADER from "exe"

#include //#pragma pack(1) typedef struct header{ unsigned char e_magic[2]; unsigned short e_cblp; unsigned short e_cp; unsigned short e_crlc; unsigned short e_cparhdr; unsigned short e_minallo...
阅读(45) 评论(0)

windows xp 不能load "System.Data.SQLite.dll"

1.安装Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) 2.安装.net framework 4.0 (x86) 3.注意编译程序目标平台x864.注意版本号对应关系....
阅读(110) 评论(0)

关于C#WinForm开发的一些心得

1.界面上的UI控件,要更新显示的数据时,最好用BackgroundWorker类和Forms.Timer类去操作. 不这样,控件可能不及时响应和刷新,看不到效果. 2.复杂的,时间长的操作不要用BackgroundWorker类和Forms.Timer类去操作.否则,界面可能失去响应,不能再点击了啊. 3.与界面UI控件无关的操作,可以Threading.Thread类和及其相关的类去处理,这样...
阅读(59) 评论(0)

数据库空表也能查询到一条数据

select sum(inout) as sum from UserTable; 查询空表会有一条数据,只是值为空(不是null)而已...
阅读(72) 评论(0)
411条 共21页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:151753次
    • 积分:4688
    • 等级:
    • 排名:第6465名
    • 原创:314篇
    • 转载:97篇
    • 译文:0篇
    • 评论:18条
    文章分类
    最新评论