Posts

Showing posts from February, 2020

Lab 3: Bouncing Ball (Final)

Image
Introduction I discovered an error in the previous posting's code . In this post, I will show what error I found and how I fix it. Also, I have improved my code so it becomes more reusable. You can understand the steps on how I develop this code to read previous postings: Lab 3: Bouncing Graphic (Part 1 - Calculate Pointer) Lab 3: Bouncing Graph - Drawing and Moving Graph in the Pointer Location Lab 3: Bouncing Graph - Done Lab 3 Instruction The option my group choose is bouncing graphic. The instructions of this option are the following: Create a simple graphic in a square that is 5*5 or 7*7 pixels in size. Use the colors available in the emulator's bit-mapped display. The graphic could be a ball a happy face, a logo, an emoji, or anything else that you want to use Encode that graphic in bytes using DBC (declare constant byte) instructions Write code to make the graphic bounce around the screen, reflecting off the edges when it hits Make the speed keyboard-adjus

Lab 4 (6502 Assembly Language String Lab) - Option 4: Screen Colour Selector

Introduction For lab 4, I can choose two options among four options. My team chose the first and fourth options which are adding calculator and screen colour selector. This post is for the fourth option "Screen Colour Selector". The instruction of option 4 is written below. Option 4: Screen Colour Selector Instruction Create a subroutine which displays on the character display a list of colours available on the bitmapped display, one colour per line, with one of the names of the colours highlighted in reverse video (white on black). The user may use the up/down arrow keys to change the highlighted row. Return the user's selection as a number in the accumulator (A) register when they press Enter. Using this subroutine, get a colour from the user, then fill the bitmap display with this colour, and allow the user to select a different colour. 1. Design 1.1. Pseudo Code Initialize values get the key (up/down key) check whether the colour needs to be increase