Intro to computer Project3

# Intro to computer Project3 - 1 Project Description Project...

This preview shows pages 1–4. Sign up to view the full content.

1 Project # 3 By Jack Davis and Kayode Jimo Project Description : This project requires that using LC-3 we should write a simple assembly language program that will tell display to the user, the day of the week. In order for this to happen, the user would have to have inputted a date between January 1, 1901 to this present day. As specified in the requirement of this project, we have put together the content of these addresses: x31F0, x31F1, x31F2. The program starts from the address x3000,and the content of the previously declared addresses therefore describes: x31F0: the day of the month (a number from 1 to 31) x31F1: The month (a number between 1 and 12) x31F2: The year (a four digit number) Now that we have reiterated the project requirements for clarification purposes; the execution follows below in the order of: 1.2 State diagram 1.3 Assembly language 1.4 Binary/Hex language with short description next to them 1.5.1 Screenshot of the LC-3 with 1/1/1901 1.5.2 Screenshot of LC-3 with 10/2/19781.5.3 Screenshot of LC-3 with 3/1/2000 1.5.4 Screenshot of LC-3 with 4/10/2007 1.6 Table with input/output results of 4 examples of figures 1.5.1-4

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Project # 3 By Jack Davis and Kayode Jimo 1.2 State diagram START DIFFYR = INYEAR - 1901 LPYRR=R[(DIFFYR)/4 ] LPYRQ =Q[(DIFFYR)/4 ] TMP = LPYRR - 3 TM P TMPDAYS = TMPDAYS + 365 TMP2=TMP2-1 TMP3=TMP2+DIFFYR T1 = INMO-2 TMPDAYS=0 TMP2=0 DIFFYR=DIFFYR+0 DIFFYR T1 DSNR=DNSR+2 DOW=DNSR STORE DOW into x31F3 TRAP x21 DONE NP Z P ZN ZN P LPYRQ = LPYRQ TMP DSNR=DNSR-7 ZP N TMP N TMPDAYS=TMPDAYS+INDAY TMPDAYS=LPYRQ+TMPDAYS R6=M[M[JAN]] R6=R6-1 R6=R6+INMO TMP4=M[R6] DATESN=TMPDAYS+TMP4 DSNQ =R[(DATESN/7] DSNR =Q[(DATESN)/7] TMP4=DSNR-4 PZ
3 Project # 3 By Jack Davis and Kayode Jimo Algorithm: In order to calculate the day of week from a date input, we have to consider multiple

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 8

Intro to computer Project3 - 1 Project Description Project...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online