![]() ![]() How should we represent data structures in memoryĪssembly language must have the ability to store data structures and access them.Decreasing numeric significance with increasing memory address. Big-endian: Most significant byte first.Increasing numeric significance with increasing memory addresses. Little-endian: Least significant byte first.Should you order them from MSB to LSB, or the other way around? It is used to clarify the problem of storing sequential bytes in memory in a word. strh: Stores the least significant 16 bits of a register.strb: Stores the least significant 8 bits of a register.Sign extension only matters when you move something from a smaller location to a larger one. Note: you don't care about sign extension for stores. ![]() However, since the registers are 32 bits, how do you pad the numbers loaded from ldrh and ldrb? ldrh loads half of a word, or a halfword (16 bits).In LC2k, when you load something, it has to be a word (32 bits). Format: 2 registers and one immediate or register.Offsets can either be postiive or negative.Supports base + displacement, and base + register ISA: From C to Assembly ARM memory instructions ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |