Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UM0144 Datasheet(PDF) 10 Page - STMicroelectronics

Part # UM0144
Description  ST7 Assembler Linker
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0144 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button UM0144 Datasheet HTML 6Page - STMicroelectronics UM0144 Datasheet HTML 7Page - STMicroelectronics UM0144 Datasheet HTML 8Page - STMicroelectronics UM0144 Datasheet HTML 9Page - STMicroelectronics UM0144 Datasheet HTML 10Page - STMicroelectronics UM0144 Datasheet HTML 11Page - STMicroelectronics UM0144 Datasheet HTML 12Page - STMicroelectronics UM0144 Datasheet HTML 13Page - STMicroelectronics UM0144 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 92 page
background image
2 ST7 Addressing Modes
ST7 Assembler Linker
10/92
UM0144
2.5
Immediate operands
Immediate operands permit you to input a specific value for use with an instruction. They are
signaled by the use of a sharp sign (#) before the value.
Examples:
The range for an 8-bit immediate operand is from 0 to 255.
2.6
Direct and indirect modes
A direct addressing mode means that the data byte required to do the operation is found by
its memory address, which follows the op-code.
An indirect addressing mode means that the data byte required to do the operation is found
by its memory address which is located in memory (pointer). The pointer address follows the
op-code.
This last group consists of memory indirect variants:
●
short indirect (short pointed data),
●
long indirect (long pointed data),
●
short indirect indexed (short pointed data),
●
long indirect indexed (long pointed data),
For ST7 devices, the address specified must always be in page 0 (i.e. its address must be less
than $100). Examples:
To make the distinction between short and long indirect addressing mode, the suffix.w is
specified to indicate that you want to work in long indirect mode (this is also true for indexed
addressing mode). Implicitly, if nothing is specified, the short indirect addressing mode is
assumed.
For ST7 devices, you can also use.b to specify short indirect addressing mode (as with the
indexed addressing mode).
lab08
ld
A,#1
; load A with immediate value 1
lab09
bset
memory,#3
; set bit #3 in memory location
btjt
memory,#3,label
;
test bit #3 of memory and
jump if true (set)
ld
A,[80]
; short indirect
ld
A,[80.b]
; short indirect
ld
A,[80.w]
; long
indirect
lab12
equ
80
ld
A,([lab12],X)
; short indirect X-indexed
ld
A,([lab12.b],X)
; short indirect X-indexed
ld
A,([lab12.w],Y)
; long indirect Y-indexed



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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