📄 read_a9.asm
字号:
;******************************************************************************
; TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
;
; Property of Texas Instruments
; For Unrestricted Internal Use Only
; Unauthorized reproduction and/or distribution is strictly prohibited.
; This product is protected under copyright law and trade secret law
; as an unpublished work.
;
; Created 1999, (C) Copyright 1999 Texas Instruments. All rights reserved.
;
;
; Filename : read_a9.asm
;
; Description : Read word, half word and byte from memory
;
; Project : Perseus
;
; Author : Sebastien Sabatier
;
;*******************************************************************************
.state16 ; thumb mode
;.ref edata ;defined by armas
.global $r_32_a9
.global $r_16_a9
.global $r_8_a9
;.ref etext
;
; Read a word, half word and byte
;
; Data is written to the address given in argument.
;
; Input : R0 = address
;
; Output : R0 = data
;
$r_32_a9:
push {lr}
ldr r0, [r0]
pop {pc} ; Return to caller
$r_16_a9:
push {lr}
ldrh r0, [r0]
pop {pc} ; Return to caller
$r_8_a9:
push {lr}
ldrb r0, [r0]
pop {pc} ; Return to caller
.end ; Terminate assembly
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -