Skip to contents

Coerce raw data into an AmigaBasicBMAP() class object

Usage

rawToAmigaBasicBMAP(x, ...)

Arguments

x

A vector of raw data that is to be converted into an AmigaBasicBMAP() class object.

...

Currently ignored.

Value

An AmigaBasicBMAP() class object based on x.

Details

An Amiga Basic BMAP file maps the offset of routines in Amiga libraries. This function converts the raw format in which it would be stored as a file into a comprehensive S3 class object.

Author

Pepijn de Vries

Examples

if (FALSE) {
## A small fragment of the dos.library BMAP would look like this:
dos.bmap <- as.AmigaBasicBMAP(list(
  xOpen = list(
    libraryVectorOffset = -30,
    registers = as.raw(2:3)
  ),
  xClose = list(
    libraryVectorOffset = -36,
    registers = as.raw(2)
  ),
  xRead = list(
    libraryVectorOffset = -42,
    registers = as.raw(2:4)
  )
))

## The raw representation would be
dos.bmap.raw <- as.raw(dos.bmap)

## And the reverse
rawToAmigaBasicBMAP(dos.bmap.raw)
}