|
Project Information
Featured
Downloads
Links
|
About DK-BASICDK-BASIC is a BASIC interpreter, written in C, inspired by GW-BASIC. The target platform is 8-bit AVR microcontrollers.
SizeAt this early stage of the project, code size and interpreter speed has not been optimized. Already, with only a limited feature set, the compiled code is nearly 32 KB. Execution should be possible in < 1 KB RAM, but extensive use is made of dynamically allocated memory and complex programs and many variables will consume additional memory. SpeedThere is overhead associated with program execution in DK-BASIC due to it being an interpreter rather than a compiler. While resource-intensive applications are better suited to C or assembler, many types of control and user-interface applications can be implemented using DK-BASIC. Project statusThe project is at an alpha stage - it is currently has limited usability. A small subset of GW-BASIC functions have been implemented and few AVR-specific features have been added. Compatibility with GW-BASICDK-BASIC aims to be an equivalent of the GW-BASIC interpreter, for AVR microcontrollers. Some features differ (low-level functions, use of assembly-language functions), but where possible and practical, compatibility will be maintained. Program editor and direct modeAn interactive interface is available in which programs can be edited by entering a line number, and statements entered without a line number are executed immediately. Supported features
More information about features:
Known bugsFor a list of known bugs, see the Issues page. Contact informationQuestions about DK-BASIC can be sent to info@dk-basic.com. Example BASIC program10 A = PEEK(&h29) AND 1 ' save initial status of PIND 20 PRINT "Waiting for button press..." 30 B = PEEK(&h29) AND 1 ' read status of PIND 40 IF B = A THEN GOTO 30 ' loop until PIND.0 changes 50 PRINT "Button pressed!" |