Downloads:

579,390

Downloads of v 2.15.05:

97,963

Last Update:

05 Nov 2021

Package Maintainer(s):

Software Author(s):

  • The NASM development team

Tags:

nasm assembler 80x86 x86-64 x86 compiler FOSS embedded

NetWide Assembler (install)

  • 1
  • 2
  • 3

2.15.05 | Updated: 05 Nov 2021

Downloads:

579,390

Downloads of v 2.15.05:

97,963

Software Author(s):

  • The NASM development team

  • 1
  • 2
  • 3
NetWide Assembler (install) 2.15.05

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

To upgrade NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

To uninstall NetWide Assembler (install), run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade nasm -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade nasm -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install nasm
  win_chocolatey:
    name: nasm
    version: '2.15.05'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'nasm' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.15.05'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller nasm
{
    Name     = "nasm"
    Version  = "2.15.05"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'nasm':
  ensure   => '2.15.05',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 05 Nov 2021.

Description

The Netwide Assembler, NASM, is an 80x86 and x86-64 assembler designed for portability and modularity. It supports a range of object file formats, including Linux and *BSD a.out, ELF, Mach-O, 16-bit and 32-bit .obj (OMF) format, COFF (including its Win32 and Win64 variants.) It can also output plain binary files, Intel hex and Motorola S-Record formats. Its syntax is designed to be simple and easy to understand, similar to the syntax in the Intel Software Developer Manual with minimal complexity. It supports all currently known x86 architectural extensions, and has strong support for macros.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir   = Split-Path -parent $MyInvocation.MyCommand.Definition
$Files = Get-ChildItem $toolsDir -Filter '*.exe' |
               Sort-Object LastWriteTime | 
               Select-Object -Last 2

$File32 = ($Files | Where-Object {$_.Name -match 'x86\.exe'}).fullname
$File64 = ($Files | Where-Object {$_.Name -match 'x64\.exe'}).fullname

$packageArgs = @{
   packageName    = $env:ChocolateyPackageName
   fileType       = 'EXE'
   File           = $File32
   File64         = $File64
   softwareName   = "$env:ChocolateyPackageName*"
   silentArgs     = '/S'
   validExitCodes = @(0)
}

Install-ChocolateyInstallPackage @packageArgs

foreach ($File in $Files) {
   Remove-Item $File.fullname -ea 0 -force
}

# The NASM installer includes the version in the Start Menu folder, but
#   doesn't change the number on updates.  Removing the number is simplest.
$StartMenu = Join-Path $env:ProgramData '\Microsoft\Windows\Start Menu'
$SMfolder = Get-ChildItem $StartMenu -Filter "Netwide Assembler*" -Recurse -Directory
$null = Rename-Item $SMfolder.FullName ($SMfolder.FullName -replace '[0-9.]','').trim() -Force

tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

# The NASM uninstaller isn't silent and hangs.  No registry entries,
#   so just remove all the files.

$StartMenu = Join-Path $env:ProgramData '\Microsoft\Windows\Start Menu'
$SMfolder = Get-ChildItem $StartMenu -Filter "Netwide Assembler*" -Recurse -Directory
if ($SMfolder) {
   $null = Remove-Item $SMfolder.FullName -Recurse -Force
   Write-Verbose "Removed NASM icons in Start Menu."
}

if (Test-Path 'C:\Users\Public\Desktop\nasm.lnk') {
   $null = Remove-Item 'C:\Users\Public\Desktop\nasm.lnk' -Force
   Write-Verbose "Removed NASM icon on public desktop."
} 

if (Test-Path "$env:ProgramFiles\NASM") {
   $null = Remove-Item "$env:ProgramFiles\NASM" -Recurse -Force
   Write-Verbose "Removed NASM folder from Program Files."
}






tools\LICENSE.txt
From: https://github.com/netwide-assembler/nasm/blob/master/LICENSE

NASM is now licensed under the 2-clause BSD license, also known as the
simplified BSD license.

    Copyright 1996-2010 the NASM Authors - All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following
    conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
      
      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
      CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
      INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
      DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
      CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
      LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
      CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
      OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
      EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tools\nasm-2.15.05-installer-x64.exe
md5: E50B0C2DFC34E5D9D3C38383366FE5A0 | sha1: FD7061671388B82A6FEEE96E336E1B17CB1A9197 | sha256: A02325B9FE54F917F5D6A3036637B38DBB6ADDF6F7BA9D344D9B943A143FE7D0 | sha512: AD0FB359DD4A5CEB25CD5B84F80EB0046367799163FD0681C418A4F703660C8733F0E73DA304DD4795D0A35916E2FCBBF3F08F96D85A59E52B459FFC1BDB56A4
tools\nasm-2.15.05-installer-x86.exe
md5: 33888B1B5295088FB28C60446E1043FB | sha1: E0B3CBDCACFE7086D038821F95DC6B5730ACBBFB | sha256: 576DCD994F6229D18057F16EF9C7A7C830A148DD83DADAA5A8D83A8E0397EED2 | sha512: 4DC5CCB2590C99412A83B3206951315D44078BF9B56EB3EC63C3CC0AA00AEAAEC3E9980385BE0933B9A36137124753D6153E5680F9CA61A10258FA88097D0A1E
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
The current and past binaries of NASM are available from the main site:
   https://www.nasm.us/
and clicking on the version number for "Stable" under "Latest version".

Specifically:
   https://www.nasm.us/pub/nasm/releasebuilds/<version>

Once there, the "win32" and "win64" folders contain the binaries used
in this package.

Direct Download:

Version      : 2.15.05
x86 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.15.05//win32/nasm-2.15.05-installer-x86.exe
x86 CheckSum : 576DCD994F6229D18057F16EF9C7A7C830A148DD83DADAA5A8D83A8E0397EED2
x64 URL      : http://www.nasm.us/pub/nasm/releasebuilds/2.15.05//win64/nasm-2.15.05-installer-x64.exe
x64 CheckSum : A02325B9FE54F917F5D6A3036637B38DBB6ADDF6F7BA9D344D9B943A143FE7D0

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
NetWide Assembler 2.14.02 456107 Monday, June 17, 2019 Approved
NetWide Assembler 2.14 13143 Tuesday, November 13, 2018 Approved
NetWide Assembler 2.13.03 4205 Monday, March 5, 2018 Approved
NetWide Assembler 2.13.02 2638 Tuesday, December 5, 2017 Approved
NetWide Assembler 2.13.01 1087 Monday, July 17, 2017 Approved
NetWide Assembler 2.12.02 2343 Friday, August 12, 2016 Approved
NetWide Assembler 2.12.01 490 Wednesday, May 11, 2016 Approved
NetWide Assembler 2.10.06 1414 Thursday, December 6, 2012 Approved

This package has no dependencies.

Discussion for the NetWide Assembler (install) Package

Ground Rules:

  • This discussion is only about NetWide Assembler (install) and the NetWide Assembler (install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or NetWide Assembler (install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus