![un programa emu8086 que ocupe thread un programa emu8086 que ocupe thread](https://docplayer.es/docs-images/44/14918313/images/page_7.jpg)
#Un programa emu8086 que ocupe thread software
Resultado Esperado: Enter a string (max 128 characters): innostunutsonniĮstamos usando este antiguo software emulador llamado emu8086 que tiene documentación en línea. Mi resultado: Enter a string (max 128 characters): abba Jne negative Nop, jump to print NOT-message and exit Je positive jump to ok, palindrome/empty buffer Lea si, mystr Source buffer address id SI(decremented)Ĭoop:mov al, Copy character from source Lea di, mystrREV Result buffer address into DI Lea di, mystr String mystring: Read string here! Esto es lo que he hecho hasta ahora: include "emu8086.inc" Mi programa solo imprime la primera letra de la cadena de entrada como cadena invertida y realmente no prueba el palíndromo correctamente. Nop, jump to print NOT-message and exitīort: mov ax,4c00h code for return to ms-dos Niis: cmp cl,0 test if end-of-comparison/buffer Source buffer address id SI(decremented)
![un programa emu8086 que ocupe thread un programa emu8086 que ocupe thread](https://0.academia-photos.com/attachment_thumbnails/34713683/mini_magick20180819-17516-t2vjsk.png)
Seur: mov length,cl Store # of characters in length copy mystr into mystrREV in reverse order count the number of characters in the buffer mystr into CX: Msg1 db "Enter a string (max 128 characters): ",0ĬALL PRINT_STRING Print message from Msg2 db 0ah,0dh,"The string is NOT a palindrome.",0 Msg3 db 0ah,0dh,"The string is a palindrome.",0 Modify the previous program so, that it checks whether the string is a palindrome. El trabajo consiste en llenar las líneas vacías comentadas con mi propio código. Estoy tratando de completar mi último ejercicio de laboratorio para mi curso de microprocesadores y realmente me vendría bien un poco de ayuda con esto.