if (FALSE) {
## For the dos.library, the start of the bmap list would look like:
dos.list <- 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)
)
)
## Note that the list above is incomplete, the dos.library holds more routines than shown here.
## This merely serves as an example.
## This list can be converted to an S3 class as follows:
dos.bmap <- as.AmigaBasicBMAP(dos.list)
}
Run the code above in your browser using DataLab