поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

UM0144 датащи(PDF) 37 Page - STMicroelectronics

номер детали UM0144
подробное описание детали  ST7 Assembler Linker
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0144 датащи(HTML) 37 Page - STMicroelectronics

Back Button UM0144 Datasheet HTML 33Page - STMicroelectronics UM0144 Datasheet HTML 34Page - STMicroelectronics UM0144 Datasheet HTML 35Page - STMicroelectronics UM0144 Datasheet HTML 36Page - STMicroelectronics UM0144 Datasheet HTML 37Page - STMicroelectronics UM0144 Datasheet HTML 38Page - STMicroelectronics UM0144 Datasheet HTML 39Page - STMicroelectronics UM0144 Datasheet HTML 40Page - STMicroelectronics UM0144 Datasheet HTML 41Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 92 page
background image
ST7 Assembler Linker
4 Linker
UM0144
37/92
4.4.2
Segments in the linker
A typical system may look like the diagram alongside: a good candidate for four different segments,
perhaps named 'RAM0', 'RAM1', 'EPROM' and 'ROM'.
If the reset and interrupt vectors live at the end of the map, perhaps from FFEE-FFFF then we might mark
a fifth segment called 'vectors' at those addresses and truncate 'ROM' to end at FFED; that way the linker
will warn us if 'ROM' has so much code in it that it overflows into where the vectors live.
These classes would be introduced as follows:
segment byte at: 0-FF'RAM0'
segment byte at: 100-027F'RAM1'
segment byte at: 8000-BFFF'EPROM'
segment byte at: C000-FFDF'ROM'
segment byte at: FFE0-FFFF'VECTORS'
After their full introduction that needs only be done once in the whole program, the rest of the program can
refer to the classes just by giving the class names in quotes, for example:
If this example followed immediately after the class instruction the 'xtemp' label would be given the value
0
, time would be given 2 and hex C000. If, however, the code was several modules away from the
introduction with segments of the classes 'RAM0' or 'ROM', then the value allocated to all the labels will
depend on how much space was used up by those modules.
The linker takes care of all this allocation. This is the way the linker handles the problems of relocatability;
keep in mind that this link system is going to have to handle compiled code from high level languages and
you'll perhaps begin to understand why things have to be generalized so much.
So far the segments we've looked at have had no <name> field, or, more accurately, they all had a null
name field. You can ensure that related segments of the same class, perhaps scattered all over your
modules with segments of the same class are collated together in a contiguous area of the class memory
by giving them the same name.
segment 'RAM0'
xtemp
ds.w
; temp storage for X register
time
ds.b
; timer count index
segment 'ROM'
hex
ld A,#1
add A,#10
nop



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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