Documentation (c) 2006-2008 Hobby-Robotics, LLC


Chapter 4. Language

Table of Contents

Introduction
HBBR BASIC Basics
HBBR Basic Project
Configuring the project
HBBR Basic Language
Data Types
Literals
Variables
Constants
Strings
Arrays
Structures
Registers
Expressions and Operators
Address of the symbol AddressOf
Conversion operators
Flow Control
If Then statement
Select Case statement
Do Loop statement
For To Next statement
Goto statement
Subroutine and Function
Subroutine
Function
Interrupts with Irq
Runtime
Errors
Preprocessing

Copyright© 2006-2008 Hobby-Robotics, LLC All rights reserved. 33

HBBR Basic Language

Version 2.000

Copyright

This document is Copyright © 2006-2008 by Hobby-Robotics, LLC

All trademarks within this guide belong to their legitimate owners.

Introduction

This is informal introduction of the HBBR Basic language, for detailed information please refer to the Reference section of this manual. HBBR Basic is a modern compiled structured dialect of a classical BASIC programming language. It is designed for programming advanced 32 bit microcontrollers with support from comprehensive runtime. It is also striving to be a subset of the most popular BASIC language implementation for PC computers.

Note:

More information on programming languages and BASIC can be found here:

Wikipedia: Programming language

Wikipedia: BASIC

Wikipedia: Modern BASIC

Wikipedia: List of BASIC dialects

Wikipedia: Compiler

Wikipedia: Structured programming

Wikipedia: Integrated development environment

Start page for the NXP (former Philips) LPC2000 series

NXP: LPC2000

Start page for the Atmel AT91SAM7 series

Atmel: AT91SAM7

Wikipedia microcontroller links

Wikipedia: Microcontroller

Wikipedia: ARM7TDMI

Wikipedia: ARM architecture

For up to date information on HBBR Basic go to

HBBR: Basic Home Page

This document is divided into two sections, in the first section “HBBR Basic Basics” you will find introduction to the concepts behind programming language and its environment. This section is meant for a beginner, if you are familiar with programming you can skip it and proceed directly to the “HBBR Basic Language Details” section.