Lab2 - 6502 Assembly Language Lab(Calculation)

 In this lab we need to find how much is time need to complete the process of code.

So here we need to find the number of the cycles that are need to complete the process of one line of code to processed. So as shown in photo 

The load accumulator need two cycle to complete the process and only one time this code is run. After that store accumulator will run and same as load accumulator it will run ones with two cycle.
After all the function will be run as shown above but when the loop will be there t process will be change there are 256 bytes in one page and there are total 4 page to this will run 12 time and as shown above it will be executed. 

And the time will be 5935us when there was 1Mhz clock speed is there.


To change the speed we need to make change like we need to change the loop of pages to only one  which can change the part of time but I am not able to make that one. 



Comments

Popular posts from this blog

ifunc function

Lab5 Part 1 Algorithm 1