Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a working ARCTool assembly code that executed the logical or 1. (5 points)

ID: 3915786 • Letter: W

Question

write a working ARCTool assembly code that executed the logical or 1. (5 points) Write a working ARCIsol assembly code that executes the logical programming construct Turing machines and Finite State Machines will continue executing code until told to 'halt'. Please halt your code upon completion of the assigned taslk Initialize A=5, B=9; UNTIL (A >-B) 1 Until A is greater than or equal to B DO C=A+B STORE C A-A-1 B=B-2 !Add A to B store in C ! Subtract 1 from A ! Subtract 2 from B DONE Answe

Explanation / Answer

section .text global _start ;must be declared for using gcc _start: ;tell linker entry point mov eax,'5' sub eax, '0' mov ebx, '9' sub ebx, '0' mov al, 5 mov bl,9 loop1: cmp al,bl jl exit add eax, ebx add eax, '0' mov [sum], eax dec eax ; decrement by 1 dec ebx ; dec ebx ; decrements by 2 jmp loop1