亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? extendedalu.java

?? MIPS Simulator assembly languge.
?? JAVA
字號:
import java.awt.*;

/***********************************************************************
 *	File:     ExtendedALU.java
 *    Aurthor:  Dr. Dalton R. Hunkins
 *              Computer Science Department
 *              St. Bonaventure University
 *    Date:     17 January 2006
 *
 *    Purpose:
 *       The file is a stub that allows the reader/programmer to extend
 *       the ALU within the Data Path Simulator, PathSim, to handle
 *       additional MIPS operators. The extension is accomplished
 *       through adding java code to the method execute. See the lab
 *       instruction comment given below.
 *
 *   Class Modified by:
 ***********************************************************************/   

class ExtendedALU extends ALU {
	private DataLine aluControl, input1, input2, result, zero; 
	private DataPath parent;
/***********************************************************************
   The Data Lines are
	aluControl - the line coming from the ALU Control unit
	input1     - the line coming from the Registers
	input2     - the line coming from the Mux
	result     - the output line going from the ALU to Data Memory
	zero	     - the output line going to the And gate and carries
		       either "0" or "1"

***********************************************************************/
	
	public ExtendedALU(double x[], double y[], int n, 
			Color color, String label, String name,
	        DataLine aluControl, DataLine input1, DataLine input2, 
	        DataLine result, DataLine zero, DataPath parent) {
	   super(x, y, n, color, label, name, aluControl, input1, input2,
               result, zero);

	   this.input1     = input1;
	   this.input2     = input2;
	   this.aluControl = aluControl;
	   this.result     = result;
	   this.zero       = zero;
	   this.parent     = parent;
	}
	
	public void execute() {
	   int operation     = (int) hexStringToUnsigned(aluControl.getValue());
	   int signedNumber1 = hexStringToSigned(input1.getValue());
	   int signedNumber2 = hexStringToSigned(input2.getValue());

/*********************************************************************
               INSTRUCTIONS FOR LABS B and C
   Currently, the method is implemented by the call super.execute()
   as seen with the code written below. However, the parent super
   does nothing with the extensions. Therefore, you must write your 
   code here for those extensions. In particular, super handles 
   the aluControl values 0, 1, 2, 6 and 7. Now for Lab B, your
   code must handle any of the following aluControl input values 
   (stored in operation) by placing appropriate values on the 
   output lines this.result and this.zero
         aluControl = 3 -> nor
         aluControl = 4 -> xor
         aluControl = 5 -> sllv
         aluControl = 8 -> srav
         aluControl = 9 -> srlv
    And for lab C, your code must handle the following 
    aluControl input value (stored in operation) by placing 
    appropriate values on the output lines this.result and 
    this.zero
         aluControl = A -> bne
    (Note: nothing more needs to be done here
     for the MIPS operators addi, andi, ori and xori. WHY?)

    To accomplish your task for lab B and/or lab C, you will need
    to do the appropriate computations for the operations 
    (this is a simulator and we CAN write the operations
     in Java versus constructing circuits).  
    You will also need to place values on the output lines
    this.result and this.zero using the method setValue belonging
    to the DataLine class and the inherited utility method 
    signedToHexString described as follows:

    public void setValue(String value) 
	precondition: 
	   value is any String
	postcondition:
	   value is put on the data line and appears with
	   a mouse click on the line

    protected String signedToHexString(int number, 
                                       int numberOfDigits)
	precondition:
	   number is any 32 bit integer
       numberOfDigits is any positive integer
	postcondition:
	   a String of numberOfDigits (e.g. 8 digit) is returned. The
       string is a sequence of hex digits that is equivalent to
       the 32 bit integer 

    For development/debugging purposes, you may also wish to use the
    the following method:

    parent.displayMessage(String message)
       precondition:
          message is any string
       postcondition:
          the message is displayed in an alert box
**********************************************************************/
       super.execute();
    }	
}



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区影院| 欧美色倩网站大全免费| 久久久精品综合| 国产传媒欧美日韩成人| 国产精品伦一区| 91福利视频久久久久| 亚洲午夜久久久久久久久电影网| 欧美丰满美乳xxx高潮www| 麻豆成人免费电影| 中文字幕精品一区| 欧美剧情电影在线观看完整版免费励志电影| 欧美一区二区美女| 不卡一区中文字幕| 国产视频视频一区| 成人av网址在线观看| 亚洲免费观看高清完整版在线| 欧美日韩在线直播| 激情六月婷婷久久| 亚洲精品国产品国语在线app| 欧美精品乱码久久久久久| 国内不卡的二区三区中文字幕 | 奇米影视7777精品一区二区| 日韩三级伦理片妻子的秘密按摩| 国产69精品久久久久毛片| 一区二区国产视频| 久久日韩粉嫩一区二区三区| 91精品办公室少妇高潮对白| 精品一区二区在线视频| 亚洲日本丝袜连裤袜办公室| 午夜a成v人精品| 午夜精品久久久久久久久 | 欧美精品一区二区三区高清aⅴ| 精品成人一区二区| 麻豆成人av在线| 亚洲精品成人在线| 久久久三级国产网站| 欧美午夜不卡视频| 国产**成人网毛片九色| 爽好多水快深点欧美视频| 欧美经典一区二区| 日韩欧美精品在线| 在线免费观看不卡av| 国产精品亚洲第一| 视频一区二区中文字幕| 亚洲欧美在线视频| 欧美精品一区二区久久婷婷 | 久久99精品久久只有精品| 国产偷v国产偷v亚洲高清| 国产在线不卡一区| 中文字幕亚洲视频| 欧美成人精品1314www| 色综合久久久久久久久久久| 国产综合色在线| 亚洲不卡av一区二区三区| 国产肉丝袜一区二区| 欧美一区二区成人6969| 欧美日韩中字一区| 91日韩在线专区| av中文字幕一区| 成人网页在线观看| 国产精品456| 韩国精品一区二区| 免费日韩伦理电影| 日韩黄色一级片| 日韩二区在线观看| 日韩中文字幕1| 视频一区欧美精品| 日产精品久久久久久久性色| 午夜视频在线观看一区二区 | 国产精品国模大尺度视频| 久久先锋影音av| 精品国产三级a在线观看| 日韩美女一区二区三区四区| 欧美一区二区三区成人| 成人h精品动漫一区二区三区| 国产在线国偷精品产拍免费yy| 99久久精品久久久久久清纯| 国产成人午夜精品5599| 福利电影一区二区三区| 欧美日本在线看| 欧美一区二区播放| 日韩视频免费直播| 欧美成人一区二区三区在线观看| 日韩一区二区三区免费看| 日韩欧美成人一区二区| 精品福利二区三区| 中国av一区二区三区| 国产精品麻豆久久久| 亚洲欧美国产三级| 亚洲电影第三页| 久久激五月天综合精品| 国产尤物一区二区在线 | 国产美女视频一区| 波多野结衣中文字幕一区| 色综合天天综合色综合av| 在线亚洲一区二区| 91精品国产欧美日韩| 久久新电视剧免费观看| 国产精品国产自产拍高清av王其| 亚洲精品国产a久久久久久| 亚洲成年人影院| 国内精品久久久久影院一蜜桃| 亚洲乱码中文字幕综合| 555夜色666亚洲国产免| 一区二区三区高清在线| 精品粉嫩超白一线天av| 国产精品亲子伦对白| 亚洲一区二区三区在线看| 日韩精品国产精品| 国产一区二区三区免费看| 99视频热这里只有精品免费| 欧美日韩一区二区不卡| 久久久久久一二三区| 亚洲人快播电影网| 狂野欧美性猛交blacked| 成人av资源在线| 欧美日韩一区三区四区| 26uuu亚洲婷婷狠狠天堂| 亚洲精品国久久99热| 久久99九九99精品| 欧美影视一区在线| 国产亚洲综合av| 午夜精品久久久久久久久| 成人性视频免费网站| 欧美精品123区| 日韩美女视频一区| 国产一区二区三区不卡在线观看| 欧美在线免费播放| 亚洲国产高清不卡| 美国毛片一区二区| 欧美三级电影网站| 自拍偷拍亚洲综合| 丁香五精品蜜臀久久久久99网站| 91精品视频网| 一区二区三区色| gogogo免费视频观看亚洲一| 精品国产亚洲在线| 日本一不卡视频| 欧美色图第一页| 亚洲免费观看高清完整版在线 | 一区二区高清免费观看影视大全| 狠狠色丁香婷婷综合| 欧美老年两性高潮| 亚洲精品视频免费看| 成人黄页在线观看| 久久免费视频一区| 久久se这里有精品| 欧美一区二区在线免费播放| 亚洲在线视频一区| 在线观看成人小视频| 樱桃视频在线观看一区| 成人的网站免费观看| 中文在线一区二区| 豆国产96在线|亚洲| 国产农村妇女精品| 丁香婷婷综合五月| 国产精品国产三级国产| a亚洲天堂av| 亚洲私人黄色宅男| 色婷婷狠狠综合| 亚洲综合视频在线| 欧美一a一片一级一片| 亚洲一区二区三区四区的| 色域天天综合网| 亚洲一区二区三区美女| 欧美日韩精品欧美日韩精品一综合| 中文字幕在线不卡一区二区三区| 成人精品小蝌蚪| 国产精品久久久久三级| 99精品国产一区二区三区不卡| 亚洲丝袜制服诱惑| 欧美天天综合网| 美女一区二区三区在线观看| 久久综合网色—综合色88| 国产精品原创巨作av| 欧美激情一区二区三区四区 | 国内不卡的二区三区中文字幕| 久久综合色婷婷| www.亚洲免费av| 亚洲一区在线看| 欧美日韩免费在线视频| 欧美日韩一级二级| 日韩欧美国产综合在线一区二区三区| 不卡的av在线| 99精品视频免费在线观看| 久久精品国内一区二区三区| 国产成人精品亚洲777人妖| 一本大道综合伊人精品热热| 亚洲精品日韩综合观看成人91| 欧美视频你懂的| 理论片日本一区| 中文字幕av资源一区| 91蜜桃在线免费视频| 亚洲电影一区二区| 日韩欧美在线综合网| 粉嫩aⅴ一区二区三区四区 | 99久久久免费精品国产一区二区| 亚洲免费毛片网站| 欧美videos中文字幕| 成人h动漫精品一区二|