##### Shinobi Library - Memory Card Function

# buMountDisk

Mounts a memory card

### FORMAT

`

  Sint32 buMountDisk( drive, *addr, size )
  Sint32 drive
  void *addr
  Sint32 size

`

### PARAMETER

  `drive` | Extension socket number
  `*addr` | Work address
  `size` | Work size

### RETURN

  BUD_ERR_INVALID_PARAM | Buffer is not sufficient for the specified memory card |
  BUD_ERR_OK | Normal end |

### DESCRIPTION

  Mounts a memory card loaded in a specified extension socket.

  The following values can be designated for the argument `drive` which specifies operand extension sockets.

  BUD_DRIVE_A1 | Extension socket 1 on board A
  BUD_DRIVE_A2 | Extension socket 2 on board A
  BUD_DRIVE_B1 | Extension socket 1 on board B
  BUD_DRIVE_B2 | Extension socket 2 on board B
  BUD_DRIVE_C1 | Extension socket 1 on board C
  BUD_DRIVE_C2 | Extension socket 2 on board C
  BUD_DRIVE_D1 | Extension socket 1 on board D
  BUD_DRIVE_D2 | Extension socket 2 on board D

  The `addr` that is specified must be on a four-byte boundary. The drive is not mounted if NULL is specified for `addr` or if the buffer is too small.

### NOTE

  If the the work buffer parameter for the function `bulnit()` is not set to NULL when the memory system is initialized, the memory card cannot be mounted, even with this function.

### REFERENCE

  `buInit()
  `

buMountDisk

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999