Publication 1746-PM001A-US-P
A-6
BASIC Macro Library
Battery Back-Up
The following table describes the macro CALLs used to control the battery
back-up.
Program Control
The following table describes the macro CALLs used for program control.
Table A.5 Battery Back-up Macros
Battery Back–up
Macro CALLs
Macro
Inputs
Outputs
battery_on()
Enables battery back-up.
None
None
battery_off()
Disables battery back-up.
None
None
alloc_bat_var(%1)
Allocates battery backed memory for non-volatile data
storage. One parameter is required. %1 is the number of
variables to be stored. If the MTOP is not 5FFFh, then this
function is skipped.
%1 = Number
variables
None
read_bat_var(%1,%2)
Retrieves battery backed variables.
%2 = storage number
%1 = variable to
be retrieved
write_bat_var(%1,%2)
Writes battery backed variables.
%2 = storage number
%1 = variable to
be written
Table A.6 Program Macros
Program Control
Macro CALLs
Macro
Inputs
Outputs
CALL_ram()
Transfers control of the BASIC program to the second line of the
program in RAM.
None
None
CALL_rom(%1)
Transfers control of the BASIC program to the second line of the
program specified in EEPROM.
%1 = number of ROM
program
None
ret()
Transfers control back to were it was in the main program prior to the
CALL.
None
None
Содержание 1747-PBASE
Страница 1: ...BASIC Development Software Catalog Numbers 1747 PBASE Programming Manual ...
Страница 8: ...Publication 1746 PM001A US P Table of Contents vi ...
Страница 34: ...Publication 1746 PM001A US P 2 14 Getting Familiar with Your Development Software ...
Страница 72: ...Publication 1746 PM001A US P 5 8 Manipulating Files ...
Страница 88: ...Publication 1746 PM001A US P 6 16 Writing Programs Using the BASIC Development Language ...
Страница 143: ......