数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STC89LE52RC 数据表(PDF) 138 Page - STCmicro Technology Co,.Ltd

部件名 STC89LE52RC
功能描述  Enhanced 80C51 Central Processing Unit ,6T or 12T per machine cycle
PDF  165 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STC [STCmicro Technology Co,.Ltd]
网页  http://www.stcmicro.com/
标志 STC - STCmicro Technology Co,.Ltd

STC89LE52RC 数据表(HTML) 138 Page - STCmicro Technology Co,.Ltd

Back Button STC89LE52RC Datasheet HTML 134Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 135Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 136Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 137Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 138Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 139Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 140Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 141Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 142Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 138 / 165 page
background image
Generic Jumps and Calls
ASM51 allows programmers to use a generic JMP or CALL mnemonic. "JMP" can be used instead of SJMP,
AJMP or LJMP; and "CALL" can be used instead of ACALL or LCALL. The assembler converts the generic
mnemonic to a "real" instruction following a few simple rules. The generic mnemonic converts to the short form
(for JMP only) if no forward references are used and the jump destination is within -128 locations, or to the
absolute form if no forward references are used and the instruction following the JMP or CALL instruction is in
the same 2K block as the destination instruction. If short or absolute forms cannot be used, the conversion is to
the long form.
The conversion is not necessarily the best programming choice. For example, if branching ahead a few
instrucions, the generic JMP will always convert to LJMP even though an SJMP is probably better. Consider the
following assembled instructions sequence using three generic jumps.
LOC
OBJ
LINE
SOURCE
1234
1
ORG
1234H
1234
04
2
START:
INC
A
1235
80FD
3
JMP
START
;ASSEMBLES AS SJMP
12FC
4
ORG
START + 200
12FC
4134
5
JMP
START
;ASSEMBLES AS AJMP
12FE
021301
6
JMP
FINISH
;ASSEMBLES AS LJMP
1301
04
7
FINISH:
INC
A
8
END
The first jump (line 3) assembles as SJMP because the destination is before the jump ( i.e., no forward reference)
and the offset is less than -128. The ORG directive in line 4 creates a gap of 200 locations between the label
START and the second jump, so the conversion on line 5 is to AJMP because the offset is too great for SJMP.
Note also that the address following the second jump (12FEH) and the address of START (1234H) are within the
same 2K page, which, for this instruction sequence, is bounded by 1000H and 17FFH. This criterion must be met
for absolute addressing. The third jump assembles as LJMP because the destination (FINISH) is not yet defined
when the jump is assembled (i.e., a forward reference is used). The reader can verify that the conversion is as
stated by examining the object field for each jump instruction.
ASSEMBLE-TIME EXPRESSION EVALUATION
Values and constants in the operand field may be expressed three ways: (a) explicitly (e.g.,0EFH), (b) with a
predefined symbol (e.g., ACC), or (c) with an expression (e.g.,2 + 3). The use of expressions provides a powerful
technique for making assembly language programs more readable and more flexible. When an expression is used,
the assembler calculates a value and inserts it into the instruction.
All expression calculations are performed using 16-bit arithmetic; however, either 8 or 16 bits are inserted
into the instruction as needed. For example, the following two instructions are the same:
MOV
DPTR,
#04FFH + 3
MOV
DPTR,
#0502H
;ENTIRE 16-BIT RESULT USED
If the same expression is used in a "MOV A,#data" instruction, however, the error message "value will not fit in a
byte" is generated by ASM51. An overview of the rules for evaluateing expressions follows.
138



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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