SlideShare a Scribd company logo
Task: Perform addition, subtraction, division, and multiplication, of rational numbers on MIPS Mars
Programming Simulator by writing a code and print the answers (using macros) from the pictures
provided. Also, when you write the code make sure you follow this format,
format:
.macro print_int (%x)
li $v0, 1
add $a0, $zero, %x
syscall
.end_macro
print_int ($s0)
print_int (10)
Intro Settings Syscalls IDE Debugging Command Tools History Limitations Exception Handlers
Macros Acknowledgements MARS home Writing and Using Macros .macro, .end_macro,.eqv and
.include directives are new in MARS 4.3 Introduction to macros Patterson and Hennessy define a
macro as a pattern-matching and replacement facility that provides a simple mechanism to name
a frequently used sequence of instructions [1]. This permits the programmer to specify the
instruction sequence by invoking the macro. This requires only one line of code for each use
instead of repeatedly typing in the instruction sequence each time. It follows the axiom "define
once, use many times," which not only reduces the chance for error but also facilitates program
maintenance. Macros are like procedures (subroutines) in this sense but operate differently than
procedures. Procedures in MIPS assembly language follow particular protocols for procedure
definition, call and return. Macros operate by substituting the macro body for each use at the time
of assembly. This substitution is called macro expansion.. They do not require the protocols and
execution overhead of procedures. As a simple example, you may want to terminate your program
from a number of locations. If you are running from the MARS IDE, you will use system call 10,
exit. The instruction sequence is pretty easy 1i$v0,10syscal1 but still tedious. You can define a
macro, let's call it done, to represent this sequence [ begin{array}{l} text { macro done } text { i1 } $
text { vo, } 10 text { syscali } text { +end_macro } end{array} ] then invoke it whenever you wish
with the statement done At assembly time, the assembler will replace each occurrence of the
statement done with the two-statement sequence 1i$v0,10syscali This is the macro expansion.
The runtime simulator is unaware of macros or macro expansion. If running MARS from the
command line, perhaps you want to return a termination value. This can be done with syscall 17,
exit2, which takes the termination value as an argument. An equivalent macro, let's call it
terminate would be macro terminate (stermination_value) ii $a0, itermination_value li $v0,17
syscali .end_macro This macro defines a formal parameter to represent the termination value. You
would invoke it with the statement terminate (1) to terminate with value 1. Upon assembly, the
statement terminate (1) would be replaced byterninate (1) to terminate with value 1. Upon
assembly, the statement terainate (1) would be replaced by the three-statement sequence The
argument value, 1, is substituted wherever the formal parameter teermination_value appears in
the macro body. This is a textual substitution. Note that in this example the argument value must
be an integer, not a register name or a label, because the parameter is used as the second
operand in the Load Immediate operation. In MARS, a macro is similar to an extended (pseudo)
instruction. They are distinguished in that the expansion of extended instructions is supported by
an internally-defined specification language and mechanism which can manipulate argument
values. The macro facility can only substitute argument values as given, and it uses a separate
mechanism from extended instructions. Additional examples and details follow. How to define
macros The first line begins with a s macro directive followed by an optional list of formal
parameters. Placing commas between parameters and parentheses around the list is optional.
Each formal parameter is an identifier that begins with a s character. For cempatibility with the
SPIM preprocessor APP, it may alternatively begin with 5 , The lines that follow define the body of
the macro. Use the formal parameters as appropriate. The body may contain data segments as
well as text segments. The macro definition finishes with a .end_macro directive. See the Notes
below for additional information. How to use macros To invoke a macro, form a statement
consisting of the macro name and then one token for each. argument to be substituted for its
corresponding formal parameter by the assembler. The argument list may optionally be
surrounded by parentheses. Arguments may be separated either by spaces or commas. Macro
expansion is a pre-processing task for assemblers. Notes - A macro definition must appear before
its use. No forward references. - All macro definitions are local in cach file and they caninot be
global. - Nested macro definitions are not supported. No - macro directive should appear inside
body of a macro definition. - A macro definition can contain a call to a previously-defined macro.
Only backward references are allowed. - Labels placed in the body of a macro definition will not
have same name after macro expansion. During expansion, their name will be followed by Min
where I will be a unique number for each macro expansion. - Two macros with the same name but
different number of parameters are considered different and both can be used. - A macro defined
with the same name and same number of parameters as another macro defined before it will be
ignored. - Each argument in a macro call can only be a single language element (token). For
instance "4(St0)" cannot be an argument. - Macros are a part of the assembler, not the ISA. So
the syntax might be different with other assemblers. For compatibility with the SPIM simalator,
SPRM-shyle macras are a bro supported in MARS. SPIM-style macros are same as MARS but
formal parameters beginsupported in MARS. SPIM-style macros are same as MARS but formal
parameters begin with " " " instead of %" ". Examples - Printing an integer (argument may be
either an immediate value or register name): macro print_int (bx) if $vo, 1 add $a0,$2er0,8x
syscall iend_macro print_int ($80) print_int (10) - Printing a string (macro will first assign a label to
its parameter in data segment then print it): - Implementing a simple for-loop: The for macro has 4
parameters. kregiterator sbould be the name of a register which iterates from 8 tron to sto and in
each iferation tbedyMacrokame will be expanded and tun. Arguments for s from and ato can be
either a register name or an immediate value, and Mbodywaerokame should be name of a macro
that has no parameters. Macro source line numbers For purpose of error messaging and Text
Segment display, MARS attempts to display line numbers for both the definition and use of the
pertinent macro statement. If an error message shows the line number in the form "X->Y" (c.g.
"20->4"), then X is the line number in the expansion (use) where the error was detected and r is
the line number in the macro definition. In the Text Segment display of souree code, the macto
definition line number will be displayed within brackets, e.g. " <4> ", at the point of expansion. Line
numbers shoald correspond to the numbers you would see in the text editot. The .eqv directive
The -eqv directive (short for "equivalence") is also new in MARS 4,3. It is similar to #det ine in C or
C++, It is used to substitute an arbitrary string for an identifier. It is useful but much less powerful
than macros. It was developed independently of the macro facility. Using - eqv, you can specify
simple substitutions that provide "define once, use many times" capability at assembly pre-
processing time. For example, once you define( begin{array}{ll}text {. eqv LIMIT CTR } & $ t 2 text
{. eqv CLv CLEAR_CTR add CTR, $zero, } 0 text {. eqv }end{array} ) then you can refer to them in
subsequent code: li $V0,1 CLEAR CTR loop: move $a0, CrR syseall add CTR, CTR, 1 blt CTR,
LIMIT, loop CLERR_CTR During assembly pre-processing, the .eqv substitutions will be applied.
The resulting code is li $v0,1 add $t2,$zero,0 move $a0,$t2 syscall add $t2,$t2,1 blt $t2,20,100p
add $t2,$zero,0 which when run will display the values 0 through 19 on one line with no
intervening spaces. Note that the substitution string is not limited to a single token. Like , macro, .
eqv is local to the file in which it is defined, and must be defined prior to use. Macro bodies can
contain references to e equ directives. The ainclude directive The . inelude directive is also new in
MARS 4.3. It has one operand, a quoted filename, When the directive is carried out, the contents
of the specified file are substituted for the directive. This occurs during assembly preprocessing. It
is like #include in C or C+. . include is designed to make macro and equivalence (eqv directive)
use more convenient. Both macro definitions and equivalence definitions are local, which means
they can be used only in the same file where defined. Without . include, you would have to repeat
their definitions in every file where you want to use them. Besides being tedious, this is poor
programming practice; remenber "define once, use many times." Now you can define macros and
equivalences in a seperate file, then include it in any file where you want to use them. The .
inelude preprocessor will detect and flag any circular includes (file that includes itself, directly or
indirectly). The use of . include presents some challenges for error messaging and for source code
numbering in the Text Segment display. If a file being included has any assembly errors, the
filename and line number in the error message should refer to the file being included, not the file it
was substituted into. Similarly, the line number given in the Text Segment source code display
refers to the line in the file being included. Thus the displayed line numbers do not monotonically
increase - this is also the case when using the "assemble all" setting. Line numbers sbould
correspond to the numbers you would see in the text editor. As a simple example, you could
define the done macro (and others) in a separate file then include it wherever you need it.
Suppose "macros. asm contains the following: You could then include it in a different source file
something like this:During assembly preprocessing, this would be expanded to The assembler will
then perform the appropriate macro expansion. Acknowledgements The MARS macro facility was
developed in 2012 by Mohammad Hossein Sekhavat, sekhavat17@gmail.com, while an
engineering student at Sharif University in Tehran. MARS creators Pete and Ken are incredibly
grateful for his contribution! Pete developed . eqv and . include at about the same time.
References [1] Computer Organization and Design: The Hardware/Software Interface, Fourth
Edition, Patterson and Hennessy, Morgan Kauffman Publishers, 2009.

More Related Content

PDF
N_Asm Assembly macros (sol)
PDF
handout6.pdf
PPT
Preprocessors
PDF
Unit 2
PPT
Tips and Tricks using the Preprocessor
PDF
Module 5.pdf
PPTX
C language 3
PPTX
Macros...presentation
N_Asm Assembly macros (sol)
handout6.pdf
Preprocessors
Unit 2
Tips and Tricks using the Preprocessor
Module 5.pdf
C language 3
Macros...presentation

Similar to Task Perform addition subtraction division and multiplic.pdf (20)

PDF
Maxbox starter
PDF
Handout#04
DOCX
LA3-64 -vit assembly language program to Accept string and display its length...
PDF
C basic questions&amp;ansrs by shiva kumar kella
PDF
Getting started with Microsoft Excel Macros
PPTX
Inline functions & macros
PDF
C Programming - Refresher - Part IV
PDF
Matlab guide
PPT
SAS Macros part 1
PDF
Safe Clearing of Private Data
PPT
Data structures
PPT
PDF
Handout#05
PPTX
Writing command macro in stratus cobol
PDF
Евгений Бурмако «scala.reflect»
PDF
scala.reflect, Eugene Burmako
PPTX
c & c++ logic building concepts practice.pptx
PPTX
Preprocessor directives in c language
PPTX
Preprocessor directives in c laguage
Maxbox starter
Handout#04
LA3-64 -vit assembly language program to Accept string and display its length...
C basic questions&amp;ansrs by shiva kumar kella
Getting started with Microsoft Excel Macros
Inline functions & macros
C Programming - Refresher - Part IV
Matlab guide
SAS Macros part 1
Safe Clearing of Private Data
Data structures
Handout#05
Writing command macro in stratus cobol
Евгений Бурмако «scala.reflect»
scala.reflect, Eugene Burmako
c & c++ logic building concepts practice.pptx
Preprocessor directives in c language
Preprocessor directives in c laguage
Ad

More from acsmadurai (20)

PDF
T X Projection of Di An Fo Isobaric diagr illustrating.pdf
PDF
T Miyake y M Demerec examinaron mutaciones que requieren p.pdf
PDF
Systen outprintln encrypted zessage Systezoutprin.pdf
PDF
Suzy is a fourteen year old teenager she resides with her u.pdf
PDF
Szl ve poster sunumlar arasndaki benzerlik ve farkllklar a.pdf
PDF
Symbiodinium is a dinoflagellate with a genome size that enc.pdf
PDF
Szleme hukuku S9 Kitty tm mal varln byk kz Meghana .pdf
PDF
Tace rie to the tent Gedit coling Assume the foltowng hist.pdf
PDF
symbol inputEnter stock ticker a symbolsplit .pdf
PDF
Symons Vs Heaton Gary Plachek and Curtis Symons met in 1.pdf
PDF
tances along a road in a forest The skidding distances in .pdf
PDF
taught enough math and science Do parents feel differently .pdf
PDF
Synergy effects is abstractly defined as the interplay betw.pdf
PDF
Telehealthtelemedicine has become increasingly important i.pdf
PDF
Tablo 102 Bir i merkezinde ilenmeyi bekleyen aadaki alt i .pdf
PDF
Team ProjectPresentation 20 Students are expected to wo.pdf
PDF
Tek yumurta ikizleri ayn yumurtadan gelir ve dolaysyla ayn c.pdf
PDF
Tedarik iin ortak hedefler aadakilerin tmn ierir HAR.pdf
PDF
TCL global strategy at one of Chinas largest consumer e.pdf
PDF
TCO 1 Celeste pasa la mayor parte de su tiempo en el tra.pdf
T X Projection of Di An Fo Isobaric diagr illustrating.pdf
T Miyake y M Demerec examinaron mutaciones que requieren p.pdf
Systen outprintln encrypted zessage Systezoutprin.pdf
Suzy is a fourteen year old teenager she resides with her u.pdf
Szl ve poster sunumlar arasndaki benzerlik ve farkllklar a.pdf
Symbiodinium is a dinoflagellate with a genome size that enc.pdf
Szleme hukuku S9 Kitty tm mal varln byk kz Meghana .pdf
Tace rie to the tent Gedit coling Assume the foltowng hist.pdf
symbol inputEnter stock ticker a symbolsplit .pdf
Symons Vs Heaton Gary Plachek and Curtis Symons met in 1.pdf
tances along a road in a forest The skidding distances in .pdf
taught enough math and science Do parents feel differently .pdf
Synergy effects is abstractly defined as the interplay betw.pdf
Telehealthtelemedicine has become increasingly important i.pdf
Tablo 102 Bir i merkezinde ilenmeyi bekleyen aadaki alt i .pdf
Team ProjectPresentation 20 Students are expected to wo.pdf
Tek yumurta ikizleri ayn yumurtadan gelir ve dolaysyla ayn c.pdf
Tedarik iin ortak hedefler aadakilerin tmn ierir HAR.pdf
TCL global strategy at one of Chinas largest consumer e.pdf
TCO 1 Celeste pasa la mayor parte de su tiempo en el tra.pdf
Ad

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Lesson notes of climatology university.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Computing-Curriculum for Schools in Ghana
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Cell Types and Its function , kingdom of life
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Lesson notes of climatology university.
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
PPH.pptx obstetrics and gynecology in nursing
Computing-Curriculum for Schools in Ghana
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Task Perform addition subtraction division and multiplic.pdf

  • 1. Task: Perform addition, subtraction, division, and multiplication, of rational numbers on MIPS Mars Programming Simulator by writing a code and print the answers (using macros) from the pictures provided. Also, when you write the code make sure you follow this format, format: .macro print_int (%x) li $v0, 1 add $a0, $zero, %x syscall .end_macro print_int ($s0) print_int (10) Intro Settings Syscalls IDE Debugging Command Tools History Limitations Exception Handlers Macros Acknowledgements MARS home Writing and Using Macros .macro, .end_macro,.eqv and .include directives are new in MARS 4.3 Introduction to macros Patterson and Hennessy define a macro as a pattern-matching and replacement facility that provides a simple mechanism to name a frequently used sequence of instructions [1]. This permits the programmer to specify the instruction sequence by invoking the macro. This requires only one line of code for each use instead of repeatedly typing in the instruction sequence each time. It follows the axiom "define once, use many times," which not only reduces the chance for error but also facilitates program maintenance. Macros are like procedures (subroutines) in this sense but operate differently than procedures. Procedures in MIPS assembly language follow particular protocols for procedure definition, call and return. Macros operate by substituting the macro body for each use at the time of assembly. This substitution is called macro expansion.. They do not require the protocols and execution overhead of procedures. As a simple example, you may want to terminate your program from a number of locations. If you are running from the MARS IDE, you will use system call 10, exit. The instruction sequence is pretty easy 1i$v0,10syscal1 but still tedious. You can define a macro, let's call it done, to represent this sequence [ begin{array}{l} text { macro done } text { i1 } $ text { vo, } 10 text { syscali } text { +end_macro } end{array} ] then invoke it whenever you wish with the statement done At assembly time, the assembler will replace each occurrence of the statement done with the two-statement sequence 1i$v0,10syscali This is the macro expansion. The runtime simulator is unaware of macros or macro expansion. If running MARS from the command line, perhaps you want to return a termination value. This can be done with syscall 17, exit2, which takes the termination value as an argument. An equivalent macro, let's call it terminate would be macro terminate (stermination_value) ii $a0, itermination_value li $v0,17 syscali .end_macro This macro defines a formal parameter to represent the termination value. You would invoke it with the statement terminate (1) to terminate with value 1. Upon assembly, the statement terminate (1) would be replaced byterninate (1) to terminate with value 1. Upon assembly, the statement terainate (1) would be replaced by the three-statement sequence The argument value, 1, is substituted wherever the formal parameter teermination_value appears in the macro body. This is a textual substitution. Note that in this example the argument value must be an integer, not a register name or a label, because the parameter is used as the second operand in the Load Immediate operation. In MARS, a macro is similar to an extended (pseudo)
  • 2. instruction. They are distinguished in that the expansion of extended instructions is supported by an internally-defined specification language and mechanism which can manipulate argument values. The macro facility can only substitute argument values as given, and it uses a separate mechanism from extended instructions. Additional examples and details follow. How to define macros The first line begins with a s macro directive followed by an optional list of formal parameters. Placing commas between parameters and parentheses around the list is optional. Each formal parameter is an identifier that begins with a s character. For cempatibility with the SPIM preprocessor APP, it may alternatively begin with 5 , The lines that follow define the body of the macro. Use the formal parameters as appropriate. The body may contain data segments as well as text segments. The macro definition finishes with a .end_macro directive. See the Notes below for additional information. How to use macros To invoke a macro, form a statement consisting of the macro name and then one token for each. argument to be substituted for its corresponding formal parameter by the assembler. The argument list may optionally be surrounded by parentheses. Arguments may be separated either by spaces or commas. Macro expansion is a pre-processing task for assemblers. Notes - A macro definition must appear before its use. No forward references. - All macro definitions are local in cach file and they caninot be global. - Nested macro definitions are not supported. No - macro directive should appear inside body of a macro definition. - A macro definition can contain a call to a previously-defined macro. Only backward references are allowed. - Labels placed in the body of a macro definition will not have same name after macro expansion. During expansion, their name will be followed by Min where I will be a unique number for each macro expansion. - Two macros with the same name but different number of parameters are considered different and both can be used. - A macro defined with the same name and same number of parameters as another macro defined before it will be ignored. - Each argument in a macro call can only be a single language element (token). For instance "4(St0)" cannot be an argument. - Macros are a part of the assembler, not the ISA. So the syntax might be different with other assemblers. For compatibility with the SPIM simalator, SPRM-shyle macras are a bro supported in MARS. SPIM-style macros are same as MARS but formal parameters beginsupported in MARS. SPIM-style macros are same as MARS but formal parameters begin with " " " instead of %" ". Examples - Printing an integer (argument may be either an immediate value or register name): macro print_int (bx) if $vo, 1 add $a0,$2er0,8x syscall iend_macro print_int ($80) print_int (10) - Printing a string (macro will first assign a label to its parameter in data segment then print it): - Implementing a simple for-loop: The for macro has 4 parameters. kregiterator sbould be the name of a register which iterates from 8 tron to sto and in each iferation tbedyMacrokame will be expanded and tun. Arguments for s from and ato can be either a register name or an immediate value, and Mbodywaerokame should be name of a macro that has no parameters. Macro source line numbers For purpose of error messaging and Text Segment display, MARS attempts to display line numbers for both the definition and use of the pertinent macro statement. If an error message shows the line number in the form "X->Y" (c.g. "20->4"), then X is the line number in the expansion (use) where the error was detected and r is the line number in the macro definition. In the Text Segment display of souree code, the macto definition line number will be displayed within brackets, e.g. " <4> ", at the point of expansion. Line numbers shoald correspond to the numbers you would see in the text editot. The .eqv directive
  • 3. The -eqv directive (short for "equivalence") is also new in MARS 4,3. It is similar to #det ine in C or C++, It is used to substitute an arbitrary string for an identifier. It is useful but much less powerful than macros. It was developed independently of the macro facility. Using - eqv, you can specify simple substitutions that provide "define once, use many times" capability at assembly pre- processing time. For example, once you define( begin{array}{ll}text {. eqv LIMIT CTR } & $ t 2 text {. eqv CLv CLEAR_CTR add CTR, $zero, } 0 text {. eqv }end{array} ) then you can refer to them in subsequent code: li $V0,1 CLEAR CTR loop: move $a0, CrR syseall add CTR, CTR, 1 blt CTR, LIMIT, loop CLERR_CTR During assembly pre-processing, the .eqv substitutions will be applied. The resulting code is li $v0,1 add $t2,$zero,0 move $a0,$t2 syscall add $t2,$t2,1 blt $t2,20,100p add $t2,$zero,0 which when run will display the values 0 through 19 on one line with no intervening spaces. Note that the substitution string is not limited to a single token. Like , macro, . eqv is local to the file in which it is defined, and must be defined prior to use. Macro bodies can contain references to e equ directives. The ainclude directive The . inelude directive is also new in MARS 4.3. It has one operand, a quoted filename, When the directive is carried out, the contents of the specified file are substituted for the directive. This occurs during assembly preprocessing. It is like #include in C or C+. . include is designed to make macro and equivalence (eqv directive) use more convenient. Both macro definitions and equivalence definitions are local, which means they can be used only in the same file where defined. Without . include, you would have to repeat their definitions in every file where you want to use them. Besides being tedious, this is poor programming practice; remenber "define once, use many times." Now you can define macros and equivalences in a seperate file, then include it in any file where you want to use them. The . inelude preprocessor will detect and flag any circular includes (file that includes itself, directly or indirectly). The use of . include presents some challenges for error messaging and for source code numbering in the Text Segment display. If a file being included has any assembly errors, the filename and line number in the error message should refer to the file being included, not the file it was substituted into. Similarly, the line number given in the Text Segment source code display refers to the line in the file being included. Thus the displayed line numbers do not monotonically increase - this is also the case when using the "assemble all" setting. Line numbers sbould correspond to the numbers you would see in the text editor. As a simple example, you could define the done macro (and others) in a separate file then include it wherever you need it. Suppose "macros. asm contains the following: You could then include it in a different source file something like this:During assembly preprocessing, this would be expanded to The assembler will then perform the appropriate macro expansion. Acknowledgements The MARS macro facility was developed in 2012 by Mohammad Hossein Sekhavat, sekhavat17@gmail.com, while an engineering student at Sharif University in Tehran. MARS creators Pete and Ken are incredibly grateful for his contribution! Pete developed . eqv and . include at about the same time. References [1] Computer Organization and Design: The Hardware/Software Interface, Fourth Edition, Patterson and Hennessy, Morgan Kauffman Publishers, 2009.