Bài đăng

Đang hiển thị bài đăng từ Tháng 10, 2024

SPO600 - Lab 3: 6502 Program Lab: Inches to Feet Converter

Hình ảnh
 In this lab, I used the 6502 assembly language to build a simple inches-to-foot converter. This project allowed me to experiment with arithmetic operations, keyboard input handling, and direct screen output without relying on ROM routines. This hands-on experience also helped me prepare for more advanced assembly languages like x86_64 and AArch64. Resources During the lab, I used a variety of resources, including: 6502 documentation provides detailed information about the 6502 architecture and instruction set. 6502 Emulator: For testing and debugging code. 6502 Math and Procedures: A reference book for arithmetic operations and control flow. Sample code demonstrates graphical output and keyboard input handling. Project Concept My project is a simple calculator that converts a specified number of inches to feet. In this program, the user enters an inch number, and when they press Enter, the program calculates and displays the corresponding number of feet. This simple conversion nec...

SP600 - Lab 2: 6502 Math Lab

Hình ảnh
In this post, I'll go into the world of 6502 assembly language, which is one of the most fundamental low-level languages in computing. This lab focusses on using assembly to control the movement of a simple graphic on a bitmapped display, simulating basic animation with a set of programmed instructions. The goal of this lab is to create a graphic that moves across the screen and "bounces" off the edges, changing direction whenever it encounters a boundary. As part of the lab, I used the 6502 emulator to write and test the assembly code, as well as experiment with various movement increments and behaviours. This project provides an introduction to low-level programming concepts that are required for understanding more complex architectures such as x86_64 and AArch64. Set Up 1. I haved open the 6502 Emulator. Initial Code 2. Then copied and pasted for the code  ; ; draw-image-subroutine.6502 ; ; This is a routine that can place an arbitrary ; rectangular image on to the sc...