Lab 2 - 6502 Math Lab
For the " Bouncing Graphic " 1. Introduction: It is the advanced version that implement four parts to make the graphic bounce when it hits the edge of the bitmapped. The basic version was making the graphic(A dot or a circle) from A point moves to B point and re-run it again. Therefore, the advanced version is making the graphic moves from left to right or bottom to top, or from right to left or from top to bottom. 2. Coding The following code is about this assembly program: ; ; draw-image-subroutine.6502 ; ; This is a routine that can place an arbitrary ; rectangular image on to the screen at given ; coordinates. ; ; Chris Tyler made on 2024-09-17 ; Licensed under GPLv2+ ; ; ; The subroutine is below starting at the ; label "DRAW:" ; ; Test code for our subroutine ; Moves an image diagonally across the screen ; Zero-page variables define XPOS $20 define YPOS $21 define XINC $22 define YINC $23 START: ; Set up the width and height elements of the data structure ...
留言
張貼留言