Course Solutions Uncategorized (Solved) : Assembly Programming Question Q1 Add New Codes Arryscanasm Codes Tell New Codes Added Scan Q31374344 . . . .

(Solved) : Assembly Programming Question Q1 Add New Codes Arryscanasm Codes Tell New Codes Added Scan Q31374344 . . . .

 

Assembly Programming Question:

Q1. Add some NEW codes to theArryScan.asm codes below and tell me what was the NEW codes youadded.

; Scanning an Array (ArryScan.asm)

; Scan an array for the first nonzero value.

INCLUDE Irvine32.inc

.data

intArray SWORD 0,0,0,0,1,20,35,-12,66,4,0

;intArray SWORD 1,0,0,0

;intArray SWORD 0,0,0,0

;intArray SWORD 0,0,0,1

noneMsg BYTE “A non-zero value was not found”,0

.code

main PROC

mov ebx,OFFSET intArray ; point to the array

mov ecx,LENGTHOF intArray ; loop counter

L1:

cmp WORD PTR [ebx],0 ; compare value to zero

jnz found ; found a value

add ebx,2 ; point to next

loop L1 ; continue the loop

jmp notFound ; none found

found:

movsx eax,WORD PTR [ebx] ; otherwise, display it

call WriteInt

jmp quit

notFound:

mov edx,OFFSET noneMsg ;

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Explain Ssl Tls Use Combination Symmetric Asymmetric Cryptographic Methods Answer Consider Q32520583 . . . .(Solved) : Explain Ssl Tls Use Combination Symmetric Asymmetric Cryptographic Methods Answer Consider Q32520583 . . . .

<p>Explain why SSL/TLS use a combination of symmetric andasymmetric cryptographic methods. In your answer consider therelationship between symmetric and asymmetric cryptographic methodsand their respective roles in securing the communication channel