首页 \ 问答 \ 在这种情况下,lw和bne是什么意思?(What does lw and bne in this situation mean?)

在这种情况下,lw和bne是什么意思?(What does lw and bne in this situation mean?)

我对编程很陌生,我想知道lw(两次)和bne在这个问题上究竟做了什么? 我很抱歉这个问题有任何错误,因为我不得不把它翻译成英文。

这里开始提问:

部分数据存储器包含以下值:

地址值

100-1

104-2

108-4

112-8

116-16

给定下面的代码,执行此代码后寄存器r1的值是多少?

addi    r2,r0,104
lw  r1,-4(r2)
addi    r3,r0,116
label:  addi    r2,r2,4
lw  r4,-4(r2)
add r4,r4,r4
add r1,r4,r1
bne r2,r3,label

I'm quite new to programming and I was wondering what lw (both times) and bne are exactly doing in this question? I'm sorry for any mistakes in the question because I had to translate it to english.

Here starts the question:

Part of the data memory contains the following values:

address-value

100-1

104-2

108-4

112-8

116-16

Given the code below, what will be the value of register r1 after executing this code?

addi    r2,r0,104
lw  r1,-4(r2)
addi    r3,r0,116
label:  addi    r2,r2,4
lw  r4,-4(r2)
add r4,r4,r4
add r1,r4,r1
bne r2,r3,label

原文:https://stackoverflow.com/questions/33334657
更新时间:2023-11-28 16:11

最满意答案

访问密钥和密钥凭证是AWS API访问所必需的,并且被许多工具使用。 使用Web管理控制台,您可以使用右上角名称下的“安全凭据”屏幕查找并创建这些凭据。

但由于您的root帐户不受限制,因此建议您在使用第三方软件时创建具有受限权限和/或不同凭据的IAM用户。 您可以在此处学习如何操作: http//docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html


Access Key and Secret Key credentials are required for AWS API access and are used by many tools. Using the web management console you can find and create these credentials using the "Security Credentials" screen under your name on the top right.

But as your root account can not be restricted, it is very recommended that, when using third-party software, you create an IAM user with restricted privileges and/or different credentials. You can learn how to do that here: http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html

相关问答

更多
  • 所以,网络是我建议回归基础: 创建一个允许端口80和8080从0.0.0.0/0进入的安全组 从亚马逊Ubuntu AMI股票,公共IP以及上述安全组推出新的EC2实例 在实例上安装node.js. 在实例上保存下面的基本节点服务器代码(helloworld.js) 通过节点helloworld.js运行节点服务器代码 通过http:// hostname:8080测试它在端口8080上的工作原理 通过sudo iptables重定向端口80到8080 -t nat -A PREROUTING -p tcp ...
  • 使用puttygen是这样做的一种方式,但我相信使用linux框中的ssh-keygen生成私钥/公钥对会更容易。 从linux框中作为'root': $ adduser myuser $ su myuser - $ ssh-keygen -t rsa 您的私钥/公钥对将是/home/myuser/.ssh/id_rsa(私有)和/home/myuser/.ssh/id_rsa.pub(公共) 现在只需将id_rsa.pub的内容粘贴到运行sftp服务器的机器中的/home/myuser/.ssh/aut ...
  • 当您在AWS中部署EC2实例时,系统会要求您选择现有密钥对或创建新密钥对。 如果您选择创建新的,AWS将为您提供密钥对。 在下载新的密钥对后,您需要更改密钥权限。 如果你部署一个Ubuntu实例,用户通常是ubuntu 。 ssh -i key.pem ubuntu@yourinstanceIP或者您可以选择实例,并且您可以点击Connect按钮。 when you deploy an EC2 instance in AWS, you'll be asked to select existing key-p ...
  • 临时存储是一种特殊类型的存储,默认情况下不活动(在我的实例上)。 ephemeral storage is a special kind of storage that is not active by default (on my instances).
  • Deb不是命令。 您需要编辑/etc/apt/sources.list文件并添加以下行 deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen 到文件的末尾。 然后,更新系统,然后安装MongoDB。 假设mongodb是你需要的包,然后运行这些命令: sudo apt-get update sudo apt-get install mongodb Deb is not a command. You need to e ...
  • 当你实例化你的EC2实例时,你需要选择一个AMI。 AMI是亚马逊机器图像。 这基本上描述了什么操作系统(CentOS,Ubuntu,RedHat等)将安装在您的EC2实例上。 您很可能选择了安装亚马逊自己的CentOS风格的Amazon Linux AMI。 实例启动后,您将无法在其上安装不同的操作系统。 您将不得不终止现有实例,并使用所需的AMI启动新的EC2实例。 话虽如此,你也可以使用诸如Docker https://www.docker.com/的工具。 这可以让您旋转码头集装箱。 每个码头集装箱 ...
  • 您需要添加awstools存储库并更新apt。 sudo apt-add-repository ppa:awstools-dev/awstools sudo apt-get update sudo apt-get install ec2-api-tools 另一种选择是从亚马逊网站下载ec2-api-tools并为您的系统配置它们。 对于路径配置,请参阅此链接 。 问候, Sanket Dangi You need to add the awstools repository and update apt. ...
  • 我通过Ubuntu上的Remmina成功地与AWS中的Windows服务器连接。 我的配置如下, 服务器:公共IP 用户名:Administrator 密码:****** 域名:公共DNS 我认为技巧是服务器和域。 插入您可以从AWS Instances页面获取的公共IP和公有DNS。 干杯! I successfully connected with Windows server in AWS through Remmina on Ubuntu. My configuration were as belo ...
  • 访问密钥和密钥凭证是AWS API访问所必需的,并且被许多工具使用。 使用Web管理控制台,您可以使用右上角名称下的“安全凭据”屏幕查找并创建这些凭据。 但由于您的root帐户不受限制,因此建议您在使用第三方软件时创建具有受限权限和/或不同凭据的IAM用户。 您可以在此处学习如何操作: http : //docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html Access Key and Secret Key credentials ...
  • Robomongo(至少0.8.4 )目前不支持Mongo 3.0。 对于PHP,只需通过pecl更新mongo.so模块,因为只有1.6版本完全支持Mongo 3.0。 https://github.com/paralect/robomongo/issues/766 The Robomongo (at least 0.8.4) does not support Mongo 3.0 at this time. For PHP, just update mongo.so module via pecl, be ...

相关文章

更多

最新问答

更多
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的
  • SimplePie问题(SimplePie Problem)
  • 在不同的任务中,我们可以同时使用多少“上下文”?(How many 'context' we can use at a time simultaneously in different tasks?)
  • HTML / Javascript:从子目录启用文件夹访问(HTML/Javascript: Enabling folder access from a subdirectory)
  • 为什么我会收到链接错误?(Why do I get a linker error?)
  • 如何正确定义析构函数(How to properly define destructor)
  • 垂直切换菜单打开第3级父级。(Vertical toggle menu 3rd level parent stay opened. jQuery)
  • 类型不匹配 - JavaScript(Type mismatch - JavaScript)
  • 为什么当我将模型传递给我的.Net MVC 4控制器操作时,它坚持在部分更新中使用它?(Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?)
  • 在使用熊猫和statsmodels时拉取变量名称(Pulling variable names when using pandas and statsmodels)
  • 如何开启mysql计划事件
  • 检查数组的总和是否大于最大数,反之亦然javascript(checking if sum of array is greater than max number and vice versa javascript)
  • 使用OpenGL ES绘制轮廓(Drawing Outline with OpenGL ES)
  • java日历格式(java Calendar format)
  • Python PANDAS:将pandas / numpy转换为dask数据框/数组(Python PANDAS: Converting from pandas/numpy to dask dataframe/array)
  • 如何搜索附加在elasticsearch索引中的文档的内容(How to search a content of a document attached in elasticsearch index)
  • LinQ to Entities:做相反的查询(LinQ to Entities: Doing the opposite query)
  • 从ExtJs 4.1商店中删除记录时会触发哪些事件(Which events get fired when a record is removed from ExtJs 4.1 store)
  • 运行javascript后如何截取网页截图[关闭](How to take screenshot of a webpage after running javascript [closed])
  • 如何使用GlassFish打印完整的堆栈跟踪?(How can I print the full stack trace with GlassFish?)
  • 如何获取某个exe应用程序的出站HTTP请求?(how to get the outbound HTTP request of a certain exe application?)
  • 嗨,Android重叠背景片段和膨胀异常(Hi, Android overlapping background fragment and inflate exception)
  • Assimp详细说明typedef(Assimp elaborated type refers to typedef)
  • 初始化继承类中不同对象的列表(initialize list of different objects in inherited class)
  • 使用jquery ajax在gridview行中保存星级评分(Save star rating in a gridview row using jquery ajax)
  • Geoxml3 groundOverlay zIndex(Geoxml3 groundOverlay zIndex)