CONTENTS | INDEX | PREV | NEXT
 rega4

 NAME
  rega4 - return current contents of register A4

 SYNOPSIS

  char *basePtr = rega4();

 FUNCTION
  rega4() is NOT geta4() .. rega4() simply returns the current
  contents of the A4 register when you need it.  Note that DICE
  offsets the A4 register 32766 from the actuall small-data base
  so as to be able to use the entire -32768 to 32767 range to
  access 64KBytes of small-data

  see also the __geta4 keyword in EXTENSIONS.DOC .. note that a
  rega4() call inside a subroutine qualified with __geta4 is
  guarenteed to return the data base pointer.  Also, a rega4() call
  from any subroutine not called from an interrupt or a callback will
  return the proper data base pointer.


 EXAMPLE