?? msp430x24x_mpy_04.s43
字號(hào):
;******************************************************************************
; MSP430x24x Demo - 8x8 Signed Multiply
;
; Description: Hardware multiplier is used to multiply two numbers.
; The calculation is automatically initiated after the second operand is
; loaded. Results are stored in RESLO, RESHI and SUMEXT = FFFF if result is
; negative, SUMEXT = 0 otherwise. (In this eg: 0x04*0x84 = FFFFFE10)
;
; ACLK = 32.768kHz, MCLK = SMCLK = default DCO
;
; MSP430x24x
; -----------------
; /|\| |
; | | |
; --|RST |
; | |
; | |
;
; B. Nisarga
; Texas Instruments Inc.
; September 2007
; Built with IAR Embedded Workbench Version: 3.42A
;******************************************************************************
#include <msp430x24x.h>
;-------------------------------------------------------------------------------
RSEG CSTACK ; Define stack segment
;-------------------------------------------------------------------------------
RSEG CODE ; Assemble to Flash memory
;-----------------------------------------------------------------------------
RESET mov.w #SFE(CSTACK),SP ; Initialize stackpointer
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
mov.b #004h,&0132h ; Load first operand -signed mult
sxt &0132h ; Extend sign
mov.b #084h,&0138h ; Load second operand
sxt &0138h ; Extend sign
bis.w #LPM4,SR ; LPM4
nop ; set BREAKPOINT here
;------------------------------------------------------------------------------
COMMON INTVEC ; Interrupt Vectors
;------------------------------------------------------------------------------
ORG RESET_VECTOR ; MSP430 RESET Vector
DW RESET ;
END
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -