Posts

Showing posts from September, 2022

6502 Assembly Language Lab

Image
Lab 2 Tim Lin 2. This week the professor let us practice using the 6502 simulators. Run the following code.  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) inc $41 ; increment the page ldx $41 ; get the current page number cpx #$06 ; compare with 6 bne loop ; continue until done all pages 4.  Calculate how long it takes for the code to execute . 6.  Change the code to fill the display with light blue instead of yellow. lda #$07 change to  lda #$e lda #$00 ; sta $40 ;  lda #$02 sta $41 ;  lda #$e ;  ldy #$00 ;  loop: sta ($40),y ;  iny ;  bne loop ;  inc $41 ;  ldx $41 ;  cpx #$06 ;  bne loop ; 

SPO600 Code Review Lab

Lab 1 Tim Lin This week's blog is about comparing two open-source software packages. In this lab, I choose MongoDB and PHP . 1. MongoDB is written in C++ and is an open-source database system based on distributed file storage.  MongoDB uses the GNU AGPL v3.0 license. It is done by uploading Git to replace the original code or to fix bugs. So the MongoDB repository( https://github.com/mongodb/mongo ) is also using GitHub. As it is open source. So MongoDB also welcomes community members to use its bug issue system( https://jira.mongodb.org/plugins/servlet/samlsso?redirectTo=%2F ) to fix bugs. MongoDB currently has 627 contributors. Most of these patches are made by users who raise questions through the bug feedback system. The contributors then release the initial patches, and if they have problems, they discuss better patches with each other. I have observed that their discussion history is usually resolved within a day, which is very efficient. In the absence of bugs contributor

HI SPO600

My name is Tim Lin. Nice to meet you.