Skip to main content

MACRO DATABASE

Great to know that you are curious about the databases used in the MACRO Pass1 and Pass2.
Here we Go.!!!!!

Pass 1: Databases

  1. Source Program
  2. Output of Source Program to be fed to Pass 2
  3. Macro Definition Table (MDT)- Stores Macro Definitions
  4. Macro Name Table(MNT) - Stores the Macro Name that are defined in the Program
  5. Macro Definition Table Counter (MDTC) - Indicates next available entry in MDT
  6. Macro Name Table Counter (MNTC) - Indicates next available entry in MNT
  7. Argument List Array (ALA)- Stores the index markers for dummy arguments
Pass 2: Databases

  1. Input Source Program
  2. Expanded Source Code i.e  Output for Assembler 
  3. Macro Definition Table (MDT)- Created and Maintained by Pass 1
  4. Macro Name Table(MNT) -  Created and Maintained by Pass 1 
  5. Macro Definition Table Pointer (MDTP) - Indicate next line used in Expansion.
  6. Arguments List Arrays (ALA)- Substitutes arguments for index markers.

Example

                MACRO
&PAC     ADDM    &ARG1,&ARG2,&ARG3 
                A  1, &ARG1 
                A  2, &ARG2     
                A  3, &ARG3
                MEND
..................................................
LOOP     ADDM   D1,D2,D3
..................................................

1.Argument List Array
INDEX ARGUMENT
0 LOOPbbbb
1 D1bbbbbb
2 D2bbbbbb
3 D3bbbbbb
2. Macro Definition Table
INDEX CARD
10 &PAC ADDM &ARG1,&ARG2,&ARG3
11 A 1,#1
12 A 2,#2
13 A 3,#3
14 MEND
3. Macro Name Table
INDEX NAME MDT INDEX
8-BYTES 4 BYTES
. . . . . . . . .
3 ADDMbbbb 10
. . . . . . . . .

Comments

Popular posts from this blog

CloudSimSDN Compiling Issues

Hello, this is regarding issues such as Main class not found or Can not find symbol while executing or compiling. You just need to set proper path of your cloudsimsdn directory. I stored CloudSimSDN folder downloaded from github  at location E:\ with the name cloud. It's very much important to provide proper jar file's address as well as providing complete path of file that has to be inputed such as energy-physical.json.  Set Java path variable value:  C:\Program Files\Java\jdk1.8.0_121\bin CLASSPATH value : E:\cloud\jars\*; E:\cloud\src; For Compiling javac E:\cloud\src\org\cloudbus\cloudsim\sdn\example\ SDNExample.java For Executing java org.cloudbus.cloudsim.sdn.example.SDNExample MFF E:\cloud\dataset-energy\energy-physical.json E:\cloud\dataset-energy\energy-virtual.json E:\cloud\dataset-energy\energy-workload.csv > results.out These commmands are tested with Windows 10 and Latest java version. Please share your valuable comments and queries....

Macro Pass 1 and Pass 2

Hello, I presumed that you are aware of various databases needed for the Pass 1 &2. Please provide a following with the input file macroinput.txt I request you to post the screenshot of the output. import java.util.*; import java.io.*; class MntTuple { String name; int index; MntTuple(String s, int i) { name = s; index = i; } public String toString() { return("[" + name + ", " + index + "]"); } } class MacroProcessor { static List<MntTuple> mnt; static List<String> mdt; static int mntc; static int mdtc; static int mdtp; static BufferedReader input; static List<List <String>> ala; static Map<String, Integer> ala_macro_binding; public static void main(String args[]) throws Exception { initializeTables(); System.out.println("===== PASS 1 =====\n"); pass1(); System.out.println("\n===== PASS 2 =====\n"); pass2(); } static void pas...

SC ANN Course Material

Hello Enthusiasts, Checkout the following course material. It will be regularly updated. Quiz 1 Quiz 2 Upload the Assignment 1 Upload the Assignment 2 MSc_IT_All_SC_ANN_Syllabus_2019_2020 MSc_IT_All_Sub_Syllabus_2019_2020 Github Notes PPTs  Topic Link Introduction to Fuzzy Logic 1 Intro_to_Fuzzy Fuzzy Rules 2 Fuzzy Rules Defuzzification 3 Defuzzification NN_Introduction 4 NN_Introduction NN_Architecture 5 NN_Architecture NN_Training 6 NN_Training References: [1]  https://cse.iitkgp.ac.in/~dsamanta/courses/sca/index.html [2] NPTEL YouTube Channel-       https://www.youtube.com/channel/UC0FyHh2HW62lSCYeRYfNqww As complexity rises, precise statements lose meaning and meaningful statements lose precision -  Lotfi A Zadeh