Read and write AmigaBasicBMAP() binary file format.
Arguments
- file
A
characterstring of the filename of the Amiga Basic BMAP file to be read or written.- x
A
AmigaBasicBMAP()class object that needs to be stored.
Value
Returns an AmigaBasicBMAP() class object read from the file in case of
read.AmigaBasicBMAP. Otherwise, invisibly returns the result of the call of close to the
file connection.
Details
An Amiga Basic BMAP file maps the offset of routines in Amiga libraries and can be read as a comprehensive list and written back to a binary file using these functions.
See also
Other AmigaBasic.operations:
AmigaBasic,
AmigaBasic.reserved(),
AmigaBasicBMAP,
[.AmigaBasic(),
as.AmigaBasic(),
as.AmigaBasicBMAP(),
as.character(),
check.names.AmigaBasic(),
names.AmigaBasic(),
rawToAmigaBasic(),
rawToAmigaBasicBMAP(),
read.AmigaBasic(),
write.AmigaBasic()
Other io.operations:
read.AmigaBasic(),
read.AmigaBasicShape(),
read.AmigaBitmapFont(),
read.AmigaBitmapFontSet(),
read.AmigaIcon(),
read.SysConfig(),
read.iff(),
write.AmigaBasic(),
write.AmigaBasicShape(),
write.AmigaBitmapFont(),
write.AmigaIcon(),
write.SysConfig(),
write.iff()
Examples
## 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)
)
))
## This will write the BMAP to a file:
write.AmigaBasicBMAP(dos.bmap, file.path(tempdir(), "dos.bmap"))
## This will read the same file:
dos.bmap.copy <- read.AmigaBasicBMAP(file.path(tempdir(), "dos.bmap"))