SPO600 Lab2 (Pt.3)-- challenges 3 & 4 and reflection
SPO600 Lab2 (Pt.3)-- challenges 3 & 4 and reflection Subsequence to part1 and part2 , I am revising a 6502 instruction assembly program which allows a logo to bounce within the screen. Challenges Lets work on Challenges 3 and 4. 1. Permit integer value other than -1 and +1 for the X and Y increments (logo velocity). 2. Permit fractional value for the X and Y increments (eg. +1.5 or -0.75) 3. Perturb the ball's position or velocity 4. Change the graphic image or colour each time it bounces Problems analysis and solutions Assumption: 1. Only velocity of the bounce direction will be changed. 2. the logo is allowed to stop in case the ball velocity changed to 0 due to the perturbing. (unlikely happening) 3. We do not do perturb to the position since it is just similar to that of velocity. Solution: Simple add a Perturb subroutine so that we can add perturbing when it bounds. code: ; draw-image-subroutine.6502 ; ; This is a routine that can place an arbitrary ;...