Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cw3_hb.DOC
Скачиваний:
3
Добавлен:
06.02.2016
Размер:
1.34 Mб
Скачать

40

EEF

Donetsk National Technical University

Institute of International Co-operation

English Engineering Faculty

Computer Engineering Department

Course project handbook on “Programming” Donetsk, DonNtu, 2012

UDC 681.322

R. Malcheva. Course Project Handbook on “Programming”. –

Donetsk: DonNTU, 2012. – _??_ p.

Course Project Handbook on the discipline “Programming” consists of draft theoretical material, tasks for development of the simple simulation system using C++ language and general requests to Explanatory Note preparing.

Handbook consists of a large number of working examples illustrated a methodology of simulation programs’ development.

Edited by English Engineering Faculty of DonNTU

Ukraine Tel: (062) 305-43-74

340000, Donetsk (062) 301-07-35

58, Artyom str., r. 1.417 E-mail: raisa@cs.dgtu.donetsk.ua

Contents

Introduction…………………………………………………………………... 4

  1. TECHNICAL TASK………………………..……………………………. 5

  2. ANALYZES OF VIRTUAL COMPUTER……………………………….. 6

    1. General architecture ………………………………………………………. 6

    2. Memory organizations. Data formats. Addressing modes.………………..13

  3. PROGRAMMING IN CODE OF VIRTUAL COMPUTER ……………. 16

    1. Programming in code of One-address Virtual Computer………………….16

    2. Programming in code of Two-address Virtual Computer ……………….17

    3. Programming in code of Three-address Virtual Computer……………….18

  4. SIMULATION PROGRAM DEVELOPING …………..……………..….19

    1. User Interface……………………………….……………………………...19

    2. Memory simulation ………………………………………………………..20

    3. ALU simulation …………………………………………………………..34

    4. Control unit simulation …………….…………………….………………..34

  5. TESTING OF SIMULATION PROGRAM ……………………………….40

Conclusion……………………………….…………………………………….44

References……………………………….…………………………………….48

Appendix A: General requests to the reports’ preparing ……..………………..52

Appendix B: Title Page example ………………………………………………

Appendix C: The structures and instructions’ sets of VC …………………….

Introduction

During the 3d semester of your education you develop the Course Project using C++ language.

The first part of this Course Project is concerned with understanding how the computer is constructed on the example of simple virtual computer.

At the second stage you look at data representation (data formats) and then you examine the ways in which the data are accessed (addressing modes). You also lean the some typical algorithms: how to convert the array of bits to integer value and array of characters (hexadecimal numbers) to integer decimal.

The main purpose of this Course Project is to teach you to develop the simulation programs.

As the result you should have the Explanatory Note (report) and program documentation.

There’re some requirements to your reports. They are included here in order to make absolutely sure that, should you be asked to submit your reports, there no grounds for misunderstanding.

  • Your report should be yours and not anybody else’s, including you partner. This means that, although you may include printouts, which are identical to your partner’s, anything else in you report must be your own work.

  • Your report should not contain information that is well known to the assessors, e.g. extracts from documents supplied by us to you; you must, however make a reference to any such documents.

  • Make sure that you include all the preparatory work that you were expected to do in you report, that it’s fully referenced and that, if relevant, you refer to it in you discussion.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]