mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
|
||||
switch (ch) {
|
||||
case 'b':
|
||||
if (strlen(musl_optarg) == 2)
|
||||
opt_B(&musl_optarg[1]);
|
||||
opt_B(musl_optarg);
|
||||
else
|
||||
errx("Must specify exactly 2 characters for option 'b'");
|
||||
break;
|
||||
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
case 'g':
|
||||
if (strlen(musl_optarg) == 4)
|
||||
opt_G(&musl_optarg[1]);
|
||||
opt_G(musl_optarg);
|
||||
else
|
||||
errx("Must specify exactly 4 characters for option 'g'");
|
||||
break;
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
PRINTLN %Oo_Oo_Oo
|
||||
|
||||
OPT b.X
|
||||
PRINTLN %..X.X.X.
|
||||
PRINTLN %..X._X.X.
|
||||
|
||||
1
test/asm/opt-b.flags
Normal file
1
test/asm/opt-b.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Weverything -b oO
|
||||
@@ -1 +1,2 @@
|
||||
$2A
|
||||
$2A
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
PRINTLN `pqpq_rsrs
|
||||
|
||||
OPT g.x0X
|
||||
PRINTLN `.x.x0X0X
|
||||
PRINTLN `.x.x_0X0X
|
||||
|
||||
1
test/asm/opt-g.flags
Normal file
1
test/asm/opt-g.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Weverything -g pqrs
|
||||
@@ -1 +1,2 @@
|
||||
$F55
|
||||
$F55
|
||||
|
||||
Reference in New Issue
Block a user