Skip to main content

Assembles Hack assembly files into Hack machine language files.

Project description

An Assembler program that translates programs written in the symbolic Hack assembly language into binary code that can execute on the Hack hardware platform built in the previous projects.

Usage

The assembler can be invoked via command line with the command:

hack-assemble fileName.asm

, where the string fileName.asm is the assembler’s input, i.e. the name of a text file containing Hack assembly commands. The assembler creates an output text file named fileName.hack. Each line in the output file consists of sixteen 0 and 1 characters. The output file is stored in the same directory of the input file. The name of the input file may contain a file path.

Reference

http://nand2tetris.org/06.php

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hack_assemble-0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

hack_assemble-0.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file hack_assemble-0.1.tar.gz.

File metadata

  • Download URL: hack_assemble-0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hack_assemble-0.1.tar.gz
Algorithm Hash digest
SHA256 29d91e9ddab8ced1fdb6f91ce4c3df97ba81da15937c025033f6f6052f04589f
MD5 3111f565199f1e90f47f71c077cc93e7
BLAKE2b-256 464e1b64939e41254d9325fdd32ec3dc2394710b9523ad017203b650fc14fbb3

See more details on using hashes here.

File details

Details for the file hack_assemble-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hack_assemble-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34c9e0e87298baacc7998d33b65dd6a23ec9ba2f7cca61785cee2c55405f38a0
MD5 7f714a83a7d5820dfce4696bd22932b0
BLAKE2b-256 2a3262ba704b0220078260f3013073611d4500c6e901396e90ac71b8f599717d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page