Assembly Programming Question:
Add 1 or several new lines of code to the program below and tellme where and what it was that you’d added.
; ASCII Addition (ASCII_add.asm)
; This program performs ASCII arithmetic on digit stringshaving
; implied fixed decimal points.
INCLUDE Irvine32.inc
DECIMAL_OFFSET = 5 ; offset from right of string
.data
decimal_one BYTE “100123456789765” ; 1001234567.89765
decimal_two BYTE “900402076502015” ; 9004020765.02015
sum BYTE (SIZEOF decimal_one + 1) DUP(0),0
.code
main PROC
; Start at the last digit position.
mov esi,SIZEOF decimal_one – 1
mov edi,SIZEOF decimal_one
mov ecx,SIZEOF decimal_one
mov bh,0 ; set carry value to zero
L1: mov ah,0 ; clear AH before addition
mov al,decimal_one[esi] ; get the first digit
add al,bh ; add
PayPal Gateway not configured
PayPal Gateway not configured