ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
sprite_priority.c
Go to the documentation of this file.
1/*****************************************************************************
2 * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
3 *****************************************************************************
4 * Copyright 2021-2024 Marco Spedaletti (asimov@mclink.it)
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *----------------------------------------------------------------------------
18 * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
19 * (la "Licenza"); è proibito usare questo file se non in conformità alla
20 * Licenza. Una copia della Licenza è disponibile all'indirizzo:
21 *
22 * http://www.apache.org/licenses/LICENSE-2.0
23 *
24 * Se non richiesto dalla legislazione vigente o concordato per iscritto,
25 * il software distribuito nei termini della Licenza è distribuito
26 * "COSÌ COM'È", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
27 * implicite. Consultare la Licenza per il testo specifico che regola le
28 * autorizzazioni e le limitazioni previste dalla medesima.
29 ****************************************************************************/
30
31/****************************************************************************
32 * INCLUDE SECTION
33 ****************************************************************************/
34
35#include "../../../ugbc.h"
36
37/****************************************************************************
38 * CODE SECTION
39 ****************************************************************************/
40
41#if defined(__c64__) || defined(__c64reu__) || defined(__c128__)
42
53/* <usermanual>
54@keyword SPRITE PRIORITY (command)
55
56@english
57
58With the ''SPRITE PRIORITY'' command you can indicate if the sprite
59has a priority in respect of characters.
60
61Note that the keyword to use is only ''PRIORITY'', which must therefore
62be preceded by the ''SPRITE'' keyword and the sprite index. It is possible
63to put multiple ''PRIORITY'' instructions side by side, but obviously the
64processor speed is such that only the last one will be the one that counts.
65
66@italian
67
68Con il comando ''SPRITE PRIORITY'' puoi indicare se lo sprite
69ha una priorità rispetto ai caratteri.
70
71Nota che la parola chiave da usare è solo ''PRIORITY'', che deve quindi
72essere preceduta dalla parola chiave ''SPRITE'' e dall'indice dello sprite.
73È possibile mettere più istruzioni ''PRIORITY'' una accanto all'altra,
74ma ovviamente la velocità del processore è tale che solo l'ultima sarà
75quella che conta.
76
77@syntax SPRITE index PRIORITY priority [command [command ...]]
78
79@example SPRITE ship PRIORITY 1
80
81@seeAlso SPRITE (function)
82@seeAlso SPRITE
83
84@target c64
85@target c64reu
86@target c128
87@target msx1
88@target coleco
89@target sc3000
90@target sg1000
91</usermanual> */
92void sprite_priority( Environment * _environment, int _sprite, int _priority ) {
93
94}
95
106void sprite_priority_vars( Environment * _environment, char * _sprite, char * _priority ) {
107
108 vic2_sprite_priority( _environment, _sprite, _priority );
109
110}
111
112#endif
void sprite_priority(Environment *_environment, int _sprite, int _priority)
Emit ASM code for instruction SPRITE [int] COLOR [int].
void sprite_priority_vars(Environment *_environment, char *_sprite, char *_priority)
Emit ASM code for instruction SPRITE [int] COLOR [int].
struct _Environment Environment
Structure of compilation environment.
void vic2_sprite_priority(Environment *_environment, char *_sprite, char *_priority)
Definition vic2.c:1953