SuperGrafx Equivalent Functions

sgx_detect( void );

Returns TRUE (1) if exists; FALSE(0) if not.


sgx_set_screen_size( unsigned char value );sgx_set_xres( unsigned int x_pixels, unsigned char blur_flag );

sgx_vram_addr( unsigned char bat_x, unsigned char bat_y );

Simple function to return the screen video memory address of the character located at position x/y.


sgx_get_vram( unsigned int address );

sgx_put_vram( unsigned int address, unsigned int data );

sgx_set_tile_address( unsigned int vram );

sgx_set_tile_data( unsigned char __far *tiles, unsigned char num_tiles, unsigned char __far *palette_table, unsigned char tile_type );

sgx_load_vram( unsigned int vram, unsigned char __far *data, unsigned int num_words );

sgx_load_tile( unsigned int vram );

sgx_load_bat( unsigned int vram, unsigned char __far *data, unsigned char tiles_w, unsigned char tiles_h );
























Last updated