Loading...
Please wait, while we are loading the content...
Similar Documents
Constants and Literal Pools
| Content Provider | Scilit |
|---|---|
| Author | Hohl, William Hinds, Christopher |
| Copyright Year | 2014 |
| Description | One of the best things about learning assembly language is that you deal directly with hardware, and as a result, learn about computer architecture in a very direct way. It's not absolutely necessary to know how data is transferred along busses, or how instructions make it from an instruction queue into the execution stage of a pipeline, but it is interesting to note why certain instructions are necessary in an instruction set and how certain instructions can be used in more than one way. Instructions for moving data, such as MOV, MVN, MOVW, MOVT, and LDR, will be introduced in this chapter, specifically for loading constants into a register, and while floatingpoint constants will be covered in Chapter 9, we'll also see an example or two of how those values are loaded. The reason we focus so heavily on constants now is because they are a very common requirement. Examining the ARM rotation scheme here also gives us insight into fast arithmetic-a look ahead to Chapter 7. The good news is that a shortcut exists to load constants, and programmers make good use of them. However, for completeness, we will examine what the processor and the assembler are doing to generate these numbers. Book Name: ARM Assembly Language |
| Related Links | https://content.taylorfrancis.com/books/download?dac=C2013-0-24706-0&isbn=9780429162046&doi=10.1201/b17562-10&format=pdf |
| Ending Page | 143 |
| Page Count | 16 |
| Starting Page | 128 |
| DOI | 10.1201/b17562-10 |
| Language | English |
| Publisher | Informa UK Limited |
| Publisher Date | 2014-10-20 |
| Access Restriction | Open |
| Subject Keyword | Book Name: Arm Assembly Language Language Studies Instruction Set Good Make Chapter Common Requirement Loaded Loading Constants Instructions Are Necessary |
| Content Type | Text |
| Resource Type | Chapter |