msp430: lpm support; . uses base; expand dict size
parent
4bf01807b2
commit
494bd41b64
@ -1,18 +1,19 @@
|
||||
: vector! 10 sys ;
|
||||
: reg! 11 sys ;
|
||||
: reg@ 12 sys ;
|
||||
: 2reg! 13 sys ;
|
||||
: 2reg@ 14 sys ;
|
||||
: byte! 11 sys ;
|
||||
: byte@ 12 sys ;
|
||||
: reg! 13 sys ;
|
||||
: reg@ 14 sys ;
|
||||
: sr+ 15 sys ;
|
||||
: sr- 16 sys ;
|
||||
: lpm-exit 17 sys ;
|
||||
|
||||
: reg [ ' reg@ ' reg! ] literal literal ;
|
||||
: 2reg [ ' 2reg@ ' 2reg! ] literal literal ;
|
||||
: byte [ ' byte@ ' byte! ] literal literal ;
|
||||
|
||||
: set ( b r reg/wreg -- )
|
||||
: set ( b r reg/byte -- )
|
||||
>r over r> execute >r rot r> | -rot execute ;
|
||||
: clear ( b r reg/wreg -- )
|
||||
: clear ( b r reg/byte -- )
|
||||
>r over r> execute >r rot invert r> & -rot execute ;
|
||||
: toggle ( b r reg/wreg -- )
|
||||
: toggle ( b r reg/byte -- )
|
||||
>r over r> execute >r rot r> ^ -rot execute ;
|
||||
|
||||
|
Loading…
Reference in New Issue