git: ec09b757de - main - dev-handbook/x86: remove line numbers from the example
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Feb 2024 19:18:21 UTC
The branch main has been updated by dbaio:
URL: https://cgit.FreeBSD.org/doc/commit/?id=ec09b757de30f0a7c5d6b61d05933be8a883ebb3
commit ec09b757de30f0a7c5d6b61d05933be8a883ebb3
Author: rilysh <nightquick@proton.me>
AuthorDate: 2024-01-25 17:21:56 +0000
Commit: Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2024-02-24 19:11:14 +0000
dev-handbook/x86: remove line numbers from the example
These line numbers seem to be mistakenly copied from the editor.
Since the user is (likely) going to copy-and-paste the example,
we should remove these line numbers.
Reviewed by: Mina Galić <freebsd@igalic.co>, dbaio
Pull Request: https://github.com/freebsd/freebsd-doc/pull/333
Signed-off-by: rilysh <nightquick@proton.me>
---
.../en/books/developers-handbook/x86/_index.adoc | 34 +++++++++++-----------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/documentation/content/en/books/developers-handbook/x86/_index.adoc b/documentation/content/en/books/developers-handbook/x86/_index.adoc
index 697378e9b5..5beb9f384f 100644
--- a/documentation/content/en/books/developers-handbook/x86/_index.adoc
+++ b/documentation/content/en/books/developers-handbook/x86/_index.adoc
@@ -541,22 +541,22 @@ We are now ready for our first program, the mandatory Hello, World!
[.programlisting]
....
-1: %include 'system.inc'
- 2:
- 3: section .data
- 4: hello db 'Hello, World!', 0Ah
- 5: hbytes equ $-hello
- 6:
- 7: section .text
- 8: global _start
- 9: _start:
-10: push dword hbytes
-11: push dword hello
-12: push dword stdout
-13: sys.write
-14:
-15: push dword 0
-16: sys.exit
+ %include 'system.inc'
+
+ section .data
+ hello db 'Hello, World!', 0Ah
+ hbytes equ $-hello
+
+ section .text
+ global _start
+_start:
+ push dword hbytes
+ push dword hello
+ push dword stdout
+ sys.write
+
+ push dword 0
+ sys.exit
....
Here is what it does: Line 1 includes the defines, the macros, and the code from [.filename]#system.inc#.
@@ -586,7 +586,7 @@ Which one it is, is for the system to figure out.
[[x86-assemble-1]]
=== Assembling the Code
-Type the code (except the line numbers) in an editor, and save it in a file named [.filename]#hello.asm#.
+Type the code in an editor, and save it in a file named [.filename]#hello.asm#.
You need nasm to assemble it.
[[x86-get-nasm]]