該程序模擬UNIX中save與resume函數(shù),并介紹在VC中如何使用匯編進(jìn)行機(jī)器級的操作. 主函數(shù)很簡單首先引入兩個外部函數(shù),extern "C"表示按傳統(tǒng)C命名習(xí)慣.函數(shù)save將程序指針保存在(*s)中并返回0,為什么有 if(save(&sp)){...} if后的語句看起來永遠(yuǎn)都不會被執(zhí)行,但是運行結(jié)果表明它被執(zhí)行了.這個問題同UNIX中處理機(jī)調(diào)度函數(shù)(switch)的那個if語句(第一句)一樣. 程序執(zhí)行完save(&sp)后得到因為條件為假而執(zhí)行else語句,卻在判斷之前將程序指針保存在sp中了. else語句中的resume(&sp),該函數(shù)很狡猾將堆棧中的返回地址改變了,改到了sp所指出,即將程序指針改到了執(zhí)行條件判斷前.resume返回1,條件滿足,執(zhí)行if語句. save函數(shù)堆棧: eip ebp+8 s ebp+4 ebp ebp+0 resume函數(shù)堆棧與save的相同. 新建一個win32的工程,將unixc.cpp和unix.obj加入過程即可. unix.obj是用masm6.11生成的:ml /c /coff unix.asm,生成coff格式的obj而不是omf格式.
標(biāo)簽: save resume extern 函數(shù)
上傳時間: 2015-09-10
上傳用戶:變形金剛
This source code is about the basic sorting algorithm implemented in C#. The algorithms included are Bubble Sort, Insertion Sort, Selection Sort. User can trace how s the sorting algorithm works.
標(biāo)簽: implemented algorithms algorithm included
上傳時間: 2013-12-25
上傳用戶:woshiayin
About WepDecrypt: Wepdecrypt is a Wireless LAN Tool written in c which guesses WEP Keys based on a active dictionary attack, key generator, distributed network attack and some other methods, it s based on wepattack and GPL licensed. WepDecrypt highlights: - Implemented packet filters. - Only one crypted packet is enough to start cracking - Has its own key generator. - Can crack a dumpfile over a network. - Can act as a server and client. - Also works in windows. - Has an fltk gui.
標(biāo)簽: WepDecrypt Wepdecrypt Wireless guesses
上傳時間: 2013-12-25
上傳用戶:6546544
CCS編程環(huán)境 使用的是匯編加C的混合編程方法: The programme of the Correlation Algorithm. Using INT2 to get the input signal. Array x, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array y, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array cor is the Correlation result, the length is 255, 32-bit floating point.
標(biāo)簽: Correlation Algorithm programme the
上傳時間: 2013-12-21
上傳用戶:leixinzhuo
palm編成,這種書很少,有興趣看看 Title: Palm Programming: The Developer s Guide URL: http://safari.oreilly.com/JVXSL.asp?x=1&mode=section&sortKey=rank&sortOrder=desc&view=book&xmlid=1-56592-525-4&open=false&srchText=palm+programming&code=&h=&m=&l=1&catid=&s=1&b=1&f=1&t=1&c=1&u=1&page=0 ISBN: 1-56592-525-4 Author: Julie McKeehan/ Neil Rhodes Publisher: O Reilly Page: 478 Edition: 1st edition (December 1998) Catalog: PDA programming / Palm Format: pdf Size: 2.06M Supplier: Summary: Emerging as the bestselling hand-held computers of all time, PalmPilots have spawned intense developer activity and a fanatical following. Used by Palm in their developer training, this tutorial-style book shows intermediate to experienced C programmers how to build a Palm application from the ground up. Includes a CD-ROM with source code and third-party developer tools
標(biāo)簽: Programming Developer oreilly safari
上傳時間: 2013-12-10
上傳用戶:litianchu
C\C語言庫函數(shù) (S類字母)
上傳時間: 2014-08-18
上傳用戶:498732662
E:\VISUAL C++MFC擴(kuò)展編程實例 實例35 添加幫助菜單項,在本例中將向應(yīng)用程序中的H e l p菜單中添加C o n t e n t s和S e a r c h 菜單項。
標(biāo)簽: VISUAL MFC 擴(kuò)展 編程實例
上傳時間: 2014-01-09
上傳用戶:541657925
代入法的啟發(fā)示搜索 我的代碼實現(xiàn)是:按照自然語言各字母出現(xiàn)頻率的大小從高到低(已經(jīng)有人作國統(tǒng)計分析了)先生成一張字母出現(xiàn)頻率統(tǒng)計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統(tǒng)計表(B),通過兩張表的對應(yīng)關(guān)系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關(guān)鍵。
上傳時間: 2015-10-24
上傳用戶:wanqunsheng
% 信道容量C的迭代算法 % % 函數(shù)說明: % % [CC,Paa]=ChannelCap(P,k) 為信道容量函數(shù) % % 變量說明: % % P:輸入的正向轉(zhuǎn)移概率矩陣,k:迭代計算精度 % % CC:最佳信道容量,Paa:最佳輸入概率矩陣 % % Pa:初始輸入概率矩陣,Pba:正向轉(zhuǎn)移概率矩陣 % % Pb:輸出概率矩陣 % % C:初始信道容量, r:輸入符號數(shù),s:輸出符號數(shù) %
標(biāo)簽: ChannelCap Paa 信道容量 函數(shù)
上傳時間: 2014-01-08
上傳用戶:zhenyushaw
ASP.NET C#編寫網(wǎng)站的教程,使用B/S架構(gòu),對開始接觸asp.net的人很有幫助
上傳時間: 2015-11-06
上傳用戶:sdq_123
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1