AmigaChromeA new chapter for the Amiga

API docs / Open libraries / card.resource

API · Resources

card.resource jump table

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

card.resource's jump table, as OpenCard 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 card_lib.fd (##bias 6) in the stove and stops on any difference; opencard_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. The slot is one, with its owner and queue in the resource's base, changed with interrupts off: anchored, but for the four that only read.

17 slots, 17 public
LVOCallRegistersNotes
-6OwnCarda1anchored: the queue
-12ReleaseCarda1, d0anchored: the queue and the Gayle
-18GetCardMapnonepure: a constant map
-24BeginCardAccessa1anchored: the owner
-30EndCardAccessa1anchored: the owner
-36ReadCardStatusnoneanchored: the Gayle's status
-42CardResetRemovea1, d0anchored: the owner's flags
-48CardMiscControla1, d1anchored: the Gayle
-54CardAccessSpeeda1, d0anchored: the Gayle
-60CardProgramVoltagea1, d0anchored: the Gayle
-66CardResetCarda1anchored: the card's reset line
-72CopyTuplea1, a0, d1, d0anchored: the card's memory
-78DeviceTuplea0, a1pure: parses a caller's tuple
-84IfAmigaXIPa2anchored: the card's memory
-90CardForceChangenoneanchored: the queue
-96CardChangeCountnoneanchored: the count
-102CardInterfacenonepure: CARD_INTERFACE_AMIGA_0