Posts

Project - Stage 1

Image
In this post, I will build GCC compiler on servers located in SPO600 server Portugal and  Israel, and then verify the results. You can see the detailed information about the SPO600 project here . Build GCC in x86_64 System Before getting started, execute the following command to connect to  portugal.cdot.systems  using SSH with the private SSH key and username. When prompted for a passphrase, enter the passphrase you set previously to establish the connection: ssh -i private_ssh_key username @portugal.cdot.systems If the connection is successful, you can confirm the presence of the password.txt  file using the ls  command. This file contains a randomly generated string password that can be used for login instead of the passphrase. First, execute the following command to fetch the current development version of GCC from the Git repository: git clone git://gcc.gnu.org/git/gcc.git To create an object tree outside the source tree, create a build directory outs...

Lab3 - 6502 Math and Strings Lab

Image
Today, the task is creating a simple program using the 6502 assembly language. I will create an adding calculator. As a beginner, it is really hard to create the code from scratch, so I will use Chris Tyler's code as a foundation.   This  is the GitHub repository that I referenced. Here is the original code: ; Adding calculator ; ROM routine entry points define SCINIT $ff81 ; initialize/clear screen define CHRIN $ffcf ; input character from keyboard define CHROUT $ffd2 ; output character to screen define SCREEN $ffed ; get screen size define PLOT $fff0 ; get/set cursor coordinates ; zeropage variables define PRINT_PTR $10 define PRINT_PTR_H $11 define value $14 define value_h $15 ; absolute variables define GETNUM_1 $0080 define GETNUM_2 $0081 ; constants ; -------------------------------------------------------- jsr SCINIT jsr CHRIN jsr PRINT dcb "A","d","d","i","n","g",32 dcb "c"...

Lab2 - 6502 assembly language lab

Image
In this post, I will discuss about 6502 assembly language lab. You can visit this website to use a web-based 6502 emulator. Enter your code in the left box on the website, then press the "Assembly" button followed by the "Run" button. The bitmap result will be displayed in the black box. Bitmap Code This code fills the emulator's bitmapped display with the colour yellow.           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 ; ... high byte ($02) goes into address $41 lda #$07           ; colour number ldy #$00           ; set index to 0 loop: sta ($40),y ; set pixel colour at the address (pointer)+Y iny           ; increment index bne loop           ; continue until done the page (256 pixels) ...