summaryrefslogtreecommitdiff
path: root/projects/11/Seven/Main.jack
blob: 067402e7da4ae570a728e6be45068a38bf0c1192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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/11/Seven/Main.jack

/**
 * Computes the value of 1 + (2 * 3) and prints the result
 * at the top-left of the screen.  
 */
class Main {

   function void main() {
      do Output.printInt(1 + (2 * 3));
      return;
   }

}