mirror of
https://github.com/hazemKrimi/hack-assembler.git
synced 2026-05-01 18:20:28 +00:00
14 lines
261 B
NASM
Executable File
14 lines
261 B
NASM
Executable File
// This file is part of www.nand2tetris.org
|
|
// and the book "The Elements of Computing Systems"
|
|
// by Nisan and Schocken, MIT Press.
|
|
// File name: projects/06/add/Add.asm
|
|
|
|
// Computes R0 = 2 + 3 (R0 refers to RAM[0])
|
|
|
|
@2
|
|
D=A // hi
|
|
@3
|
|
D=D+A
|
|
@0
|
|
M=D
|