diff options
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r-- | apps/plugins/doom/r_draw.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/plugins/doom/r_draw.c b/apps/plugins/doom/r_draw.c index ee107f9839..8208972a66 100644 --- a/apps/plugins/doom/r_draw.c +++ b/apps/plugins/doom/r_draw.c | |||
@@ -534,12 +534,10 @@ void R_DrawSpan (void) | |||
534 | "clr.l %%d4 \n" | 534 | "clr.l %%d4 \n" |
535 | "spanloop: \n" | 535 | "spanloop: \n" |
536 | "move.l %[xfrac], %%d1 \n" | 536 | "move.l %[xfrac], %%d1 \n" |
537 | "move.l %[yfrac], %%d2 \n" | 537 | "swap %%d1 \n" |
538 | "lsr.l #8,%%d1 \n" | ||
539 | "lsr.l #8,%%d2 \n" | ||
540 | "lsr.l #8,%%d1 \n" | ||
541 | "lsr.l #2,%%d2 \n" | ||
542 | "and.l #63,%%d1 \n" | 538 | "and.l #63,%%d1 \n" |
539 | "move.l %[yfrac], %%d2 \n" | ||
540 | "lsr.l %[ten],%%d2 \n" | ||
543 | "and.l #4032,%%d2 \n" | 541 | "and.l #4032,%%d2 \n" |
544 | "or.l %%d2, %%d1 \n" | 542 | "or.l %%d2, %%d1 \n" |
545 | "move.b (%[source], %%d1), %%d4 \n" | 543 | "move.b (%[source], %%d1), %%d4 \n" |
@@ -551,9 +549,10 @@ void R_DrawSpan (void) | |||
551 | "endspanloop: \n" | 549 | "endspanloop: \n" |
552 | : /* outputs */ | 550 | : /* outputs */ |
553 | : /* inputs */ | 551 | : /* inputs */ |
552 | [ten] "d"(10), | ||
554 | [count] "d" (ds_x2-ds_x1+1), | 553 | [count] "d" (ds_x2-ds_x1+1), |
555 | [xfrac] "d" (ds_xfrac), | 554 | [xfrac] "a" (ds_xfrac), |
556 | [yfrac] "d" (ds_yfrac), | 555 | [yfrac] "a" (ds_yfrac), |
557 | [source] "a" (ds_source), | 556 | [source] "a" (ds_source), |
558 | [colormap] "a" (ds_colormap), | 557 | [colormap] "a" (ds_colormap), |
559 | [dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1), | 558 | [dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1), |