cd_loadvram

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

cd_loadvram(int ovl_idx, int sector_offset, int vramaddr, int bytes);      [ 3.10+ ]

    Read data from CDROM directly into video RAM at address specified
    by 'destaddr', for a length of 'bytes'.  Note that 2 bytes are required
    to fill one VRAM word.
    Read it from the overlay segment specified by 'ovl_idx', with sector
    offset (ie. multiples of 2048 bytes) of 'sector_offset'.
    Non-zero return values indicate errors.
Personal tools