| Zakładka z wyszukiwarką danych komponentów |
|
45111 Arkusz danych(PDF) 61 Page - List of Unclassifed Manufacturers |
|
|
|||||||||||||||||||||||||||||
45111 Arkusz danych(HTML) 61 Page - List of Unclassifed Manufacturers |
|
61 / 184 page ![]() 7 The SASM Assembler SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 61 The following code snippet is an example of multiple WATCH directives and their output: LCounter EQU $08 Hcounter EQU $09 Flags EQU $0A String EQU $0B ; (3 chars, $0B - $0D) WATCH LCounter, 16, UDEC WATCH Flags.0, 1, UBIN WATCH Flags.1, 1, UBIN WATCH String, 3, FSTR Start ; Start of main routine MOV LCounter, #$10 MOV HCounter, #$F0 MOV Flags, #%01 MOV String, #’H’ MOV String+1, #’I’ MOV String+2, #’!’ This code snippet would result in a Watch window similar to Figure 13 – The Watch Window, below: Figure 13 - The Watch Window The first variable in the Watch window is created by the WATCH directive on line 5 of the source code. It tells the SX-Key to display a value starting at bit 0 of LCounter (since bit 0 is assumed if no bit address is specified) containing 16 bits and formatted as an unsigned decimal number. Note that although LCounter is only an 8-bit register, the WATCH directive can span multiple registers (from low-byte to high-byte) in order to construct up to a 32-bit value. In this case, LCounter ($08) is the lower 8 bits and HCounter ($09) is the upper 8 bits of the displayed value (61,456 or $F010). The second and third variables in the Watch window are created by the WATCH directives on lines 6 and 7 of the source code. Both are single bit values, shown in unsigned binary format. The first of these corresponds to Flags’ bit 0 (Flags.0) and the second corresponds to Flags’ bit 1 (Flags.1) as specified by the symbol arguments. The fourth variable in the Watch window is created by the last WATCH directive. It tells the SX-Key to display a fixed-length string (FSTR) of 3 bytes starting with the String symbol. In this case, ‘HI!’ is displayed. |
|
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 |
| 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 |