Computer architeceture mid pr Calculation assembly 컴퓨터 구조: 어셈블리를 이용한 계산기소스(PCSPIM이용), 컴퓨터구조 및 설계(4판)2장 연습문제
본 자료는 4페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
해당 자료는 4페이지 까지만 미리보기를 제공합니다.
4페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

Computer architeceture mid pr Calculation assembly 컴퓨터 구조: 어셈블리를 이용한 계산기소스(PCSPIM이용), 컴퓨터구조 및 설계(4판)2장 연습문제에 대한 보고서 자료입니다.

목차

1. 계산기 소스 코드
 - +,-,*,/ 연산
 - 계산 과정 display 동시 수행 ex: 1+3=4
 - 어셈블리 언어로 작성, assembly language
 - PC spim으로 구현

2. 컴퓨터 구조 및 설계(하드웨어 소프트웨어 인터페이스 ARM 버전)

3. ch2 연습문제
 19.1.(a,b)
 19.2(a)
 20.1.(a,b)
 21.2(a)
 33.2.(b)
 33.2.(b)

본문내용

[1] 계산기
 ① 소스

.data
str1: .asciiz \"\n thx to use JIN's calculator-01 :)\n\"
str2: .asciiz \"\n First, input number 1 : \"
str3: .asciiz \"\n Second, input operator : \"
str4: .asciiz \"\n Last, input number 2 : \"
str5: .asciiz \"+\"
str6: .asciiz \"-\"
str7: .asciiz \"x\"
str8: .asciiz \"/\"
str9: .asciiz \" = \"
str10: .asciiz \"\n hooray!!!!!!!\n\"
str11: .asciiz \"check\"
str12: .asciiz \"+\"
str13: .asciiz \"-\"
str14: .asciiz \"x\"
str15: .asciiz \"/\"
str16: .asciiz \"\n\nThe result is : \"
str17: .asciiz \"\n\"

    .text

#####################main함수
main:

 addi $v0, $zero, 4
 la $a0, str1
 syscall




≪ … 중 략 … ≫




[1] 연습문제
 2.19.1(a)
 ① SOURCE

.data

str2: .asciiz \"\n First, input number 1 : \"
str4: .asciiz \"\n Last, input number 2 : \"
str18: .asciiz \"\n This is comparation between number1 and number2 \n if no1>=no2, the result is 1. \n unless(no1
.text
main:
    addi $v0, $0, 4
    la $a0, str18
    syscall
    
    addi $v0, $0, 4
    la $a0, str2
    syscall
    addi $v0, $0, 5
    syscall
    move $s0, $v0        #$a0 입력

    addi $v0, $0, 4
    la $a0, str4
    syscall
    addi $v0, $0, 5
    syscall
    move $s1, $v0        #$a1 입력

    j minus            #compre 함수 점프
    
resultdisplay:    
    move $t1, $v0
    addi $v0, $0, 1
    addi $a0, $t1, 0
    syscall
    j main
  • 가격2,800
  • 페이지수13페이지
  • 등록일2012.10.23
  • 저작시기2011.4
  • 파일형식아크로뱃 뷰어(pdf)
  • 자료번호#772986
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니