Posts

(Lab4) GCC Build Lab

Image
The purpose of this lab is to become familiar with the process of building large software projects, utilizing tools such as make and automake/autotools. This is useful because we will be working on the GCC compiler for the course project. AArch64 aarch64-002 You can access this system at the hostname aarch64-002.spo600.cdot.systems; using OpenSSH from the command line, you can use these arguments: ssh  username @aarch64-002.spo600.cdot.systems Step 1: Obtain the Source Code Login on aarch64-002: Ensure Git is installed: Check out the GCC sources: Check files: Step 2: Configure Your Build I should create a separate build directory (outside the source tree) to compile GCC: For example, if the source is in ~/git/gcc, you could do something like this: mkdir ~/gcc-build-001 cd ~/gcc-build-001 ~/git/gcc/configure --prefix=$HOME/gcc-test-001 Waiting for configuration to complete. Step 3: Perform the Build To efficiently build a project using make, use the -j option to specify concurrent j...

(lab3)6502 Program Lab

  In this lab, you will write code with arithmetic/math and strings in   6502   assembly language, including text output, graphical output, and keyboard input, in preparation for learning more complex x86_64 and AArch64 assembly language. Resources 6502 6502 Emulator 6502 Math 6502 Jumps, Branches, and Procedures 6502 Emulator Example Code  - Specifically: Place a Graphic on the Screen  - for an example of defining a graphic using DCB, and copying a graphic to the screen Etch-a-Sketch Style Drawing  - for an example of converting (ROW,COL) co-ordinates to a screen address, and reading the keyboard 6502js-code  repo on GitHub - Specifically: Wordle-like example (wordle-6502) Opcode/Instruction References 6502 Opcodes with Register Definitions  at 6502.org 6502 Opcodes with Detailed Operation Information  at Masswerk 6502 Instructions  organized differently on the Ultimate Commodore 64 Reference site Tips and Techniques Keyboard Access the...

(lab2)6502 Math Lab

Setup 1. Have the Driver open the  6502 Emulator  at  http://6502.cdot.systems  in another tab or window, keeping this lab open. Important: The emulator  does not  save your work automatically. Remember to periodically save it to a file (copy-and-paste the code or use the  Save  button to create local files). Recommendation: save your files to a directory, and use  git  to manage that directory. Initial Code 2. The following code moves a 5×5 graphic diagonally across the screen: ; ; draw-image-subroutine.6502 ; ; This is a routine that can place an arbitrary ; rectangular image on to the screen at given ; coordinates. ; ; Chris Tyler 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 START: ; Set up the width and height elements of the data structure L...