Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a procedure Is _ Digit that sets the AH to 1 if the value in AL could be a ASCII digit ( 0 to

Write a procedure Is_Digit that sets the AH to 1 if the value in AL could be a ASCII digit (0 to 9)
If what is in AL could not be a digit the procedure sets BH to 0.
; 0123456789
; 4857
; Description: check if given char is a ascii digit, sets AH to 1 if it is,0 if it is not
; Receives : AL as the ASCII char to check
; Returns : AH set to 1 if yes 0 if not
;Requires:
Is_Digit PROC USES AL
Question Blank 1 of 6
type your answer...
AL,'0'
Question Blank 2 of 6
type your answer...
UNSET
Question Blank 3 of 6
type your answer...
AL,
Question Blank 4 of 6
type your answer...
ja
Question Blank 5 of 6
choose your answer...
mov AH,1
jmp
Question Blank 6 of 6
choose your answer...
UNSET:
mov AH,0
DONE:
ret
Is_Digit PROC

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

Express the following ratios in its lowest terms. 0.24: 0.39 : 0.15

Answered: 1 week ago