$1a tour of Wincupl


Figure 12 Edit – Insert Macro Definitions



Download 374.56 Kb.
Page9/23
Date22.12.2017
Size374.56 Kb.
1   ...   5   6   7   8   9   10   11   12   ...   23
Figure 12 Edit – Insert Macro Definitions
Include the selected macro file in the source file
Select this option to place an include statement in the source file that includes the entire macro file that is selected. This allows you to reference any macro that is in the included macro file from anywhere in the source file.
This is the default option, and will result in a smaller source file.
Insert the selected macro definitions into the source file
Select this option to place a copy of the macros in the Selected Macros box directly into the source file. This option is useful if you are only referencing a single macro from a file with several macros.
Macro Selection
The macro files presented in the selection list are those macro files present in the \Macro directory under the WinCUPL directory.
When you select a file from the drop down File/Name list, all named macros within the selected file are displayed in the list below the file name drop down. Select a macro from the list and the macro is displayed in the Definition box to the right of the selection lists. This allows you to preview the selected macro to insure that it is the one you desire to use.
Once you find the macro you wish to use, you can insert it into the source file in one of two ways:
If you have the default Include the selected macro file in the source file option selected, all you need to do is choose OK and an include statement referencing the macro file will be placed in the source file.
$INCLUDE TTL.MAC
If you have selected the Insert the selected macro definitions into the source file option, you must choose Add to create a copy of the selected macro and place it into the Selected Macros box. Then, when you press OK, the macro definition will be placed into the source file at the current cursor position.

$MACRO T7482 A1 A2 B1 B2 S1 S2 C2

/* 2-bit full adder */

S1 = A1 $ B1 $ C0;

S2 = A2 $ B2 $ (A1 & B1 # (C0 & (A1 $ B1)));

C2 = A2 & B2 # ((A1 & B1 # (C0 & (A1 $ B1))) & (A2 $ B2));




Share with your friends:
1   ...   5   6   7   8   9   10   11   12   ...   23


The database is protected by copyright ©psyessay.org 2017
send message

    Main page
mental health
health sciences
gandhi university
Rajiv gandhi
Chapter introduction
multiple choice
research methods
south africa
language acquisition
Relationship between
qualitative research
literature review
Curriculum vitae
early childhood
relationship between
Masaryk university
nervous system
Course title
young people
Multiple choice
bangalore karnataka
state university
Original article
academic performance
essay plans
social psychology
psychology chapter
Front matter
United states
Research proposal
sciences bangalore
Mental health
compassion publications
workplace bullying
publications sorted
comparative study
chapter outline
mental illness
Course outline
decision making
sciences karnataka
working memory
Literature review
clinical psychology
college students
systematic review
problem solving
research proposal
human rights
Learning objectives
karnataka proforma