Koen_Be3840 wrote
All the software is running very well.
But I can't get JackCompiler running.
I'm following the steps in the book (p197) but no result.
Koen
If you are running Windows, create a file
jc.cmd in C:\Windows that contains
@echo off
pushd .
call C:\nand2tetris\tools\JackCompiler.bat %cd%\%1
popd
Once you have done this, you can run the compiler by typing jc at the command prompt.
P:\TECS\projects\09\Reflect>jc Game.jack
P:\TECS\projects\09\Reflect>dir Game.*
Volume in drive P is Data
Volume Serial Number is 88D8-5ACE
Directory of P:\TECS\projects\09\Reflect
05/14/2011 02:40 PM 3,719 Game.jack
11/22/2012 09:03 AM 5,880 Game.vm
2 File(s) 9,599 bytes
0 Dir(s) 6,244,823,040 bytes free
P:\TECS\projects\09\Reflect>cd ..
P:\TECS\projects\09>jc Reflect
P:\TECS\projects\09>dir /od Reflect\*.vm
Volume in drive P is Data
Volume Serial Number is 88D8-5ACE
Directory of P:\TECS\projects\09\Reflect
11/22/2006 06:05 PM 359 Array.vm
11/22/2006 06:05 PM 5,531 String.vm
11/22/2006 06:05 PM 11,210 Screen.vm
11/22/2006 06:05 PM 1,629 Keyboard.vm
11/22/2006 06:05 PM 30,975 Output.vm
11/22/2006 06:05 PM 5,150 Math.vm
11/22/2006 06:05 PM 3,682 Memory.vm
11/22/2006 06:05 PM 1,309 Sys.vm
11/22/2012 09:04 AM 4,864 Ball.vm
11/22/2012 09:04 AM 5,880 Game.vm
11/22/2012 09:04 AM 2,807 Main.vm
11/22/2012 09:04 AM 864 Random.vm
11/22/2012 09:04 AM 3,956 Mirrors.vm
11/22/2012 09:04 AM 2,659 Target.vm
14 File(s) 80,875 bytes
0 Dir(s) 6,244,847,616 bytes free
This assumes that Windows is installed in its normal location and that you installed Nand2Tetris to C:\Nand2Tetris. Change file paths as required for your system.
Someone else will have to help you if you are using a Mac.
--Mark