TASM Program To Add Two 8 Bit Numbers
TASM Program To Add Two 8 Bit Numbers
Objective:
Write an assembly language program for 8 bit addition .
Prerequisite:
TASM assembler
While masking F or f is not case sensitive. But in input procedure 41h number is considered for comparison
because 41h is ASCII hex value for ‘A’. In output procedure ‘0A’ is considered not ‘a’ is considered as small
case a has 61h ASCII hex value.So this input and output procedure are applicable for only capital ‘A’ to ‘F’
TASM Program :
Data segment
Data ends
Code segment
assume CS:Code,DS:Data
start:
mov ax,Data ; Move Data to Data Segment add8
mov DS,ax
add bl,al ; Get the number by adding 10's and unit's place
add cl,al ; Get the number by adding 10's and unit's place
C:\TASM\BIN>tlink add8.obj
Turbo Link Version 7.1.30.1. Copyright (c) 1987, 1996 Borland
International
Warning: No stack
C:\TASM\BIN>add8