Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Elizaveta Chernova
assignment-2-dictionary
Commits
0b9c68ff
Commit
0b9c68ff
authored
2 years ago
by
Elizaveta Chernova
Browse files
Options
Download
Email Patches
Plain Diff
updated lab
parent
4111dbfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lib.asm
lib.asm
+8
-0
main.asm
main.asm
+1
-1
No files found.
lib.asm
View file @
0b9c68ff
...
...
@@ -72,6 +72,14 @@ print_newline:
syscall
ret
print_newline_err:
mov
rax
,
1
mov
rdi
,
2
mov
rsi
,
0xa
mov
rdx
,
1
syscall
ret
; Выводит беззнаковое 8-байтовое число в десятичном формате
; Совет: выделите место в стеке и храните там результаты деления
; Не забудьте перевести цифры в их ASCII коды.
...
...
This diff is collapsed.
Click to expand it.
main.asm
View file @
0b9c68ff
...
...
@@ -26,7 +26,7 @@ print_error: ; аналогичная функции print_string, но с
mov
rax
,
SYS_WRITE
mov
rdi
,
FD_STDERR
; дескриптор stderr
syscall
call
print_newline
call
print_newline
_err
ret
_start:
...
...
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
Menu
Projects
Groups
Snippets
Help