Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

45111 Arkusz danych(PDF) 106 Page - List of Unclassifed Manufacturers

Numer części 45111
Szczegółowy opis  14-DAY MONEY BACK GUARANTEE
PDF  184 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  ETC2 [List of Unclassifed Manufacturers]
Strona internetowa  
Logo ETC2 - List of Unclassifed Manufacturers

45111 Arkusz danych(HTML) 106 Page - List of Unclassifed Manufacturers

Back Button 45111 Datasheet HTML 102Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 103Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 104Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 105Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 106Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 107Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 108Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 109Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 110Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 106 / 184 page
background image
10 SX Special Features and Coding Tips
Page 106
• SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.
The following code snippet demonstrates this:
Start
ORG $0
; This routine is in page 0
JMP @Routine; Jump to proper page
JMP Start
Routine
ORG $200
; This routine is in page 1
JMP @Start
; Jump back to proper page
The @ symbol preceding the address causes the assembler to insert a PAGE instruction just before the
JMP to set the page select bits appropriately. The second JMP in line three does not require an @ symbol
since the destination address is within the current page. If the @ was left out of line two, the SX would
jump to address $000 instead of $200. See Chapter 15.2.14 - Jumping Across Pages for more
information.
10.6.2 Calling Across Pages with Jump Tables
Calling subroutines can pose even more boundary problems than jumping across pages. The CALL
instruction uses only an 8-bit address as the operand (the 9th bit of the address is always cleared). This
limits the calling destination to the first 256 words of the current page.
Because it is sometimes impossible to organize all subroutines within such a tight space, a common
practice is to make use of a subroutine jump table. The jump table consists of a list of JMP commands to
various subroutines and is located within the first 256 words of the page. The CALL instructions can
simply call the proper location within the jump table and code execution jumps to the appropriate
subroutine, even if it exists in different pages or above the 256 word barrier.
To call subroutines across page boundaries:
1) Design a jump table with the page-set option (the @ sign preceding the addresses).
2) Place the subroutines in any desired location being sure to end them with RETP.
3) Call the subroutine’s alias-name in the jump table.



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


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
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