OPEN.BIN Data Tables

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

OPEN.BIN Routines

80067000 - return addresses for OPEN.BIN 0006f228 - 0006f594
800855a8 - image file destination (for menu images and such.)

LIBPRESS Data Compression Library

80074078 - MDEC(2) - Set Quant Table; Luminance & Colour (0x84 bytes long)
800740fc - MDEC(3) - Set Scale Table (0x84 bytes long)
^ this seems to be a strange way of doing it and suggests an earlier version of LIBPRESS.
80074180 - hardware I/O ports
    - 80074180: DMA0 base address (DMA_MDEC_IN_MADR)
    - 80074184: DMA0 block control (DMA_MDEC_IN_BCR)
    - 80074188: DMA0 channel control (DMA_MDEC_IN_CHCR)
    - 8007418c: DMA1 base address (DMA_MDEC_OUT_MADR)
    - 80074190: DMA1 block control (DMA_MDEC_OUT_BCR)
    - 80074194: DMA1 channel control (DMA_MDEC_OUT_CHCR)
    - 80074198: DMA2 base address (DMA_GPU_MADR)
    - 8007419c: DMA2 block control (DMA_GPU_BCR)
    - 800741a0: DMA2 channel control (DMA_GPU_CHCR)
    - 800741a4: DMA3 base address (DMA_CDROM_MADR)
    - 800741a8: DMA3 block control (DMA_CDROM_BCR)
    - 800741ac: DMA3 channel control (DMA_CDROM_CHCR)
    - 800741b0: MDEC0 command/parameter register & data response (MDEC_REG0)
    - 800741b4: MDEC1 status register (bitmask) (MDEC_REG1)
           0x80000000: data-out "fifo" empty
           0x40000000: data-in "fifo" full
           0x20000000: command busy
           0x10000000: data-in request allowed
           0x08000000: data-out request allowed
           0x06000000: data output depth (0=4bit, 2=8bit, 4=24bit, 6=15bit)
           0x01000000: data output signed
           0x00800000: if 15 bit depth; data output bit 15
           0x00780000: unused
           0x00070000: current block
           0x0000ffff: No. param words remaining
    - 800741b8: DPCR DMA control register (DMA_DPCR)
           (full word) list of priorities and enabled/disabled flags for every DMA -> MDEC channel