资源描述:
《汇编语言与禅----zen of assembly language》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
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