BEEP-8 SDK 1.0.0
Loading...
Searching...
No Matches
_b8PpuLoadimg Struct Reference

Structure representing an image loading command for the PPU (Pixel Processing Unit). More...

#include <ppu.h>

Public Attributes

unsigned na0: 24
 
unsigned code: 8
 
const u8 * cpuaddr
 
unsigned na1: 8
 
unsigned srcwtile: 6
 
unsigned na2: 2
 
unsigned srcytile: 6
 
unsigned na3: 2
 
unsigned srcxtile: 6
 
unsigned na4: 2
 
unsigned trnhtile: 6
 
unsigned na5: 2
 
unsigned trnwtile: 6
 
unsigned na6: 2
 
unsigned dstytile: 6
 
unsigned na7: 2
 
unsigned dstxtile: 6
 
unsigned na8: 2
 

Detailed Description

Structure representing an image loading command for the PPU (Pixel Processing Unit).

The BEEP-8 system uses tiles of size 8x8 pixels as the basic unit for BG (background) and SPRITE references. BEEP-8 has VRAM located in a different space from CPU memory, with a format of 64 tiles by 64 tiles. Both sprites and backgrounds can only reference VRAM.

The b8PpuLoadimg structure is used to transfer tile compositions stored in CPU memory to VRAM.

Member Data Documentation

◆ code

unsigned _b8PpuLoadimg::code

Command code for the image loading operation.

◆ cpuaddr

const u8* _b8PpuLoadimg::cpuaddr

Pointer to the tile data in CPU memory.

◆ dstxtile

unsigned _b8PpuLoadimg::dstxtile

X-coordinate in tiles of the destination in VRAM.

◆ dstytile

unsigned _b8PpuLoadimg::dstytile

Y-coordinate in tiles of the destination in VRAM.

◆ na0

unsigned _b8PpuLoadimg::na0

Reserved, not used.

◆ na1

unsigned _b8PpuLoadimg::na1

Reserved, not used.

◆ na2

unsigned _b8PpuLoadimg::na2

Reserved, not used.

◆ na3

unsigned _b8PpuLoadimg::na3

Reserved, not used.

◆ na4

unsigned _b8PpuLoadimg::na4

Reserved, not used.

◆ na5

unsigned _b8PpuLoadimg::na5

Reserved, not used.

◆ na6

unsigned _b8PpuLoadimg::na6

Reserved, not used.

◆ na7

unsigned _b8PpuLoadimg::na7

Reserved, not used.

◆ na8

unsigned _b8PpuLoadimg::na8

Reserved, not used.

◆ srcwtile

unsigned _b8PpuLoadimg::srcwtile

Width of the source image in tiles.

◆ srcxtile

unsigned _b8PpuLoadimg::srcxtile

X-coordinate in tiles of the source image.

◆ srcytile

unsigned _b8PpuLoadimg::srcytile

Y-coordinate in tiles of the source image.

◆ trnhtile

unsigned _b8PpuLoadimg::trnhtile

Height of the transfer region in tiles.

◆ trnwtile

unsigned _b8PpuLoadimg::trnwtile

Width of the transfer region in tiles.


The documentation for this struct was generated from the following file: