Pregunta: | 4529 - MICROCONTROLADORES PIC16C71 |
Autor: | PEDRO ENRIQUE ALVAREZ MORENO |
NECESITO EL PROGRAMA DE LA MULTIPLIACACION EN EL LENGUAJE ASEMBLER, OJO QUE NO SEHAN POR MEDIO DE SUMAS SUCESIVAS |
Respuesta: | ember sanchez |
Aqui encontre una ritina que depronto te sirva para la multiplicacion espero que te sirva de algo.
;========================== ;Rutina de multiplicacion ;-------------------------- multi clrf H_byte clrf L_byte movlw 8 movwf count movf mulcnd,w bcf status,carry loop rrf mulplr btfsc status,cary addf H_byte rrf H_byte rrf L_byte goto loop retlw 0 ;-------------------------- ; REGISTROS ;========================== ;status = registro de estados ;mulcnd = multiplicando ;mulplr = Muntiplicador ;H_byte = Byte alto del resusltado ;L_byte = Byte bajo del resultado ;========================== si te sirve cuentame. Attentemente |