2 ; -----------------------------------------------------------------------
3 ; TESTXASM.4th for MSP_EXP430FR5994
4 ; -----------------------------------------------------------------------
13 ABORT" FastForth V4.1 please!"
145 R> OVER - 0 MAX SPACES TYPE
261 DO I C@ $7E MIN $20 MAX EMIT LOOP
279 ; -----------------------------------------------------------------------------
280 ; DTCforthMSP430FR5xxx ASSEMBLER: CALLA (without extended word)
281 ; -----------------------------------------------------------------------------
282 ; absolute and immediate instructs. must be written as $x.xxxx (DOUBLE numbers)
283 ; indexed instructions must be written as $xxxx(REG) (single numbers)
284 ; -----------------------------------------------------------------------------
291 ; you should see: 4A 13
299 ; you should see: 5A 13 56 34
307 ; you should see: 5F 13 00 00
315 ; you should see: 6A 13
323 ; you should see: 6F 13
331 ; you should see: 7A 13
339 ; you should see: 82 13 56 34
347 ; you should see: B5 13 89 67
350 ; -----------------------------------------------------------------------------
351 ; DTCforthMSP430FR5xxx ASSEMBLER, OPCODES IV : Adda|Cmpa|Mova|Suba
352 ; -----------------------------------------------------------------------------
353 ; absolute and immediate instructs. must be written as $x.xxxx (DOUBLE numbers)
354 ; indexed instructions must be written as $xxxx(REG) (single numbers)
355 ; -----------------------------------------------------------------------------
362 ; you should see: 0B 0A
370 ; you should see: 1A 0B
378 ; you should see: 2B 01 45 23
386 ; you should see: 3E 0F 02 00
394 ; you should see: 3C 0A 34 12
402 ; you should see: 61 0B 45 23
410 ; you should see: 7F 0E 00 00
418 ; you should see: 7A 0C 34 12
426 ; you should see: 8C 00 01 00
434 ; you should see: 9C 01 45 23
442 ; you should see: AC 02 56 34
450 ; you should see: BC 03 67 45
458 ; you should see: CB 0A
466 ; you should see: DB 0A
474 ; you should see: EB 0A
482 ; you should see: FB 0A
485 ; -----------------------------------------------------------------------------
486 ; DTCforthMSP430FR5xxx ASSEMBLER, OPCODES V extended double operand
487 ; -----------------------------------------------------------------------------
488 ; absolute and immediate instructs. must be written as $x.xxxx (DOUBLE numbers)
489 ; indexed instructions must be written as $.xxxx(REG) (DOUBLE numbers)
490 ; -----------------------------------------------------------------------------
498 ; you should see: 0B 4C 40 18 0B 4C
507 ; you should see: 0B 5B 00 18 4B 5B
517 ; you should see: 0B 5B 89 18 4B 5B
527 ; you should see: 0B 5B 07 18 4B 5B
536 ; you should see: 3B 60 76 98 80 1A 7B 60 76 98
545 ; you should see: 1B 62 76 98 80 1A 5B 62 76 98
551 XORX.B $6.5432(R12),R11
554 ; you should see: 5B EC 32 54 46 18 5B EC 32 54
560 SUBCX.A R11,$6.5432(R12)
563 ; you should see: 8C 7B 32 54 06 18 CC 7B 32 54
569 XORX.B R11,$6.5432(R12)
572 ; you should see: CC EB 32 54 46 18 CC EB 32 54
575 ; -----------------------------------------------------------------------------
576 ; DTCforthMSP430FR5xxx ASSEMBLER, OPCODES VI extended single operand
577 ; -----------------------------------------------------------------------------
578 ; absolute and immediate instructs. must be written as $x.xxxx (DOUBLE numbers)
579 ; indexed instructions must be written as $.xxxx(REG) (DOUBLE numbers)
580 ; -----------------------------------------------------------------------------
588 ; you should see: 09 11 40 18 09 11
597 ; you should see: 29 10 00 18 69 10
606 ; you should see: 2C 10 00 18 6C 10
615 ; you should see: 39 10 00 19 79 10
625 ; you should see: 0B 10 08 19 4B 10
635 ; you should see: 0B 10 89 19 4B 10
644 ; you should see: 30 12 45 23 40 18 30 12 45 23
653 ; you should see: 12 12 78 56 00 1A 52 12 78 56
662 ; you should see: 52 12 33 00 40 18 52 12 33 00
671 ; you should see: 5B 12 44 33 40 18 5B 12 44 33
676 ' # 2 + CONSTANT BASE
682 BASE @ %10 BASE ! SWAP 8 EMIT . BASE !
687 BASE @ %10 BASE ! SWAP 8 EMIT U. BASE !
708 ; you should see: %111100001111000
726 ; you should see: %111100001111000
739 ; you should see: %111100001111
752 ; you should see: %11110000
769 ; you should see: %100000000000000
787 ; you should see: %100000000000000
801 ; you should see: %10000000
817 ; you should see: %-100000000000000
835 ; you should see: %-100000000000000
848 ; you should see: %-10000000000000
861 ; you should see: %-1000000000000
874 ; you should see: %-100000000
890 RLAX_T ; you should see -2 -->
907 RLAX_T ; you should see -2 -->
919 RLAX_T ; you should see -4 -->
931 RLAX_T ; you should see -8 -->
943 RLAX_T ; you should see -256 -->
960 ADDX_T ; you should see -1 -->
978 ADDX_T ; you should see -1 -->
991 ADDX_T ; you should see -2 -->
1004 ADDX_T ; you should see -8 -->
1021 SUBX_T ; you should see 1 -->
1039 SUBX_T ; you should see 1 -->
1052 SUBX_T ; you should see 2 -->
1065 SUBX_T ; you should see 8 -->
1079 SUBX_T ; you should see 16 -->
1093 SUBX_T ; you should see 1 -->
1107 SUBX_T ; you should see 2 -->