NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
RIC Macro Wrappers

Macro wrappers for use in defining RIC byte arrays. More...

Macros

#define RICSetValue(_data, _idx, _newval)   _data[(_idx)] = (_newval)&0xFF; _data[(_idx)+1] = (_newval)>>8
 Set the value of an element in an RIC data array.
 
#define RICImgPoint(_X, _Y)   (_X)&0xFF, (_X)>>8, (_Y)&0xFF, (_Y)>>8
 Output an RIC ImgPoint structure.
 
#define RICImgRect(_Pt, _W, _H)   _Pt, (_W)&0xFF, (_W)>>8, (_H)&0xFF, (_H)>>8
 Output an RIC ImgRect structure.
 
#define RICOpDescription(_Options, _Width, _Height)   8, 0, 0, 0, (_Options)&0xFF, (_Options)>>8, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
 Output an RIC Description opcode.
 
#define RICOpCopyBits(_CopyOptions, _DataAddr, _SrcRect, _DstPoint)   18, 0, 3, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_DataAddr)&0xFF, (_DataAddr)>>8, _SrcRect, _DstPoint
 Output an RIC CopyBits opcode.
 
#define RICOpPixel(_CopyOptions, _Point, _Value)   10, 0, 4, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
 Output an RIC Pixel opcode.
 
#define RICOpLine(_CopyOptions, _Point1, _Point2)   12, 0, 5, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point1, _Point2
 Output an RIC Line opcode.
 
#define RICOpRect(_CopyOptions, _Point, _Width, _Height)   12, 0, 6, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
 Output an RIC Rect opcode.
 
#define RICOpCircle(_CopyOptions, _Point, _Radius)   10, 0, 7, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Radius)&0xFF, (_Radius)>>8
 Output an RIC Circle opcode.
 
#define RICOpNumBox(_CopyOptions, _Point, _Value)   10, 0, 8, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
 Output an RIC NumBox opcode.
 
#define RICOpSprite(_DataAddr, _Rows, _BytesPerRow, _SpriteData)   ((_Rows*_BytesPerRow)+((_Rows*_BytesPerRow)%2)+8)&0xFF, ((_Rows*_BytesPerRow)+((_Rows*_BytesPerRow)%2)+8)>>8, 1, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_Rows)&0xFF, (_Rows)>>8, (_BytesPerRow)&0xFF, (_BytesPerRow)>>8, _SpriteData
 Output an RIC Sprite opcode.
 
#define RICSpriteData(...)   __VA_ARGS__
 Output RIC sprite data.
 
#define RICOpVarMap(_DataAddr, _MapCount, _MapFunction)   ((_MapCount*4)+6)&0xFF, ((_MapCount*4)+6)>>8, 2, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_MapCount)&0xFF, (_MapCount)>>8, _MapFunction
 Output an RIC VarMap opcode.
 
#define RICMapElement(_Domain, _Range)   (_Domain)&0xFF, (_Domain)>>8, (_Range)&0xFF, (_Range)>>8
 Output an RIC map element.
 
#define RICMapFunction(_MapElement,...)   _MapElement, __VA_ARGS__
 Output an RIC VarMap function.
 
#define RICArg(_arg)   ((_arg)|0x1000)
 Output an RIC parameterized argument.
 
#define RICMapArg(_mapidx, _arg)   ((_arg)|0x1000|(((_mapidx)&0xF)<<8))
 Output an RIC parameterized and mapped argument.
 
#define RICOpPolygon(_CopyOptions, _Count, _ThePoints)   ((_Count*4)+6)&0xFF, ((_Count*4)+6)>>8, 10, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_Count)&0xFF, (_Count)>>8, _ThePoints
 Output an RIC Polygon opcode.
 
#define RICPolygonPoints(_pPoint1, _pPoint2,...)   _pPoint1, _pPoint2, __VA_ARGS__
 Output RIC polygon points.
 
#define RICOpEllipse(_CopyOptions, _Point, _RadiusX, _RadiusY)   12, 0, 9, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_RadiusX)&0xFF, (_RadiusX)>>8, (_RadiusY)&0xFF, (_RadiusY)>>8
 Output an RIC Ellipse opcode.
 

Detailed Description

Macro wrappers for use in defining RIC byte arrays.