mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-25 07:15:12 +00:00
Muted a few warnings
This commit is contained in:
parent
f8c53f59b0
commit
30ac4bdcb1
5 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ typedef enum EnvStage {
|
||||||
ENV_ATTACK = (1 << 0),
|
ENV_ATTACK = (1 << 0),
|
||||||
ENV_DECAY = (1 << 1),
|
ENV_DECAY = (1 << 1),
|
||||||
ENV_SUSTAIN = (1 << 2),
|
ENV_SUSTAIN = (1 << 2),
|
||||||
ENV_RELEASE = (1 << 3),
|
ENV_RELEASE = (1 << 3)
|
||||||
} EnvStage;
|
} EnvStage;
|
||||||
|
|
||||||
typedef struct Envelope {
|
typedef struct Envelope {
|
||||||
|
|
|
@ -217,7 +217,7 @@ is_dir_path(char *p)
|
||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
int saw_slash = 0;
|
int saw_slash = 0;
|
||||||
while (c = *p++)
|
while ((c = *p++))
|
||||||
saw_slash = c == DIR_SEP_CHAR;
|
saw_slash = c == DIR_SEP_CHAR;
|
||||||
return saw_slash;
|
return saw_slash;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,9 +53,9 @@ uxn_eval(Uint16 pc)
|
||||||
/* JCI */ case 0x20: if(DEC(wst)) { JMI break; } pc += 2; break;
|
/* JCI */ case 0x20: if(DEC(wst)) { JMI break; } pc += 2; break;
|
||||||
/* JMI */ case 0x40: JMI break;
|
/* JMI */ case 0x40: JMI break;
|
||||||
/* JSI */ case 0x60: c = pc + 2; INC(rst) = c >> 8; INC(rst) = c; JMI break;
|
/* JSI */ case 0x60: c = pc + 2; INC(rst) = c >> 8; INC(rst) = c; JMI break;
|
||||||
/* LI2 */ case 0xa0: INC(wst) = uxn.ram[pc++];
|
/* LI2 */ case 0xa0: INC(wst) = uxn.ram[pc++]; /* fall through */
|
||||||
/* LIT */ case 0x80: INC(wst) = uxn.ram[pc++]; break;
|
/* LIT */ case 0x80: INC(wst) = uxn.ram[pc++]; break;
|
||||||
/* L2r */ case 0xe0: INC(rst) = uxn.ram[pc++];
|
/* L2r */ case 0xe0: INC(rst) = uxn.ram[pc++]; /* fall through */
|
||||||
/* LIr */ case 0xc0: INC(rst) = uxn.ram[pc++]; break;
|
/* LIr */ case 0xc0: INC(rst) = uxn.ram[pc++]; break;
|
||||||
/* INC */ OPC(0x01, POx(a), PUx(a + 1))
|
/* INC */ OPC(0x01, POx(a), PUx(a + 1))
|
||||||
/* POP */ OPC(0x02, REM, {})
|
/* POP */ OPC(0x02, REM, {})
|
||||||
|
|
|
@ -68,7 +68,7 @@ main(int argc, char **argv)
|
||||||
int i = 1;
|
int i = 1;
|
||||||
char *rom;
|
char *rom;
|
||||||
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
||||||
fprintf(stdout, "Uxncli - Console Varvara Emulator, 25 Aug 2024.\n");
|
fprintf(stdout, "Uxncli - Console Varvara Emulator, 19 Oct 2024.\n");
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
rom = i == argc ? "boot.rom" : argv[i++];
|
rom = i == argc ? "boot.rom" : argv[i++];
|
||||||
|
|
|
@ -466,7 +466,7 @@ main(int argc, char **argv)
|
||||||
/* flags */
|
/* flags */
|
||||||
if(argc > 1 && argv[i][0] == '-') {
|
if(argc > 1 && argv[i][0] == '-') {
|
||||||
if(!strcmp(argv[i], "-v"))
|
if(!strcmp(argv[i], "-v"))
|
||||||
return system_error("Uxnemu - Varvara Emulator(GUI)", "25 Aug 2024.");
|
return system_error("Uxnemu - Varvara Emulator(GUI)", "19 Oct 2024.");
|
||||||
else if(!strcmp(argv[i], "-2x"))
|
else if(!strcmp(argv[i], "-2x"))
|
||||||
set_zoom(2, 0);
|
set_zoom(2, 0);
|
||||||
else if(!strcmp(argv[i], "-3x"))
|
else if(!strcmp(argv[i], "-3x"))
|
||||||
|
|
Loading…
Reference in a new issue