Skip to contents

This function checks if the amigaDisk object represents a bootable disk.

Usage

# S4 method for amigaDisk
is.bootable(x)

Arguments

x

An amigaDisk object for which the check should be performed.

Value

Returns a logical value, indicating whether the disk is bootable.

Details

The first two amigaBlock objects on a disk are special and are called the boot block. The boot block will determine whether an Amiga can boot from the disk.

This function will determine whether the Amiga would attempt to execute the machine code present on the boot block. It will not check whether it would be successful at that, as that would require emulation of the Commodore Amiga system.

Author

Pepijn de Vries

Examples

data(adf.example)

## let's check if the example amigaDisk object
## is bootable:

is.bootable(adf.example)
#> [1] TRUE

## it apparently is