From nobody Sat Feb 24 19:18:21 2024 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ThxVj2lwbz5BQL9 for ; Sat, 24 Feb 2024 19:18:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ThxVj2B33z42BK; Sat, 24 Feb 2024 19:18:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708802301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+MOe/EMonLJwPYaJW0nz6z8sqbfHg4NkwUOCY7BSPLk=; b=UdhYnWGmfGVeeurSo+pzkoVTz6IuO23oUdzoVNjHQLCTuP800QkNLsuNwqGyvXh2DgYND4 bHF7/YRGp6YntJN8ls8/pTJ69YuYa1/RVSpyddcUWbhVzIEZOVNBCvQnFIqDhFAQxAsDIJ vx4Wzbfori2ZeVQtyiMMUC53eSae11fLe9T0Mv8qv8F6y83WSajmersTj1rH0DPCtPhKeZ NPQEPqWrA6oXLh3feBBS+DHxIwDHgZNyBZwzXLTyD047Dnm2RJXKUgW9Sk0Rofaa82SYol IYfBFLQW87rziOpwnPxS7YphHeh+ita6Z4wUmpTOzowjrpFACTEbNo3RjskwxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708802301; a=rsa-sha256; cv=none; b=TSxsJcuJZgmtI5IGNzvNKmEnpwRBgifo1UrrE/cX59Z+qAFB32KdhatuonqNWcEJlcNYi6 4I/syYe6/y7UW81S4aLj9QESZ88PZAL7edL4hu2chuT3pFpR+Z0wJXy7uJ0P183xMzMgm4 dLPC7A0q375Cpm6aXCS8oz8cucbQm6i/T8lj2oLXnHt1Ze94N7syUdFfvBO0GhjuqMV+W6 XQUsJ0iqKGocJ1NhZ/HhUIL+xPjZbw0xPahvOzM0tLxCAAh0fe2waZqzYEepF4AOTtpBIz hCQARVwZzPMLFkZnEssIh6VVpbsWIOwghBQhWE0G/gKsot4aGyapZXo00bUebg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708802301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+MOe/EMonLJwPYaJW0nz6z8sqbfHg4NkwUOCY7BSPLk=; b=ByeJoOqQ7BzOv9u+xW5kn3QkGkkKjhGU8KzmcyknSYuomePtDuXGrsoIy4V6r/2VilBqnO CYpOOIruwdrw04tsKqcVZa/msdDkWK8a2Sj0zu4r3H5Tl+rUorvP+S6mGOpytHx1UdgGoS LeKEtf+2XhQI8S/yB3EzOvEousdLzQfSKB2xdgWBaxcwlOeJb5tfAQVlodk7PmbDscihhr 4vqjH261x0NYfckjrgEatfwgbV3kUESfyiv8rOFYhhHDlEl3LD8i641EbEJGMz5eo5FyBm a3eq6lLgFhLho+n7H6E8Uue0hdT+xIaCybhGTKqAx3Jt6uR2FmTjnKm6m61j8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ThxVj1FTdz1BwX; Sat, 24 Feb 2024 19:18:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41OJILfU000358; Sat, 24 Feb 2024 19:18:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41OJILU9000355; Sat, 24 Feb 2024 19:18:21 GMT (envelope-from git) Date: Sat, 24 Feb 2024 19:18:21 GMT Message-Id: <202402241918.41OJILU9000355@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: ec09b757de - main - dev-handbook/x86: remove line numbers from the example List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ec09b757de30f0a7c5d6b61d05933be8a883ebb3 Auto-Submitted: auto-generated The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=ec09b757de30f0a7c5d6b61d05933be8a883ebb3 commit ec09b757de30f0a7c5d6b61d05933be8a883ebb3 Author: rilysh AuthorDate: 2024-01-25 17:21:56 +0000 Commit: Danilo G. Baio 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ć , dbaio Pull Request: https://github.com/freebsd/freebsd-doc/pull/333 Signed-off-by: rilysh --- .../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]]