công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

ST20-C1 bảng dữ liệu(PDF) 39 Page - STMicroelectronics

tên linh kiện ST20-C1
Giải thích chi tiết về linh kiện  Instruction Set Reference Manual
PDF  205 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST20-C1 bảng dữ liệu(HTML) 39 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 35Page - STMicroelectronics ST20-C1 Datasheet HTML 36Page - STMicroelectronics ST20-C1 Datasheet HTML 37Page - STMicroelectronics ST20-C1 Datasheet HTML 38Page - STMicroelectronics ST20-C1 Datasheet HTML 39Page - STMicroelectronics ST20-C1 Datasheet HTML 40Page - STMicroelectronics ST20-C1 Datasheet HTML 41Page - STMicroelectronics ST20-C1 Datasheet HTML 42Page - STMicroelectronics ST20-C1 Datasheet HTML 43Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 205 page
background image
39/205
4 Using ST20-C1 instructions
®
ldc 0;
ldl Xlo; ldl Ylo; addc; stl Zlo;
ldl Xhi; ldl Yhi; addc; stl Zhi
The subscripts ‘lo’ and ‘hi’, used here and in subsequent text, specify the least and
most significant word respectively of the double word variable with which they are
associated.
Subtraction of two double length values,
Y from X giving Z, without overflow signalling
is compiled as
ldc 0;
ldl Xlo; ldl Ylo; subc; stl Zlo;
ldl Xhi; ldl Yhi; subc; stl Zhi
Overflow signalling for signed arithmetic may be added by performing an extra
addc or
subc to produce a final w ord which contains only a sign (0 for positive or -1 for
negative) unless an overflow has occurred. For example, the following code could be
used to perform double length signed addition with overflow signalling:
clear carry, overflow and underflow status bits
ld Xlo; ld Ylo; addc; st Zlo;
ld Xhi; ld Yhi; addc; st Zhi;
ldc 0; dup; addc;
dup; adc #7ffffff;
- overflows if and only if carry word > 0
rev; adc #8000001;
- underflows if and only if carry word < -1
Multiple length multiplication
The
umac instruction multiplies two single word unsigned operands in Areg and Breg,
and adds the single word carry operand in Creg to form a double length unsigned
result. The more significant (carr y) word of the result is left in Breg, the less significant
in Areg. No overflow can be signalled by this instruction.
Multiplication of a single length unsigned value
X by a double length unsigned value Y
(leaving the ‘carry’ in Areg) can be performed by:
ldc 0;
ldl X; ldl Ylo; umac; stl Zlo;
ldl X; ldl Yhi; umac; stl Zhi
Double length unsigned multiplication is more complex. The product of two unsigned
double length words
X and Y can be expressed as:
X* Y= (Xhi*2
32 +X
lo)*(Yhi*2
32 +Y
lo)
=(Xhi*Yhi)*2
64 +(X
hi*Ylo +Xlo*Yhi)*2
32 +(X
lo*Ylo)
This can be coded as follows:
ldc 0;
ldl Xlo; ldl Ylo; umac; stl Z0
ldl Xlo; ldl Yhi; umac; rev; stl Z2



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com