Question: This is an assembly code. I need help on changing the program to allow the user to input the address below and return it with

This is an assembly code. I need help on changing the program to allow the user to input the address below and return it with their input in a buisness card format.

section .data address db "1234 Los Angeles St.", 0 cityState db "Los Angeles, CA", 0

section .text global _start

_start: ; print top border mov eax, 4 ; system call for write mov ebx, 1 ; file descriptor for stdout mov ecx, topBorder ; address of top border string mov edx, 23 ; length of top border string int 0x80 ; call kernel

; print address line 1 mov eax, 4 ; system call for write mov ebx, 1 ; file descriptor for stdout mov ecx, address ; address of address string mov edx, 20 ; length of address string int 0x80 ; call kernel

; print address line 2 mov eax, 4 ; system call for write mov ebx, 1 ; file descriptor for stdout mov ecx, cityState ; address of city and state string mov edx, 15 ; length of city and state string int 0x80 ; call kernel

; print bottom border mov eax, 4 ; system call for write mov ebx, 1 ; file descriptor for stdout mov ecx, bottomBorder ; address of bottom border string mov edx, 23 ; length of bottom border string int 0x80 ; call kernel

; exit program mov eax, 1 ; system call for exit xor ebx, ebx ; exit code 0 int 0x80 ; call kernel

section .data topBorder db "<--------------------------->", 0 bottomBorder db "<--------------------------->", 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!