0

I am stuck on trying to figure out a few questions. The questions are listed below.

1: Given the data below, design IA-32 instructions to find the octal
string for X and save it in Y.

.data
X word 200
Y byte 6 dup (' ')

2: Given the data below, design IA-32 instructions to calculate the
Greatest Common Divisor of numbers in X and save it in Y.

.data
X dword -12000, 30000
Y dword ?

3: Given the same data below, design IA-32 instructions to replace the
first occurrence of string Y in string X with string Z.

.data
X byte "xyzyxnwicxyzalalalabcaaa"
Y byte "abc"
Z byte "1234"

I am a new Assembly programmer and am slowy learning. Any help would be great! Thank you very much.

1
Contributor
1
Reply
3
Views
5 Years
Discussion Span
Last Post by kww228
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.