To complete the code below to count the no. of players who got 10 points or more on the second quarter of their basketball game, what should be the code at lines 10 and 11? player equ 15 name equ 0 ;next 4 bytes are byte-size points for quarters 1, 2, 3 & 4 ptsPerQtr equ 11 team resb player*12 mov rcx, 12 mov byte [cnt], 0 mov esi, 0 go: ;line 10 ;line 11 inc byte [cnt] add esi, player loop go cmp byte[team+esi+ptsPerQtr+1], 10 AND jne done cmp byte[team+esi+ptsPerQtr+1], 10 AND jl done cmp byte[team+esi+ptsPerQtr+2], 10 AND jne done cmp byte[team+esi+ptsPerQtr+2], 10 AND jl done done:

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter6: Creating, Sorting, And Querying A Table
Section: Chapter Questions
Problem 10EYK
icon
Related questions
Question
To complete the code below to count the no. of players who got 10
points or more on the second quarter of their basketball game, what
should be the code at lines 10 and 11?
player equ 15
name equ 0
;next 4 bytes are byte-size points for quarters 1, 2, 3 & 4
ptsPerQtr equ 11
team resb player *12
mov rcx, 12
mov byte [cnt], 0
mov esi, 0
go:
;line 10
;line 11
inc byte [cnt]
add esi, player
loop go
cmp byte[team+esi+ptsPerQtr+1], 10 AND jne done
cmp byte[team+esi+ptsPerQtr+1], 10 AND jl done
cmp byte[team+esi+ptsPerQtr+2], 10 AND jne done
cmp byte[team+esi+ptsPerQtr+2], 10 AND jl done
done:
Transcribed Image Text:To complete the code below to count the no. of players who got 10 points or more on the second quarter of their basketball game, what should be the code at lines 10 and 11? player equ 15 name equ 0 ;next 4 bytes are byte-size points for quarters 1, 2, 3 & 4 ptsPerQtr equ 11 team resb player *12 mov rcx, 12 mov byte [cnt], 0 mov esi, 0 go: ;line 10 ;line 11 inc byte [cnt] add esi, player loop go cmp byte[team+esi+ptsPerQtr+1], 10 AND jne done cmp byte[team+esi+ptsPerQtr+1], 10 AND jl done cmp byte[team+esi+ptsPerQtr+2], 10 AND jne done cmp byte[team+esi+ptsPerQtr+2], 10 AND jl done done:
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L