API docs / Open libraries / carddisk.device
API · Devicescarddisk.device jump table
Our open carddisk.device: 17 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.
Copyright (c) 2026 DalsinAI. MIT. card.resource's calls, as opencarddisk_dev.c makes them: LVO, call, registers, and after the # whether carddisk.device calls it. Checked against the NDK 3.2 card_lib.fd (##bias 6) by build-amiga.sh with ../../libraries/common/check_fd.py. carddisk.device has no calls of its own (only exec's device vectors: Open, Close, Expunge, Null, BeginIO -30, AbortIO -36).
| LVO | Call | Registers | Notes |
|---|---|---|---|
| -6 | OwnCard | a1 | every look at the card |
| -12 | ReleaseCard | a1, d0 | a card that is no disk goes back (flags 0) |
| -18 | GetCardMap | none | the common memory window |
| -24 | BeginCardAccess | a1 | round every transfer: the access light |
| -30 | EndCardAccess | a1 | FALSE: the card went during the transfer |
| -36 | ReadCardStatus | none | write enable, before every write and TD_PROTSTATUS |
| -42 | CardResetRemove | a1, d0 | not called |
| -48 | CardMiscControl | a1, d1 | 0 when a card is taken: no digital audio |
| -54 | CardAccessSpeed | a1, d0 | the CIS's speed when a card is taken |
| -60 | CardProgramVoltage | a1, d0 | 5 V when a card is taken |
| -66 | CardResetCard | a1 | when a card is taken |
| -72 | CopyTuple | a1, a0, d1, d0 | DEVICE, FORMAT, DEVICEGEO, GEOMETRY |
| -78 | DeviceTuple | a0, a1 | the DEVICE tuple's size, speed and type |
| -84 | IfAmigaXIP | a2 | an XIP card is no disk |
| -90 | CardForceChange | none | not called (the qemu test calls it) |
| -96 | CardChangeCount | none | every look: a swap between two looks |
| -102 | CardInterface | none | at init: CARD_INTERFACE_AMIGA_0 or no device |