__attribute__((noinline, target("arm"), section(".iwram")))
static void draw_tunnel(void)
__attribute__((noinline, target("arm"), section(".iwram")))
static void draw_tunnel(void)
angle = TUN_U(tun >> 16);
depth = TUN_V(tun >> 16);
tx = ~(angle - uoffs) & 0x1f;
angle = TUN_U(tun >> 16);
depth = TUN_V(tun >> 16);
tx = ~(angle - uoffs) & 0x1f;
pptop = tex[(ty << 5) + tx];
tx = (angle + uoffs) & 0x1f;
ppbot = tex[(ty << 5) + tx];
pptop = tex[(ty << 5) + tx];
tx = (angle + uoffs) & 0x1f;
ppbot = tex[(ty << 5) + tx];
pptop |= (uint16_t)tex[(ty << 5) + tx] << 8;
tx = (angle + uoffs) & 0x1f;
ppbot |= (uint16_t)tex[(ty << 5) + tx] << 8;
pptop |= (uint16_t)tex[(ty << 5) + tx] << 8;
tx = (angle + uoffs) & 0x1f;
ppbot |= (uint16_t)tex[(ty << 5) + tx] << 8;
pptop = tex[(ty << 5) + tx];
tx = ~(angle + uoffs) & 0x1f;
ppbot = tex[(ty << 5) + tx];
pptop = tex[(ty << 5) + tx];
tx = ~(angle + uoffs) & 0x1f;
ppbot = tex[(ty << 5) + tx];
angle = TUN_U(tun >> 16);
depth = TUN_V(tun >> 16);
tx = (angle - uoffs) & 0x1f;
angle = TUN_U(tun >> 16);
depth = TUN_V(tun >> 16);
tx = (angle - uoffs) & 0x1f;
pptop |= (uint16_t)tex[(ty << 5) + tx] << 8;
tx = ~(angle + uoffs) & 0x1f;
ppbot |= (uint16_t)tex[(ty << 5) + tx] << 8;
pptop |= (uint16_t)tex[(ty << 5) + tx] << 8;
tx = ~(angle + uoffs) & 0x1f;
ppbot |= (uint16_t)tex[(ty << 5) + tx] << 8;