1 / 8

ARM – Movimentação de Dados

Referência de memória deve ser uma palavra alinhada com 32 bits, ou uma exceção do tipo “Data Abort ” irá ocorrer. Us e a diretiva ALIGN para forçar o alinhamento. ARM – Movimentação de Dados. Load / Store Byte. Load / Store Meia-Palavra (16 bits).

bly
Download Presentation

ARM – Movimentação de Dados

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Referência de memória deve ser uma palavra alinhada com 32 bits, ou uma exceção do tipo “Data Abort” irá ocorrer. Use a diretiva ALIGN para forçar o alinhamento. ARM – Movimentação de Dados

  2. Load / Store Byte

  3. Load / Store Meia-Palavra (16 bits) • Referência de mem. deveestaralinhada com umameia-palavra

  4. Programa para mover 1 Byte LDR R1, =Value @ R1 <- MEM (Value) LDRB R1,[R1] LDR R2, =Result @ MEM (Result) <- R2 STRB R1, [R2] ... .data .align Value: .byte 11 Result: .byte 0

  5. Movimentação de Dados

  6. Complemento 2 @ Tira o compl. 2 do valor armazenado em Value LDR R2, =Value @ R2 <- =Value LDR R1,[R2] @ R1 <- MEM (R2) MVN R1, R1 @ R1 <- C2 (R1) ADD R1, R1, #1 STR R1,[R2] @ MEM (R2)<- R1 ... .data .align Value: .word 33

  7. Instruções Aritméticas

  8. Somar dois inteiros e armazenar o resultado

More Related