pong and rect has something worng?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

pong and rect has something worng?

liangke
hi:
I donwload nand2tetris.zip in http://nand2tetris.org/.
The projects06's pong and rect can't run.
In the rect.asm.the code is :
  @0
   D=M
   @INFINITE_LOOP
   D;JLE
   ..........
(INFINITE_LOOP)
   @INFINITE_LOOP
   0;JMP
it jump to end from start.
is something worng? or I can download other version file in some place?
I spend one day to implement assember.it's look like correct.
so I want a pong.asm very much!
thanks!
Reply | Threaded
Open this post in threaded view
|

Re: pong and rect has something worng?

cadet1620
Administrator
liangke wrote
hi:
I donwload nand2tetris.zip in http://nand2tetris.org/.
The projects06's pong and rect can't run.
In the rect.asm.the code is :
  @0
   D=M
   @INFINITE_LOOP
   D;JLE
   ..........
(INFINITE_LOOP)
   @INFINITE_LOOP
   0;JMP
it jump to end from start.
Rect.asm is the source to the Rect.hack test program from project 5. It expects ram[0] to contain a number that specifies the number of lines to draw. If you want to run it on its own, without a .tst file, you need to set RAM[0] manually before running it.

I just assembled Pong.asm and loaded and ran Pong.hack in the CPUEmulator. It ran for me. Be sure to set no animation and fast, and still be patient. It can take a while before anything appears.

I used the supplied Assembler to make Pong.cmp, etc. files so that I could test my assembler's results using a visual diff program like Windiff.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: pong and rect has something worng?

liangke
think you.I figure out it by your drscribe.