我幫你用google找好了
快交給老師吧~
aigisx wrote:
ADRR0, Value @ Get address of variable Value.R0:_仙境傳說RO_
LDRBR1, [R0] @ Load the low byte value of 16-bit variable Value.R1:_DCView 數位視野-- 10.3MP CMOS的SONY R1_
ADRR2, Result @ Get address of variable Result.R2:_R2【Reign of Revolution】_
STRBR1, [R2] @ Store the value to low byte position of variable Result.R1:_DCView 數位視野-- 10.3MP CMOS的SONY R1_
LDRBR1, [R0,#1] @ Load the high byte value of 16-bit variable Value.R1:_DCView 數位視野-- 10.3MP CMOS的SONY R1_
STRBR1, [R2,#1] @ Store the value to high byte position of variable Result. R1:_DCView 數位視野-- 10.3MP CMOS的SONY R1_ R2:_R2【Reign of Revolution】_
hold:
BALstart @ Program end
Value:
.word0xC123 @ Value to be moved
.ALIGN @ Need to do this because working with 16bit value
Result:
.word0x0 @ Storage space
.end
求R0.R1.R2
好了~
快交給老師吧~
不用謝我了~
