Loginskip to content

Archive for December 21st, 2006

NBC/NXC new beta

Thursday, December 21st, 2006

Beta 15 of NBC was released yesterday morning for Linux, Mac OSX, and Win32 platforms.  In this beta there are literally hundreds of new NBC API macros (~250) defined in NXTDefs.h.  Wrapper macros for all the drawing system functions are now available (PointOut, RectOut, LineOut, CircleOut, GraphicOut) as well as IOMap-based wrapper macros for drawing directly to normal and popup screen memory. 

Also available are several macros which allow direct access to the High Speed input and output buffers, the USB input, output, and poll buffers, the Low Speed input and output buffers, and the Bluetooth input and output buffers.  New macros have been added which provide full access to the 30 element Bluetooth Device Table as well as the 4 element Bluetooth Connection table and Brick Data information.

New NBC opcodes have been added to the compiler (strindex, strreplace, strlen, shl, and shr).  There is new support for compile-time checking of variable sizes (via sizeof and compchk operations). 

NXC has a number of new API functions, including several for string variable manipulation (with support for strings of any size).  The new string functions in b15 are NumToStr(value), StrCat(str1, str2, …, strN), SubStr(str, idx, len), StrReplace(str, idx, newStr), StrToNum(str), StrLen(str), and StrIndex(str, idx).

http://bricxcc.sourceforge.net/nbc/

BricxCC has also been updated to support the expanded NXC and NBC APIs.  The latest test release is available from the main BricxCC page in the NXT News section.