Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Special thanks to all the people who helped to develop this project:
- [JRMcCoy](https://github.com/JRMcCoy)
- [knoxknox](https://github.com/knoxknox)
- [tirkarthi](https://github.com/tirkarthi)
- [maldron0309](https://github.com/maldron0309)
- [Yimura](https://github.com/Yimura)
- [30be](https://github.com/30be)
4 changes: 3 additions & 1 deletion strings/reverse.asm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ section .data
EXIT_CODE equ 0
;; Length of the string that contains only the new line symbol.
NEW_LINE_LEN equ 1
;; Length of the INPUT string
INPUT_LEN equ 12

;; ASCII code of the new line symbol ('\n').
NEW_LINE db 0xa
Expand All @@ -19,7 +21,7 @@ section .data
;; Definition of the .bss section.
section .bss
;; Output buffer where the reversed string will be stored.
OUTPUT resb 1
OUTPUT resb INPUT_LEN

;; Definition of the .text section.
section .text
Expand Down