Posts

Showing posts from February, 2025

SPO600 Lab5 64-Bit Assembly Language Lab Pt.1 ---AArch64 part

Image
In this Lab, I am going to experiment with assembler on the x86_64 and aarch64 platforms. Task 1 Observe the difference between source code and the object file of the aarch64 assembly language  source file: object file: Task 2 -- A loop which print 6 "Loop" word  I have to modify a provided code block in the aarch64 system to print loop for 6 times.  modified code: .text .globl _start min = 0                          /* starting value for the loop index; **note that this is a symbol (constant)**, not a variable */ max = 6                         /* loop exits when the index hits this number (loop condition is i<max) */ _start:      mov     x19, min loop:      /* ... body of the loop ... do something useful here ... */      mov     x0, 1           /* file des...

SPO600 Lab4 -GCC Build Lab

Image
 In this lab, we are practicing about building large software project, utilizing tools such as make and automake/autotools. I will work on two server, x86-001 and aarch64-002 Task  - on each of the servers, obtain build and install the source code for the current development version of the GCC compiler. Step 1 - Obtain the source code  step 1.1 the command to create a directory for cloning the GCC source code: mkdir gccsource  step 1.2 command to clone the source code into the current directory: git clone git://gcc.gnu.org/git/gcc.git ./gccsource Step 2 - Configure the build step 2.1 Create a directory for the build of GCC and go into it. We use this directory to build the ggc so that the files created during the build go into this directory. Commands: mkdir gcc-build-003 cd gcc-build-003 step 2.2 When I configure the build,  I do not want the new GCC wipe out the original gcc in the server. So, I use the --prefix=$HOME/spo600/lab4/gcc-test-003 to set the target...

SPO600 Lab3 - decide what to write

Image
 Hamburger application In this Lab, we are allowed to decide what program to write  as long as the program meet the below criteria:- 1. The program have to work in the 6520 Emulator 2. Output to the character screen and the graphic screen 3. get input from the keyboard 4. use some math instruction, e.g. add/ subtract On this long night of assignments, I was so hungry that I decided to create a Hamburger application to design my own burger! Remark: This program is original. Specification: 1. The user will be able to choose the filling of the hamburger, e.g. egg, meat and vegetables, by pressing number key on keyboard. 2. Instruction of the program, filling options and respective cost will be printed on the character screen.  3. The graphic screen will show the hamburger. When filling is choose by the user, the filling will be added to the graphic screen. 4. After four filling are added, the burger on the graphic display will be completed.  5. Total cost will be calcul...