서브루틴
-
[문제해설] 어느 프로그램 중 0123번지에 CALL A 명령이 있다. 이 CALL A를 수행한 후 stack에 기억된 값은?전자계산기조직응용기사/필기 기출문제 해설 2022. 6. 13. 23:01
전자계산기조직응용기사 필기 기출문제 해설(5과목 마이크로 전자계산기-서브루틴과 스택) - 2016년1회 어느 프로그램 중 0123번지에 CALL A 명령이 있다. 이 CALL A를 수행한 후 stack에 기억된 값은? ① 0123 ② 0125 ③ 1234 ④ 1300 - 문제 해설 - 본문제의 기본 개념은 아래의 유사문제 풀이를 꼭 참고하세요. https://fishbone-s-present.tistory.com/128 [문제해설] 그림과 같은 어느 프로그램 중 0123번지에 CALL A 명령이 있다. 이 CALL A를 수행한 후 PC에 전자계산기조직응용기사 필기 기출문제 해설(5과목 마이크로 전자계산기-서브루틴과 스택) - 2003년1회 그림과 같은 어느 프로그램 중 0123번지에 CALL A 명령이 ..
-
[문제해설] 그림과 같은 어느 프로그램 중 0123번지에 CALL A 명령이 있다. 이 CALL A를 수행한 후 PC에 기억된 값은?(단, 모든 명령문은 1바이트라 하자.)전자계산기조직응용기사/필기 기출문제 해설 2022. 5. 31. 05:19
전자계산기조직응용기사 필기 기출문제 해설(5과목 마이크로 전자계산기-서브루틴과 스택) - 2003년1회 그림과 같은 어느 프로그램 중 0123번지에 CALL A 명령이 있다. 이 CALL A를 수행한 후 PC에 기억된 값은?(단, 모든 명령문은 1바이트라 하자.) ① 0124 ② 1234 ③ 1285 ④ 2345 - 문제 해설 - 본 문제에서의 call 명령어는 서브루틴을 호출하는 명령어입니다. 이러한 프로그램의 수행을 서브루틴으로 넘어가게 하는 명령어는 call subroutine, jump to subroutine, branch to subroutine, branch and save address 등으로 불립니다. 이러한 서브루틴을 부르는 명령어는 다음 두 동작에 의해 수행됩니다. 현재 프로그램 카운..