Skip to content

Commit 7e4b554

Browse files
authored
Update examples based on contribution (#71)
* asm-4: Update the stack example based on #69 Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> * general: update contributors list Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> * Remove not existed user from the contributors list Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> --------- Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
1 parent 626c9d8 commit 7e4b554

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Special thanks to all the people who helped to develop this project:
99
- [JRMcCoy](https://github.com/JRMcCoy)
1010
- [knoxknox](https://github.com/knoxknox)
1111
- [tirkarthi](https://github.com/tirkarthi)
12-
- [maldron0309](https://github.com/maldron0309)
1312
- [Yimura](https://github.com/Yimura)
13+
- [30be](https://github.com/30be)

strings/reverse.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ section .data
1010
EXIT_CODE equ 0
1111
;; Length of the string that contains only the new line symbol.
1212
NEW_LINE_LEN equ 1
13+
;; Length of the INPUT string
14+
INPUT_LEN equ 12
1315

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

2426
;; Definition of the .text section.
2527
section .text

0 commit comments

Comments
 (0)