Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UM0144 Datasheet(PDF) 38 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) 38 Page - STMicroelectronics

Back Button 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 UM0144 Datasheet HTML 42Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 38 / 92 page
background image
4 Linker
ST7 Assembler Linker
38/92
UM0144
For example:
This complex sequence of segments shows now instances of the class 'RAM1' being used with a segment
name of 'grafix'. Because the first instance of the class 'RAM1' had the name 'grafix' the two 'grafix'
RAM1 segments are placed in memory first followed by the null-name RAM1 segment (which defines
'field_buf'). Note this is not the order of the segments in the code—segments with the same name are
collated together (even from separate .OBJ files), and the lumps of segments of the same name are put
into memory in the order that the names are found in the .OBJ files.
As explained in
Section on page 25, if x is your cod file suffix when introducing a class, all code for that
code is sent into a new cod-file named file_x.cod, where file is the name of the first cod file, and x is
the cod-file suffix (1-9).
4.4.3
Symbol files
At the end of a successful link, one or more .OBJ files will have been combined into a single .COD file. A
.MAP
file will have been produced, containing textual information about the segments, classes and
external labels used by the .OBJ module(s). Finally a compact .SYM file is generated, containing all
PUBLIC
symbols found in the link with their final values.
The linker supports a special feature—you can link in .SYM files from other link sessions. This means that
with big programs, you cannot only partition your code at assembler level, but divide the code up into
'lumps' which are linked and loaded separately, but have access to each other's label as EXTERNs.
You can 'link in' a symbol table simply by giving its name with the suffix .SYM. Always give symbol tables
at the start of the object file list.
OBJ File Example:
LYN prog1.sym+prog2,vectors,irq;
Once this is done, all the PUBLIC symbols from prog1.sym are now available as PUBLICs to
prog2.obj
, vectors.obj and irq.obj.
Because changes in one link will not automatically update references to the changed link code in other
links, it's necessary when using this technique to 'fix' each link in an area of memory, and have a 'jump
table' at the top of each area. This means that all 'function' addresses are permanently fixed as jump table
offset, and changes to each link will result in automatic redirection of the jump targets to the new start of
grafix
segment byte at: 100-027F 'RAM1'
cursor_buf
ds.b 64
; buffer for map under cursor
segment byte at: 8000-BFFF 'ROM'
show_page
nop
segment 'RAM1'
field-buf
ds.b {{256 mult 256}/8}
segment 'ROM'
dump_buf
ld A,field_buffer
grafix
segment 'RAM1'
cursor_temp ds.b 64



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