NDSummary.OnToolTipsLoaded("File:v9990.h",{688:"
void V9_SetPort(
u8 port,
u8 value
) __PRESERVES(b, d, e, h, iyl, iyh)
Set port value.
",689:"
u8 V9_GetPort(
u8 port
) __PRESERVES(b, d, e, h, l, iyl, iyh)
Get port value.
",690:"
void V9_SetRegister(
u8 reg,
u8 val
) __PRESERVES(b, c, d, e, h, iyl, iyh)
Set register value.  This function as no effect if register is read-only.
",691:"
void V9_SetRegister16(
u8 reg,
u16 val
) __PRESERVES(b, h, l, iyl, iyh)
Set register value.  This function as no effect if register is read-only.
",692:"
u8 V9_GetRegister(
u8 reg
) __PRESERVES(b, c, d, e, h, l, iyl, iyh)
Get register value.
",693:"
inline void V9_SetFlag(
u8 reg,
u8 mask,
u8 flag
)
Helper function to change some bits in a given register.  The function get a register value, apply a mask, \'or\' the new value, than set the register.
",695:"
void V9_SetWriteAddress(
u32 addr
) __PRESERVES(b, iyl, iyh)
Initialize VRAM address for writing.
",696:"
void V9_SetReadAddress(
u32 addr
) __PRESERVES(b, iyl, iyh)
Initialize VRAM address for reading.
",697:"
void V9_FillVRAM_CurrentAddr(
u8 value,
u16 count
)
Fill VRAM with 8-bits value from the previously setup write VRAM address.  V9_SetWriteAddress have to be called first.
",698:"
void V9_FillVRAM16_CurrentAddr(
u16 value,
u16 count
)
Fill VRAM with 16-bits value from the previously setup write VRAM address.  V9_SetWriteAddress have to be called first.
",699:"
void V9_WriteVRAM_CurrentAddr(
const u8* src,
u16 count
)
Copy data from RAM buffer to the previously setup write VRAM address.  V9_SetWriteAddress have to be called first.
",700:"
void V9_ReadVRAM_CurrentAddr(
const u8* dest,
u16 count
)
Copy data from the previously setup read VRAM address to a RAM buffer.  V9_SetReadAddress have to be called first.
",701:"
void V9_Poke_CurrentAddr(
u8 val
) __PRESERVES(b, c, d, e, h, l, iyl, iyh)
Write a 8-bits value to the previously setup write VRAM address.  V9_SetWriteAddress have to be called first.
",702:"
void V9_Poke16_CurrentAddr(
u16 val
) __PRESERVES(b, c, d, e, iyl, iyh)
Write a 16-bits value to the previously setup write VRAM address.  V9_SetWriteAddress have to be called first.
",703:"
u8 V9_Peek_CurrentAddr() __PRESERVES(b, c, d, e, h, l, iyl, iyh)
Read a 8-bits value from the previously setup write VRAM address.  V9_SetReadAddress have to be called first.
",704:"
u16 V9_Peek16_CurrentAddr() __PRESERVES(b, c, h, l, iyl, iyh)
Read a 16-bits value from the previously setup write VRAM address.  V9_SetReadAddress have to be called first.
",705:"
inline void V9_FillVRAM(
u32 addr,
u8 value,
u16 count
)
Fill VRAM with 8-bits value start to a given VRAM address.
",706:"
inline void V9_FillVRAM16(
u32 addr,
u16 value,
u16 count
)
Fill VRAM with 16-bits value start to the given VRAM address.
",707:"
inline void V9_WriteVRAM(
u32 addr,
const u8* src,
u16 count
)
Copy data from a RAM buffer to the given VRAM address.
",708:"
inline void V9_ReadVRAM(
u32 addr,
const u8* dest,
u16 count
)
Copy data from a given VRAM address to a RAM buffer.
",709:"
inline void V9_Poke(
u32 addr,
u8 val
)
Write a 8-bits value to the given VRAM address.
",710:"
inline void V9_Poke16(
u32 addr,
u16 val
)
Write a 16-bits value to the given VRAM address.
",711:"
inline u8 V9_Peek(
u32 addr
)
Read a 8-bits value from at the given VRAM address.
",712:"
inline u16 V9_Peek16(
u32 addr
)
Read a 16-bits value from at the given VRAM address.
",714:"
void V9_SetScreenMode(
u8 mode
)
Set the current screen mode.
",715:"
inline void V9_SetBPP(
u8 bpp
)
Set bitmap bit-per-pixel value.
",716:"
void V9_SetColorMode(
u8 mode
)
Set bitmap color mode.
",717:"
inline u8 V9_GetBPP()
Get bit number per pixel.
",718:"
inline void V9_SetImageSpaceWidth(
u8 width
)
Set number of pixels in X direction of image space.
",719:"
inline u8 V9_GetImageSpaceWidth()
Get number of pixels in X direction of image space.
",720:"
inline void V9_SetDisplayEnable(
bool enable
)
Enalbe or disable the screen display.
",721:"
inline void V9_SetBackgroundColor(
u8 color
)
Set background color.
",722:"
inline u8 V9_GetBackgroundColor()
Get background color.
",723:"
inline void V9_SetAdjustOffset(
u8 offset
)
Adjustment of the display location on the screen.
",724:"
inline void V9_SetAdjustOffsetXY(
i8 x,
i8 y
)
Adjustment of the display location on the screen.
",725:"
inline void V9_SetLayerPriority(
u8 x,
u8 y
)
Set layer priority for P1 mode.
",727:"
inline u8 V9_GetStatus()
Get status port value.
",728:"
inline bool V9_IsVBlank()
Is vertical non-display period.
",729:"
inline bool V9_IsHBlank()
Is horizontal non-display period.
",730:"
inline bool V9_IsCmdDataReady()
Check if command data transfer ready.
",731:"
inline bool V9_IsCmdRunning()
Check if a command is in process.
",732:"
inline bool V9_IsCmdComplete()
Check if a no command is in process.
",733:"
inline bool V9_IsSecondField()
Check if render is in the second field period during interlace.
",735:"
inline void V9_SetInterrupt(
u8 flags
)
Set interruption flags.
",736:"
inline void V9_DisableInterrupt()
Disable all interruptions.
",737:"
inline void V9_SetVBlankInterrupt(
bool enable
)
Set vertical blank interruption.
",738:"
inline void V9_SetHBlankInterrupt(
bool enable
)
Set horizontal blank interruption.
",739:"
inline void V9_SetCmdEndInterrupt(
bool enable
)
Set command end interruption.
",740:"
inline void V9_SetInterruptLine(
u16 line
)
Specification of vertical position where display position interrupt occurs.
",741:"
inline void V9_SetInterruptEveryLine()
Set line interrupt on every line.
",742:"
inline void V9_SetInterruptX(
u8 x
)
Specification of horizontal position where display position interrupt occurs.
",744:"
void V9_SetScrollingX(
u16 x
)
Set horizontal scrolling value.
",745:"
void V9_SetScrollingY(
u16 y
)
Set vertical scrolling value.
",746:"
inline void V9_SetScrolling(
u16 x,
u16 y
)
Set horizontal and vertical scrolling values.
",747:"
void V9_SetScrollingBX(
u16 x
)
Set horizontal scrolling value for layer B (P1 mode only).
",748:"
void V9_SetScrollingBY(
u16 y
)
Set vertical scrolling value for layer B (P1 mode only).
",749:"
inline void V9_SetScrollingB(
u16 x,
u16 y
)
Set horizontal and vertical scrolling values for layer B (P1 mode only).
",751:"
inline void V9_SetCursorEnable(
bool enable
)
Enable/disable all cursor display.
",752:"
void V9_SetCursorAttribute(
u8 id,
u16 x,
u16 y,
u8 color
)
Set the given cursor atribute (for bitmap modes).
",753:"
void V9_SetCursorDisplay(
u8 id,
bool enable
)
Display/hide the given cursor
",754:"
inline void V9_SetCursorPattern(
u8 id,
const u8* data
)
Set the given cursor pattern.
",755:"
inline void V9_SetCursorPalette(
u8 offset
)
Set cursor palette offset.
",757:"
inline void V9_SetSpriteEnable(
bool enable
)
Enable/disable all sprites display.
",758:"
inline void V9_SetSpritePatternAddr(
u8 addr
)
Set sprite patterns VRAM address.
",759:"
inline void V9_SetSpritePaletteOffset(
u8 offset
)
Set sprite palette offset.
",760:"
inline void V9_SetSpriteP1(
u8 id,
const V9_Sprite* attr
)
Set sprite attribute for P1 mode.
",761:"
inline void V9_SetSpritePatternP1(
u8 id,
u8 pat
)
Set sprite pattern for P1 mode.
",762:"
inline void V9_SetSpritePositionP1(
u8 id,
u8 x,
u8 y
)
Set sprite position for P1 mode.
",763:"
inline void V9_SetSpriteInfoP1(
u8 id,
u8 info
)
Set sprite additionnal information for P1 mode.
",764:"
inline void V9_SetSpriteEnableP1(
u8 id,
bool enable
)
Set sprite enable flag for P1 mode.
",765:"
inline void V9_SetSpriteDisableP1(
u8 id,
bool disable
)
Set sprite disable flag for P1 mode.
",766:"
inline void V9_SetSpritePriorityP1(
u8 id,
u8 prio
)
Set sprite priority for P1 mode.
",767:"
inline void V9_SetSpritePaletteP1(
u8 id,
u8 pal
)
Set sprite palette for P1 mode.
",768:"
inline void V9_SetSpriteP2(
u8 id,
const V9_Sprite* attr
)
Set sprite attribute for P2 mode.
",769:"
inline void V9_SetSpritePatternP2(
u8 id,
u8 pat
)
Set sprite pattern for P2 mode.
",770:"
inline void V9_SetSpritePositionP2(
u8 id,
u8 x,
u8 y
)
Set sprite position for P2 mode.
",771:"
inline void V9_SetSpriteInfoP2(
u8 id,
u8 info
)
Set sprite additionnal information for P2 mode.
",772:"
inline void V9_SetSpriteEnableP2(
u8 id,
bool enable
)
Set sprite enable flag for P2 mode.
",773:"
inline void V9_SetSpriteDisableP2(
u8 id,
bool disable
)
Set sprite disable flag for P2 mode.
",774:"
inline void V9_SetSpritePriorityP2(
u8 id,
u8 prio
)
Set sprite priority for P2 mode.
",775:"
inline void V9_SetSpritePaletteP2(
u8 id,
u8 pal
)
Set sprite palette for P2 mode.
",777:"
void V9_SetPaletteEntry(
u8 index,
u16 color
) __PRESERVES(h, l, iyl, iyh)
Set the color of a given palette entry.
",778:"
inline void V9_SetPalette(
u8 first,
u8 num,
const u16* table
)
Set the colors of a given palette entries.
",779:"
inline void V9_SetPaletteAll(
const u16* table
)
Set the colors of all the palette 64 entries.
",780:"
inline void V9_SelectPaletteP1(
u8 a,
u8 b
)
Set the P1 mode palette offset.
",781:"
inline void V9_SelectPaletteP2(
u8 a
)
Set the P2 mode palette offset.
",782:"
inline void V9_SelectPaletteBP2(
u8 a
)
Set the BP2 mode palette offset (R#13 PLTO5-2).
",783:"
inline void V9_SelectPaletteBP4(
u8 a
)
Set the BP4 mode palette offset (R#13 PLTO5-4).
",785:"
inline void V9_SetCommandSX(
u16 sx
)
Set source X-coordinate.
",786:"
inline void V9_SetCommandSY(
u16 sy
)
Set source Y-coordinate.
",787:"
inline void V9_SetCommandSA(
u32 sa
)
Set source VRAM address.
",788:"
inline void V9_SetCommandDX(
u16 dx
)
Set destination X-coordinate.
",789:"
inline void V9_SetCommandDY(
u16 dy
)
Set destination Y-coordinate.
",790:"
inline void V9_SetCommandDA(
u32 da
)
Set destination VRAM address.
",791:"
inline void V9_SetCommandNX(
u16 nx
)
Set the number of pixels in X direction.
",792:"
inline void V9_SetCommandNY(
u16 ny
)
Set the number of pixels in Y direction.
",793:"
inline void V9_SetCommandMJ(
u16 mj
)
Set the length of the longer side of the rectangle.
",794:"
inline void V9_SetCommandMI(
u16 mi
)
Set the length of the shorter side of the rectangle.
",795:"
inline void V9_SetCommandNA(
u32 na
)
Set the number of bytes.
",796:"
inline void V9_SetCommandArgument(
u8 arg
)
Set command argument.
",797:"
inline void V9_SetCommandLogicalOp(
u8 lop
)
Set command logical operation.
",798:"
inline void V9_SetCommandWriteMask(
u16 wm
)
Set command write mask.
",799:"
inline void V9_SetCommandFC(
u16 fc
)
Set color code of font data "1".
",800:"
inline void V9_SetCommandBC(
u16 bc
)
Set color code of font data "0".
",801:"
inline void V9_ExecCommand(
u8 op
)
Set operation code.
",802:"
inline u16 GetCommandBX()
Set search command border coordinate.
",804:"
inline void V9_CommandSTOP()
Command being executed is stopped.
",805:"
Data is transferred from CPU to VRAM rectangle area.  Note: Infinished function; don\'t use it.
",806:"
inline void V9_CommandLMMV(
u16 dx,
u16 dy,
u16 nx,
u16 ny,
u8 arg,
u16 fc
)
VRAM rectangle area is painted out.
",807:"
VRAM rectangle area data is transferred to CPU.  Note: Infinished function; don\'t use it.
",808:"
inline void V9_CommandLMMM(
u16 sx,
u16 sy,
u16 dx,
u16 dy,
u16 nx,
u16 ny,
u8 arg
)
Rectangle area data is transferred from VRAM to VRAM.
",809:"
inline void V9_CommandCMMC(
u16 dx,
u16 dy,
u16 nx,
u16 ny,
u8 arg,
u16 fc,
u16 bc
)
CPU character data is color-developed and transferred to VRAM rectangle area.
",810:"
inline void V9_CommandCMMM(
u32 sa,
u16 dx,
u16 dy,
u16 nx,
u16 ny,
u8 arg,
u16 fc,
u16 bc
)
VRAM character data is color-developed and transferred to VRAM rectangle area.
",811:"
inline void V9_CommandBMXL(
u32 sa,
u16 dx,
u16 dy,
u16 nx,
u16 ny,
u8 arg
)
Data on VRAM linear address is transferred to VRAM rectangle area.
",812:"
inline void V9_CommandBMLX(
u16 sx,
u16 sy,
u32 da,
u16 nx,
u16 ny,
u8 arg
)
VRAM rectangle area data is transferred onto VRAM linear address.
",813:"
inline void V9_CommandBMLL(
u32 sa,
u32 da,
u32 na,
u8 arg
)
Data on VRAM linear address is transferred onto VRAM linear address.
",814:"
inline void V9_CommandLINE(
u16 dx,
u16 dy,
u16 mj,
u16 mi,
u8 arg,
u16 fc
)
Straight line is drawn on X/Y-coordinates.
",815:"
inline void V9_CommandSEARCH(
u16 sx,
u16 sy,
u8 arg,
u16 fc
)
Border color coordinates on X/Y space are detected.
",816:"
inline void V9_CommandPOINT(
u16 sx,
u16 sy
)
Color code of specified point on X/Y-coordinates is read out.
",817:"
inline void V9_CommandPSET(
u16 dx,
u16 dy,
u16 fc,
u8 shift
)
Drawing is executed at drawing point on X/Y-coordinates.
",818:"
inline void V9_CommandADVANCE(
u16 dx,
u16 dy,
u8 shift
)
Drawing point on X/Y-coordinates is shifted.
",820:"
bool V9_Detect()
Detecting the presence of a V9990 card
",821:"
void V9_ClearVRAM() __PRESERVES(d, e, h, l, iyl, iyh)
Clear the whole 512 KB of VRAM with zero
",822:"
inline void V9_WaitCmdEnd()
Wait for current command completion
",823:"
inline u32 V9_TileAddrP1A(
u8 x,
u8 y
)
Get address of the given X/Y tile coordinate for layer A of P1 mode.
",824:"
inline u32 V9_TileAddrP1B(
u8 x,
u8 y
)
Get address of the given X/Y tile coordinate for layer B of P1 mode.
",825:"
inline u32 V9_TileAddrP2(
u8 x,
u8 y
)
Get address fo the given X/Y tile coordinate for P2 mode.
"});