AmigaChromeA new chapter for the Amiga

API docs / Open libraries / battmem.resource

API · Resources

battmem.resource jump table

Our open battmem.resource: 4 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.

battmem.resource's jump table, as OpenBattMem builds it: LVO, call, registers, and after the # the call's core class (OPEN_LIBRARIES.md section 5). build-amiga.sh (with ../../libraries/common/check_fd.py) checks this against the NDK 3.2 battmem_lib.fd (##bias 6) in the stove and stops on any difference; openbattmem_res.c's res_vectors[] follows it line for line. A resource has no Open, Close, Expunge or Null: its own calls start at -6.

4 slots, 4 public
LVOCallRegistersNotes
-6ObtainBattSemaphorenonelocked: the resource's own semaphore
-12ReleaseBattSemaphorenonelocked
-18ReadBattMema0, d0, d1anchored: the clock chip's RAM, under the semaphore
-24WriteBattMema0, d0, d1anchored: the clock chip's RAM, under the semaphore