Skip to content
Merged
Changes from 1 commit
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
Next Next commit
asm-4: Update the stack example based on #69
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
  • Loading branch information
0xAX committed Dec 22, 2025
commit 4345e30190bb30f03d8ba6836e6323eb16b8e7e9
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