ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8297
Скачиваний: 1
© MCS Electronics, 1995-2007
So LOAD TIMER0, 10 will load the TIMER0 with a value of 246 so that it willoverflow after 10 ticks.
TIMER1 is a 16 bit counter so it will be loaded with the value of 65536-value.
See Also
NONE
Example
NONE
LOADADR
Action
Loads the address of a variable into a register pair.
Syntax
LOADADR var , reg
Remarks
var |
A variable which address must be loaded into the register pair X, Y or |
Z. |
|
reg |
The register X, Y or Z. |
The LOADADR statement serves as an assembly helper routine.
Example
Dim S As String * 12
Dim A As Byte
$ASM
loadadr S , X ; load address into R26 and R27
ld _temp1, X ; load value of location R26/R27 into R24(_temp1) $END ASM
LOADLABEL
Action
Assigns a word variable with the address of a label.
Syntax
Var = LOADLABEL(label )
Remarks
var The variable that is assigned with the address of the label.
page -555-