Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Daniel Alejandro Maydana
practica-p1-Orga2
Commits
dc84f344
Commit
dc84f344
authored
3 months ago
by
Daniel Alejandro Maydana
Browse files
Options
Download
Email Patches
Plain Diff
fix 2C 2024 fixme
parent
b11e1486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
parciales/2C 2024 fixme/ej1.asm
parciales/2C 2024 fixme/ej1.asm
+15
-4
No files found.
parciales/2C 2024 fixme/ej1.asm
View file @
dc84f344
...
...
@@ -78,6 +78,12 @@ es_indice_ordenado:
push
r10
push
r11
push
r12
push
r13
push
r14
mov
r13
,
rsi
mov
r14
,
rdi
mov
r8
,
1
; j = 0
mov
rax
,
1
; res = true
...
...
@@ -86,17 +92,22 @@ es_indice_ordenado:
cmp
r8
,
rdx
je
.end
; indice[j-1]
/
indice[j]
; indice[j-1]
,
indice[j]
mov
r10
,
[
rdi
+
r8
*
uint16_size
]
mov
r11
,
[
rdi
+
r8
-
1
*
uint16_size
]
; inventario
[indice[j-1]]
/
inventario
[indice[j]]
; inventario[indice[j-1]]
,
inventario[indice[j]]
mov
rsi
,
[
rsi
+
r10
*
PUNTERO_SIZE
]
mov
r
s
i
,
[
rsi
+
r11
*
PUNTERO_SIZE
]
mov
r
d
i
,
[
rsi
+
r11
*
PUNTERO_SIZE
]
call
rcx
cmp
rax
,
0
je
.end
; restaura rdi, rsi
mov
rsi
,
r13
mov
rdi
,
r14
;incrementa j
inc
r8
jmp
.while
.end:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment