Common Programs

Describes programs supplied with every Mecrisp-Stellaris Release. These are located in “mecrisp-stellaris-X.X.X/common”.

This page is a work in progress ....

All the programs below are loaded the usual way via a serial terminal

assembler-m0.txt

bitlog.txt

blocks.txt

calltrace.txt

charcomma.txt

conditional.txt

disassembler-m0.txt

Disassembles Cortex M0 Words into Assembly Language. Useful for optimising your Words etc.

Calling Word(s)

  • see
: three-plus 3 + ;  ok.

3 three-plus . 6  ok.

see three-plus
20000342: B500  push { lr }
20000344: 3603  adds r6 #3
20000346: BD00  pop { pc }
 ok.

disassembler-m3.txt

Same as disassembler-m0.txt but for the Cortex M3

dump.txt

Reads (dumps) bytes or regions of memory.

Calling Word(s)

  • dump16
  • dump
0 dump16
00000000 :  30 03 00 20 49 37 00 00   D9 35 00 00 D9 35 00 00  | 0.. I7..  .5...5.. |


0 $30 dump
00000000 :  30 03 00 20 49 37 00 00   D9 35 00 00 D9 35 00 00  | 0.. I7..  .5...5.. |
00000010 :  00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  | ........  ........ |
00000020 :  00 00 00 00 00 00 00 00   00 00 00 00 03 36 00 00  | ........  .....6.. |
00000030 :  00 00 00 00 00 00 00 00   03 36 00 00 B7 35 00 00  | ........  .6...5.. |

$30 $50 dump
00000030 :  00 00 00 00 00 00 00 00   03 36 00 00 B7 35 00 00  | ........  .6...5.. |
00000040 :  03 36 00 00 03 36 00 00   03 36 00 00 03 36 00 00  | .6...6..  .6...6.. |
00000050 :  03 36 00 00 27 36 00 00   4B 36 00 00 71 36 00 00  | .6..'6..  K6..q6.. |
00000060 :  03 36 00 00 03 36 00 00   03 36 00 00 03 36 00 00  | .6...6..  .6...6.. |
00000070 :  93 36 00 00 B7 36 00 00   DB 36 00 00 FD 36 00 00  | .6...6..  .6...6.. |
00000080 :  21 37 00 00 03 36 00 00   03 36 00 00 03 36 00 00  | !7...6..  .6...6.. |

editor.txt

examples.txt

experimental/

floored-divide.txt

fonts/

graphics-unicode-8x16.txt

graphics-unicode-8x8.txt

graphics.txt

longcomment.txt

mecrisp-registergenerator/

multitask.txt

nvic.txt

profiler.txt

prompt.txt

pseudorandom.txt

quotations.txt

registergenerator/

romans.txt

sine.txt

sqrt.txt

svd2forth-v2/

trace.txt

Can be used to stop the dreaded ‘Unhandled Interrupt 00000003 !’ message.

Calling Word(s)

  • ‘ ct-irq irq-fault !
Unhandled Interrupt 00000003 !

[3 ] 1FFF03C2 00010000 00010000 00010000
Calltrace:
00000000 00006A85 ( 00006A56 + 0000002E ) ct-irq
00000001 FFFFFFF9
00000002 0000000F
00000003 00000010
00000004 00000002
00000005 00000046
00000006 FFFFFFFF
00000007 0000149F ( 00001498 + 00000006 ) serial-emit?
00000008 00006444 ( 000063FA + 0000004A ) dump16
00000009 21000000
0000000A 20000008 ( 00008646 + 1FFF79C2 ) see
0000000B 00000000
0000000C 0000000A
0000000D 0000655F ( 00006538 + 00000026 ) dump
0000000E 000032BD ( 000031E4 + 000000D8 ) interpret
0000000F 20000008 ( 00008646 + 1FFF79C2 ) see
00000010 20000230 ( 00008646 + 1FFF7BEA ) see
00000011 000034A5 ( 00003474 + 00000030 ) quit