資源描述:
《匯編語言與禪----zen of assembly language》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、Abrash/Zen:Intro/Introduction:PushingtheEnvelopeSoyouwanttobeaPCguru?You'vesetyourselfanambitiousanddifficultgoal,withnoguaranteeofsuccess.There'snosure-firerecipeforbecomingaguru,anymorethanthere'sarecipeforbecomingachessgrandmaster.Thereis,however,onewayyoucangreat
2、lyimproveyourchances:becomeanexpertassemblylanguageprogrammer.Assemblylanguagewon'tbyitselfmakeyouaguru--butwithoutityou'llneverreachyourfullpotentialasaprogrammer.Whyisassemblylanguagesoimportantinthisageofoptimizingcompilersandprogramgenerators?Assemblylanguageisfu
3、ndamentallydifferentfromallotherlanguages,aswe'llseethroughoutTheZenofAssemblyLanguage.AssemblylanguageletsyouuseeverylastresourceofthePCtopushtheperformanceenvelope;onlyinassemblylanguagecanyoupressrightupagainsttheinherentlimitsofthePC.Ifyouaren'tpushingtheenvelope
4、,there'sgenerallynoreasontoprograminassembler.High-levellanguagesarecertainlyeasiertouse,andnowadaysmosthigh-levellanguagesletyougetatthegutsofthePC--displaymemory,DOSfunctions,interruptvectors,andsoon--withouthavingtoresorttoassembler.If,intheotherhand,you'restrivin
5、gforthesortofperformancethatwillgiveyourprogramssnappyinterfacesandcracklingresponsetimes,you'llfindassemblylanguagetobealmostmagical,fornootherlanguageevenapproachesassemblerforsheerspeed.Ofcourse,nooneteststhelimitsofthePCwiththeirfirstassemblerprogram;thattakestim
6、eandpractice.WhilemanyPCprogrammersknowsomethingaboutassembler,fewareexperts.Thetypicalprogrammerhastypedintheassemblercodefromanarticleortwo,Abrash/Zen:Intro/readabookaboutassemblerprogramming,andperhapswrittenafewassemblerprogramsofhisown--butdoesn'tyetfeelthatheha
7、smasteredthelanguage.Ifyoufallintothiscategory,you'vesurelysensedtheremarkablepotentialofassembler,butyou'realsokeenlyawareofhowharditistowritegoodassemblercodeandhowmuchyouhaveyettolearn.Inalllikelihood,you'renotsurehowtosharpenyourassemblerskillsandtakethatlastgian
8、tsteptowardmasteryofyourPC.Thisbookisforyou.WelcometothemostexcitingandesotericaspectoftheIBMPC.TheZenofAssemblyLanguagewillteachyo