How long does testing of PongL.asm should usually take?

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

How long does testing of PongL.asm should usually take?

kraftwerk1611

Hi,

Just wondering how long does testing of PongL and Pong with supplied Assembler program usually take?

Is running/testing time taking hours normal?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: How long does testing of PongL.asm should usually take?

cadet1620
Administrator
If you use the ">>" button which translates at about 1 instruction per second, it will take approximately forever. (28K seconds)

You want to use the button with 1s and 0s next to the "=" button.  That will assemble the whole file at once. Or Run>Fast Translation on the menus.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: How long does testing of PongL.asm should usually take?

kraftwerk1611
Thank you. It produced machine language file in no time. Pasting a screen shot below if someone else has the same question in future.


In the lecture the Professor also talked about an option to test the *.hack file in HW simulator. Can I ask you how to load the *.hack file into HW simulator after loading the chip *.hdl file?

Thanks.


************************************************************

Reply | Threaded
Open this post in threaded view
|

Re: How long does testing of PongL.asm should usually take?

cadet1620
Administrator
If you load your Computer.hdl into the HardwareSimulator, you can load a .hack file into the ROM (folder icon) and see the asm commands for the binary instructions.

You can also load .hack files into the CPUEmulator and view their asm commands there. You can also run them in the CPUEmulator.  Load your generated Pong.hack file and you should be able to play the Pong game, but it may run rather slowly.  On my laptop it takes 5-6 seconds before the paddle and ball appear.

--Mark