- use build in data types
git-svn-id: http://moon:8086/svn/mips@35 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* ./r3 | xv -
|
||||
*/
|
||||
#include "libsys.h"
|
||||
UINT32 *pP;
|
||||
uint32_t *pP;
|
||||
|
||||
xsize = 800;
|
||||
ysize = 600;
|
||||
@@ -300,7 +300,7 @@ trace_ray(orig_x, orig_y, orig_z,
|
||||
closest_i_saved = closest_i_saved<4? closest_i_saved+1 : 7,
|
||||
*/
|
||||
/*
|
||||
tvinga gråskalor: closest_i_saved = 7,
|
||||
tvinga gr�skalor: closest_i_saved = 7,
|
||||
*/
|
||||
closest_i_saved = closest_i_saved<22? 7 :
|
||||
(
|
||||
@@ -441,23 +441,23 @@ do_line(y)
|
||||
main()
|
||||
{
|
||||
#ifdef JMIPS_VGA
|
||||
volatile UINT32 *pVGA_ctrl = (UINT32*)SYS_VGA_CTRL;
|
||||
volatile UINT32 *pVGA_front = (UINT32*)SYS_VGA_FB_FRONT;
|
||||
volatile UINT32 *pVGA_back = (UINT32*)SYS_VGA_FB_BACK;
|
||||
UINT64 *pPixelBuf;
|
||||
volatile uint32_t *pVGA_ctrl = (uint32_t*)SYS_VGA_CTRL;
|
||||
volatile uint32_t *pVGA_front = (uint32_t*)SYS_VGA_FB_FRONT;
|
||||
volatile uint32_t *pVGA_back = (uint32_t*)SYS_VGA_FB_BACK;
|
||||
uint64_t *pPixelBuf;
|
||||
|
||||
xsize = Screen_get_resx();
|
||||
ysize = Screen_get_resy();
|
||||
|
||||
pPixelBuf = (UINT64*)malloc(xsize*ysize*sizeof(UINT32));
|
||||
pP = (UINT32*)pPixelBuf;
|
||||
printf("pPixelBuf : %8.8X\n", (UINT32)pPixelBuf);
|
||||
pPixelBuf = (uint64_t*)malloc(xsize*ysize*sizeof(uint32_t));
|
||||
pP = (uint32_t*)pPixelBuf;
|
||||
printf("pPixelBuf : %8.8X\n", (uint32_t)pPixelBuf);
|
||||
|
||||
*pVGA_front = (UINT32)pPixelBuf;
|
||||
*pVGA_back = (UINT32)pPixelBuf;
|
||||
*pVGA_front = (uint32_t)pPixelBuf;
|
||||
*pVGA_back = (uint32_t)pPixelBuf;
|
||||
*pVGA_ctrl |= SYS_VGA_BIT_MSTEN;
|
||||
|
||||
memset(pPixelBuf, 0, xsize*ysize*sizeof(UINT32));
|
||||
memset(pPixelBuf, 0, xsize*ysize*sizeof(uint32_t));
|
||||
#else
|
||||
|
||||
/* Output PPM file header ... */
|
||||
|
||||
Reference in New Issue
Block a user