欢迎来到天天文库
浏览记录
ID:50150533
大小:328.50 KB
页数:97页
时间:2020-03-07
《计算机组成原理_MIPS学习材(自己下载的).pdf》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、MIPSAssemblyLanguageProgrammingCS50DiscussionandProjectBookDanielJ.EllardSeptember,1994Contents1DataRepresentation11.1RepresentingIntegers...........................11.1.1UnsignedBinaryNumbers....................11.1.1.1ConversionofBinarytoDecimal...........21.1.1
2、.2ConversionofDecimaltoBinary...........41.1.1.3AdditionofUnsignedBinaryNumbers........41.1.2SignedBinaryNumbers.....................61.1.2.1AdditionandSubtractionofSignedBinaryNumbers81.1.2.2ShiftingSignedBinaryNumbers...........91.1.2.3HexadecimalNotation.......
3、..........91.2RepresentingCharacters.........................101.3RepresentingPrograms..........................111.4MemoryOrganization..........................121.4.1UnitsofMemory.........................131.4.1.1HistoricalPerspective.................131.4.2Addr
4、essesandPointers......................131.4.3Summary.............................141.5Exercises..................................151.5.1...................................151.5.2...................................151.5.3...................................152MIPSTu
5、torial172.1WhatisAssemblyLanguage?......................172.2GettingStarted:add.asm........................182.2.1Commenting............................182.2.2FindingtheRightInstructions..................19iiiCONTENTS2.2.3CompletingtheProgram.....................2
6、02.2.3.1Labelsandmain....................202.2.3.2Syscalls.........................222.3UsingSPIM................................232.4Usingsyscall:add2.asm........................242.4.1ReadingandPrintingIntegers..................252.5Strings:thehelloProgram......
7、.................262.6ConditionalExecution:thelargerProgram..............282.7Looping:themultiplesProgram....................312.8Loads:thepalindrome.asmProgram..................332.9TheatoiProgram............................362.9.1atoi-1..........................
8、.....362.9.2atoi-2...............................382.9.3atoi-3...............................392.9.4atoi-4...............................392.10Exercises
此文档下载收益归作者所有