1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
wlad13 [49]
4 years ago
14

Using the college registration example from section 6.7.3 as a starting point, do the following:

Computers and Technology
1 answer:
Arada [10]4 years ago
8 0

Answer:

Explanation:

NCLUDE Irvine32.inc

TRUE = 1

FALSE = 0

.data

gradeAverage WORD ?

credits WORD ?

oKToRegister BYTE ?

str1 BYTE "Error: Credits must be between 1 and 30" , 0dh,0ah,0

main PROC

call CheckRegs

exit

main ENDP

CheckRegs PROC

push edx

mov OkToRegister,FALSE

; Check credits for valid range 1-30

cmp credits,1 ; credits < 1?

jb E1

cmp credits,30 ; credits > 30?

ja E1

jmp L1 ; credits are ok

; Display error message: credits out of range

E1:

mov edx,OFFSET str1

call WriteString

jmp L4

L1:

cmp gradeAverage,350 ; if gradeAverage > 350

jna L2

mov OkToRegister,TRUE ; OkToRegister = TRUE

jmp L4

L2:

cmp gradeAverage,250 ; elseif gradeAverage > 250

jna L3

cmp credits,16 ; && credits <= 16

jnbe L3

mov OkToRegister,TRUE ; OKToRegister = TRUE

jmp L4

L3:

cmp credits,12 ; elseif credits <= 12

ja L4

mov OkToRegister,TRUE ; OKToRegister = TRUE

L4:

pop edx ; endif

ret

CheckRegs ENDP

END main

You might be interested in
True or false word inserts text to the right Of the insertion point
uysha [10]
False.................................
3 0
3 years ago
George and Miguel want to know more about their local and online competitors and about the retail industry. What is the best way
fgiga [73]
I would go with all of the above because if you want to find out everything you can then you should explore every option you get.
8 0
3 years ago
Read 2 more answers
The information computers give to users or other computers are called
AfilCa [17]

Answer:

the output processed data

7 0
2 years ago
Help, please! I will mark as brainliest
Juli2301 [7.4K]

Answer:

Change line 7 to:

for( int i=0; i < names.length; i++)

Last element in the array is one less than the length, ie:

stArr1.length - 1

To print every other value, you replace index++ with index += 2

Explanation:

Not only should you change the <= into <, but also i should start at 0, not 1. The first element of an array has index 0.

6 0
3 years ago
Which of the following statements is true of San serif fonts?
Vsevolod [243]
They are easier to read on a computer screen
7 0
3 years ago
Read 2 more answers
Other questions:
  • Users report that the network access is slow. After questioning the employees, the network administrator learned that one employ
    10·1 answer
  • A user reports that a workstation is continually rebooting. What can a technician do to stop the rebooting in order to troublesh
    12·1 answer
  • Which of these personal protective equipment items prevents injury from falling objects ?
    15·1 answer
  • 4. UPS stands for Uninterrupted Power Supply . (Yes /no
    11·1 answer
  • What is Ce stands for?
    8·1 answer
  • List the caveats to this analysis and how they affect the research. How does this document define the ""typical game developer""
    7·2 answers
  • My uh coding teacher would like the class to do little piggy with code.
    10·1 answer
  • How do you delete your brainly account
    6·1 answer
  • John is directing a television series. He has to shoot a scene that presents the lead character in a dominating and commanding p
    8·1 answer
  • automatic updates are better than non-automatic updates for a system because it might be better for patching the os as they narr
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!