該程序模擬UNIX中save與resume函數,并介紹在VC中如何使用匯編進行機器級的操作. 主函數很簡單首先引入兩個外部函數,extern "C"表示按傳統C命名習慣.函數save將程序指針保存在(*s)中并返回0,為什么有 if(save(&sp)){...} if后的語句看起來永遠都不會被執行,但是運行結果表明它被執行了.這個問題同UNIX中處理機調度函數(switch)的那個if語句(第一句)一樣. 程序執行完save(&sp)后得到因為條件為假而執行else語句,卻在判斷之前將程序指針保存在sp中了. else語句中的resume(&sp),該函數很狡猾將堆棧中的返回地址改變了,改到了sp所指出,即將程序指針改到了執行條件判斷前.resume返回1,條件滿足,執行if語句. save函數堆棧: eip ebp+8 s ebp+4 ebp ebp+0 resume函數堆棧與save的相同. 新建一個win32的工程,將unixc.cpp和unix.obj加入過程即可. unix.obj是用masm6.11生成的:ml /c /coff unix.asm,生成coff格式的obj而不是omf格式.
上傳時間: 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.
標簽: 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.
標簽: WepDecrypt Wepdecrypt Wireless guesses
上傳時間: 2013-12-25
上傳用戶:6546544
CCS編程環境 使用的是匯編加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.
標簽: 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
標簽: Programming Developer oreilly safari
上傳時間: 2013-12-10
上傳用戶:litianchu
C\C語言庫函數 (S類字母)
上傳時間: 2014-08-18
上傳用戶:498732662
E:\VISUAL C++MFC擴展編程實例 實例35 添加幫助菜單項,在本例中將向應用程序中的H e l p菜單中添加C o n t e n t s和S e a r c h 菜單項。
上傳時間: 2014-01-09
上傳用戶:541657925
代入法的啟發示搜索 我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(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) ,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
上傳時間: 2015-10-24
上傳用戶:wanqunsheng
% 信道容量C的迭代算法 % % 函數說明: % % [CC,Paa]=ChannelCap(P,k) 為信道容量函數 % % 變量說明: % % P:輸入的正向轉移概率矩陣,k:迭代計算精度 % % CC:最佳信道容量,Paa:最佳輸入概率矩陣 % % Pa:初始輸入概率矩陣,Pba:正向轉移概率矩陣 % % Pb:輸出概率矩陣 % % C:初始信道容量, r:輸入符號數,s:輸出符號數 %
標簽: ChannelCap Paa 信道容量 函數
上傳時間: 2014-01-08
上傳用戶:zhenyushaw
ASP.NET C#編寫網站的教程,使用B/S架構,對開始接觸asp.net的人很有幫助
上傳時間: 2015-11-06
上傳用戶:sdq_123