ugBASIC
1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
sid_file.h
Go to the documentation of this file.
1
#ifndef __SID_FILE__
2
#define __SID_FILE__
3
4
/*****************************************************************************
5
* ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
6
*****************************************************************************
7
* Copyright 2021-2024 Marco Spedaletti (asimov@mclink.it)
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*----------------------------------------------------------------------------
21
* Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
22
* (la "Licenza"); è proibito usare questo file se non in conformità alla
23
* Licenza. Una copia della Licenza è disponibile all'indirizzo:
24
*
25
* http://www.apache.org/licenses/LICENSE-2.0
26
*
27
* Se non richiesto dalla legislazione vigente o concordato per iscritto,
28
* il software distribuito nei termini della Licenza è distribuito
29
* "COSÌ COM'È", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
30
* implicite. Consultare la Licenza per il testo specifico che regola le
31
* autorizzazioni e le limitazioni previste dalla medesima.
32
****************************************************************************/
33
34
35
typedef
struct
_SIDFILE
{
36
int
loadAddress
;
37
int
initAddress
;
38
int
playAddress
;
39
int
songs
;
40
int
startSong
;
41
unsigned
char
*
data
;
42
int
size
;
43
44
struct
_SIDFILE
*
next
;
45
46
}
SIDFILE
;
47
48
SIDFILE
*
sid_file_read
(
char
* _filename,
int
_reloc_address );
49
int
sid_file_size
(
SIDFILE
* _sid_file );
50
unsigned
char
*
sid_file_data
(
SIDFILE
* _sid_file );
51
void
sid_file_free
(
SIDFILE
* _sid_file );
52
char
*
sid_file_get_lasterror_string
( );
53
54
#endif
sid_file_read
SIDFILE * sid_file_read(char *_filename, int _reloc_address)
Definition
sid_file.c:94
SIDFILE
struct _SIDFILE SIDFILE
sid_file_get_lasterror_string
char * sid_file_get_lasterror_string()
Definition
sid_file.c:376
sid_file_data
unsigned char * sid_file_data(SIDFILE *_sid_file)
Definition
sid_file.c:365
sid_file_free
void sid_file_free(SIDFILE *_sid_file)
Definition
sid_file.c:369
sid_file_size
int sid_file_size(SIDFILE *_sid_file)
Definition
sid_file.c:361
_SIDFILE
Definition
sid_file.h:35
_SIDFILE::initAddress
int initAddress
Definition
sid_file.h:37
_SIDFILE::loadAddress
int loadAddress
Definition
sid_file.h:36
_SIDFILE::size
int size
Definition
sid_file.h:42
_SIDFILE::startSong
int startSong
Definition
sid_file.h:40
_SIDFILE::playAddress
int playAddress
Definition
sid_file.h:38
_SIDFILE::data
unsigned char * data
Definition
sid_file.h:41
_SIDFILE::songs
int songs
Definition
sid_file.h:39
_SIDFILE::next
struct _SIDFILE * next
Definition
sid_file.h:44
Z:
ugbasic
ugbc
src
libs
sid_file.h
Generated by
1.16.1