ECE 267 HW5: String to Integer & Integer to String in IA-32 Assembly - Prof. Vladimir Gonc, Assignments of Computer Architecture and Organization

Information about homework assignment 5 for the computer organization and programming course, ece 267, at the university of illinois at chicago. Students are required to write two intel ia-32 assembly language procedures: 'string2integer' and 'integer2string'. The former converts an integer represented by a null-terminated ascii character string to an unsigned binary code, while the latter converts an unsigned integer binary code to a null-terminated ascii character string. Instructions, examples, and requests students to draw flowcharts and provide printed copies of their procedures.

Typology: Assignments

2011/2012

Uploaded on 05/18/2012

koofers-user-u8h
koofers-user-u8h 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2005 University of Illinois at Chicago ECE 267 V. Goncharoff Homework #4
Web code: choose any four characters that will be used to post your
scores anonymously on the web
Last name:
First name:
ECE
U
UI
IC
C
D
De
ep
pa
ar
rt
tm
me
en
nt
t
o
of
f
E
El
le
ec
ct
tr
ri
ic
ca
al
l
a
an
nd
d
C
Co
om
mp
pu
ut
te
er
r
E
En
ng
gi
in
ne
ee
er
ri
in
ng
g
Computer Organization and Programming
ECE 267
Homework Assignment #5 Cover Sheet:
Due in class on Friday, October 7, 2005.
(Keep a copy of your submission; homework is not returned in class.)
pf2

Partial preview of the text

Download ECE 267 HW5: String to Integer & Integer to String in IA-32 Assembly - Prof. Vladimir Gonc and more Assignments Computer Architecture and Organization in PDF only on Docsity!

 2005 University of Illinois at Chicago ECE 267 V. Goncharoff Homework #

Web code: ←^ choose any four characters that will be used to post your

scores anonymously on the web

Last name:

First name:

ECE

UIUICC

De Deppaarrttmmeenntt ooff ElEleeccttrriiccaall aanndd CCoommppuutteerr EnEnggiinneeeerriinngg

Computer Organization and Programming

ECE 267

Homework Assignment #5 Cover Sheet:

Due in class on Friday, October 7, 2005.

(Keep a copy of your submission; homework is not returned in class.)

 2005 University of Illinois at Chicago ECE 267 V. Goncharoff Homework #

1. Write an Intel IA-32 assembly language procedure named "String2Integer" that

converts the integer value (assumed in range 0 to 2 32 −1) represented by a null-

terminated ASCII character string in memory (whose address is assumed to

already be in register edx before this procedure is called) to an unsigned binary

code that is returned in register eax.

Example: the string ' 4 ', ' 3 ', 0 (whose starting address was passed to the

procedure in register edx) causes eax to be overwritten with bit pattern

0000002Bh.

a) Draw a flowchart of your procedure

b) Include a printed (not handwritten) copy of the procedure

2. Write an Intel IA-32 assembly language procedure named "Integer2String" that

converts the unsigned integer binary code in register eax to a null-terminated

ASCII character string in memory whose starting address is specified by

register edx. The string written to memory should be at most 11 bytes in

length (max. 10 characters plus a null code).

Example: eax = 0000002Bh causes the string ' 4 ', ' 3 ', 0 to be stored in memory

beginning at the address value that is returned in edx.

a) Draw a flowchart of your procedure

b) Include a printed (not handwritten) copy of the procedure