Posts

SPO600 Software Portability & Optimization Lab02

Image
Hello and welcome to the second installment of this blog. In this blog we will be reviewing my attempt at Lab 02 for my SPO600 class. In this lab we are required to create our own 6502 assembly application. For this I have chosen to do a resistor calculator. I chose this because prior to coming into CPA I was enrolled in ETC (Computer Engineering Technology) where they taught us about electricity, resistors, and creating circuits. It is a good way for me to familiarize myself again with resistors and the math behind them. The problem We want to be able to take in the color bands that are on the resistor and quickly calculate their resistance in a measurement of ohms. To accomplish this we would required to take the user input for the color of the bands, our application will support 4 band resistors currently, and will not be able to identify any resistor with 5 bands.  The code The code can be viewed at my Github page located  here . I will not be posting the entire code here ...

SPO600 Software Portability & Optimization Lab01

Image
Hello viewer and welcome to my blog on SPO600 - Software Portability and Optimization Lab01. My name is Victor and I am a student at Seneca College Newnham, this blog is to document my learning and findings I have for my labs. In lab 01, we are working with 6502 Processor developed by MOS technology. the 6502 was a cheap solution to a problem introduced due to overpriced micro processors. During this lab I will be performing some experiments and documenting the results with code on the 6502 processor using assembly language.  We will be following data provided by Masswork for the clock cycles of the 6502 instruction set. The 6502 has 56 instructions in total, each taking different cycles based on the 13 different addressing modes available, the clock cycle information can be found here . We are asked to put this code into the 6502 emulator: lda #$00 ; set a pointer in memory location $40 to point to $0200 sta $40 ; ... low byte ($00) goes in address $40 lda #$02 sta $41 ...