Subject: Better ARM BASIC
From: rotaryeng
Date: 2/9/2014, 3:31 AM
To: AAA-rotaryeng

This is by far the best deal in the world for embedded microcomputers.

http://www.mikroe.com/mini/stm32-m0/

32 bit ARM BASIC

$38 USD including DHL shipping from Zagreb.

There is nothing more compact and lower cost than surface mount on
both sides of the PC board.

50 TO 75% of the instructions in any ARM assembly language program is the MOV instruction.
This is what the postal clerk behind the wall of PO boxes does most :)
Very straight forward and very mechanical.

MOVMove value

The MOV instruction transfers its <rhs> operand to the register specified by <dest>.

MOV <dest>,<rhs>

Examples:

MOV R0, R0, LSL #2..... ;Multiply R0 by four.
MOVS R0, R1............... ;Put R1 in R0, setting flags
MOV R1, #&80............ ;Set R1 to 128

LSL means left shift the binary data. "0100" left shift by #1 is "1000".
In effect this multiplies the binary number by 2. Only works if you
want to multiply by 2,4,8,16,32, etc.,etc..

RO, R1 are just special boxes.

; character indicates a comment.

Assembly language is just a short hand list of instruction for the postal clerk.
You now know to program in ARM assembly language. Your salary just went
up by a factor of 10 :)


Paul Lamar

The Rotary Engine News Letter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net.
You Tube http://tinyurl.com/beqqxas.
Copyright 1998-2013 All world wide rights reserved.