libmsx
C library for MSX
Loading...
Searching...
No Matches
ZX0_decompress.h
Go to the documentation of this file.
1// -*- coding: utf-8-unix -*-
2/*
3 * Copyright (c) 2021-2024 Daishi Mori (mori0091)
4 *
5 * This software is released under the MIT License.\n
6 * See https://github.com/mori0091/libmsx/blob/main/LICENSE
7 *
8 * GitHub libmsx project\n
9 * https://github.com/mori0091/libmsx
10 */
28#ifndef ZX0_DECOMPRESS_H_
29#define ZX0_DECOMPRESS_H_
30
31#include "bmem.h"
32#include "vmem.h"
33
34#include <stdint.h>
35#include <stddef.h>
36
52size_t ZX0_decompress(const uint8_t * src, uint8_t * dst);
53
61size_t ZX0_decompress_bmem(bmemptr_t src, uint8_t * dst);
62
71
93
115uint32_t ZX0_decompress_resource_to_vmem(const char * path, vmemptr_t dst);
116
148uint32_t ZX0_decompress_resource_to_vmem_buffer(const char * path, vmemptr_t dst);
149
152#endif // ZX0_DECOMPRESS_H_
Data types and functions for accessing banked memory.
uint32_t bmemptr_t
Type of an address of banked memory.
Definition bmem.h:74
uint32_t vmemptr_t
Type for VRAM address.
Definition vmem.h:42
uint32_t ZX0_decompress_resource_to_vmem_buffer(const char *path, vmemptr_t dst)
MSX2 Decompress a ZX0 resource in banked memory to VRAM via main RAM page #0 buffer.
size_t ZX0_decompress(const uint8_t *src, uint8_t *dst)
MSX Decompress a ZX0 data stream.
size_t ZX0_decompress_bmem(bmemptr_t src, uint8_t *dst)
MSX Decompress a ZX0 data stream in Banked Memory.
uint32_t ZX0_decompress_bmem_to_vmem(bmemptr_t src, vmemptr_t dst)
MSX Decompress a ZX0 data stream in Banked Memory to VRAM.
uint32_t ZX0_decompress_bmem_to_vmem_buffer(bmemptr_t src, vmemptr_t dst)
MSX2 Decompress a ZX0 data stream in Banked Memory to VRAM via main RAM page #0 buffer.
uint32_t ZX0_decompress_resource_to_vmem(const char *path, vmemptr_t dst)
MSX Decompress a ZX0 resource in banked memory to VRAM.
Data types and functions for VRAM access.