lc-3 isa multiplication example


Advertisements
  • Sentinal controlled loop in LC-3

    I am having trouble writing a sentinel controlled loop in LC-3 assembly language. I know that you must store the sentinel somewhere in memory and that when the sentinel is detected, then the loop is done. However, how do you actually write this in LC-3 code. Lets say I have the following example whe ...

  • LC-3 Maximum & Minimum

    I am trying to write a code in LC-3 for finding the minimum and maximum values entered. So far I have completed what is below but am missing some major parts and I can't figure out what to do. ---- the lines like this is where I know something is needed. Is there ANYONE CAN HELP ME?????? please plea ...

  • Ubuntu LC-3 simulator install

    I was having a problem installing a LC-3 simulator for Hardy. I tried Simplc and that installed correctly but, the UI bash command was not recognized. The terminal version ran fine. Next I tried to run LC3Tools but, I couldn't get the configure file to even run. I know there is probably a more elega ...

  • LC-3 Palindrome Help

    Hi, i need help with my code which i have been working on for a few days now! Using lc-3 assembly language i need to read in one string, check whether the string is a palindrome and display the result of the checking. I also need to echo each character typed in by the user and the input is ended wit ...

  • LC-3 string problem

    Hi...I'm having a little problem doing a program in the LC-3. I have to do a program in which I declare a string and then print it backwards. The other part of the program then wants me to count the number of times each letter repeats itself in the string.The print it backwards I already did it but ...

  • Ubuntu LC-3 Simulator problem.. Compiling issue?

    Hello, I am trying to install LC-3 on my laptop and I am running into some problems.http://users.ece.utexas.edu/~patt/06f.306/software.htmlI get to the part where I run /make to compile the simulator but i run into these errors.parker@parker-eee:~/lc3tools$ sudo make[sudo] password for parker:/usr/b ...

  • LC-3 programming

    I am taking an Information Systems Architecture class and the teacher has us writing a program in an LC-3 simulator that gets input from the keyboard until the user enters a asterisk, while each time they enter a capitol letter increment some sort of counter variable and then print it off once they ...

  • Ubuntu Teles.s0/16.3 ISA NIC

    My roommate wrecked her 3com PCI NIC by pulling the cords too hard 8-) So I tried to put a a teles.s0/16.3 networking card in I once bought in a 2nd hand shop. Actually I dunno if it still is working, but when i plugged it into her dapper drake, it remained silent. I did find it in http://www.source ...

  • Normalization 1,2,3,4 With Example ?

    Can anyone Explain me the Normalization concept with example ? ...

  • Complete EJB 3.0 MDB Example

    Anyone know where I can find a complete working sample of an EJB 3.0 MDB using the EJB 3 Feature Pack on WebSphere 6.1 (including the IBM specific binding file)? ...

  • [lc-3] assembly language program help, please

    HelloI have to write a program that will input a list of positive 2-digit integrs and will compute the sum of all the numbers that are multiples of three and print out the sum. The numbers are to be input from the keyboard after a prompt is written on the monitor. The value zero will act as a sentin ...

  • Encryption/Decryption in LC-3, need some help

    i have a project where i am suppose to encrypt or decrypt a message typed in by the user using the ceaser encryption algorithm and printing it back, i need some help in as to how to write the encryption alg, (ill figure the dec out from there), heres the code im still fixing parts of it so, thanks.o ...

  • LC-3: I need to power up my ADD command!

    everybody. I'm working on a project in which I need to at many points (279, to be precise) throughout the program set a registry to a certain value.Here's how I've been doing it;and R0, R0, #0 ; Set R0 to decimal zero.add R0, R0, #10 ; Set R0 to decimal ten.But, now I need to set my registries to ve ...

  • LC-3 Help

    I have a four part homework assignment for class and I dont know where to begin. I believe if I can get help with this first part then i can disasemble the input code for the output code i will post the question now.Input (Trap x26): A Trap routine (invoked as TRAP x26) that reads a 4-digit hex from ...

  • LC-3 simulator installation on Xubuntu/eeePC version

    I'm a computer engineering student and would like to be able to use the simulator on my eeePC. Everything seems fine until I get to the make command. Here is the output after I type make.xtrmi@xtrmi-laptop:~$ sudo suroot@xtrmi-laptop:/home/xtrmi# cd /usr/lc3toolsroot@xtrmi-laptop:/usr/lc3tools# make ...

  • jQuery bug in 1.4.3+ with firefox when try to get position values?

    to everyone! link to the code: http://jsfiddle.net/SpeedLogic/MrWzc/When display set to "none", with jquery 1.4.3+ we get a value of position (left in exampe) =0pxWith jquery 1.4.2 we get 30px (that's is correct)That problem exists only with firefox, and only when display set to "none". If we set di ...

  • Formatting auto-computed onChange field to 3 decimals

    I have some fields on my form that are auto-populating with a difference from 2 input fields using onChange, easy stuff. The correct value is stored in the DB, to 3 decimal places (correct, since data type is a float with 3 decimals). The challenge I am having is to get the number that is auto-displ ...

  • MySQL prepared_statement.cpp example crashes

    Hi. I'm running MySQL 5.1 GA Community Server. I've downloaded the source code for C++ connector (v1.05) and successfully compiled it under VS 2008. Now, when I run prepared_statement.cpp example that was included with the connector's sources it simply crashes. I've tried downloading pre-compiled co ...

  • Need help in LC# code

    how do i read an input in LC-3 where it checks for yes or no as an answer to a prompt and returns 1 if yes and no if 0. ...

  • Writing a prolog predicate for diff/3

    I need to write a prolog predicate for diff/3 without using the built-in predicate subtract/3. The diff/3 predicate for example gives as follows: ?-diff([1,3,3,4],[4,5,8],X)X=[1,3] The diff(List1,List2,X) predicate takes List 1 and List 2 and unifies a new list X with all elements in List1 that do n ...

  • Re-invent Launches ASP.NET 3.5 Hosting

    Re-invent Launches ASP.NET 3.5 Hosting11/26/2007 - Re-invent announced today that ASP.NET 3.5 is now included with all web hosting plans at no additional cost. Re-invent is proud to be one of the first hosts to deploy the latest, released and some say most evolutionary, version of Microsoft’s .NET ...

  • DOORS 9.3 diff/RTF problem (with DXL library script) ?

    I tested for 9.3 whether RTF/diff based baseline comparisons work by running the DXL library script "Example to create layout DXL column that shows changes to Object Text"Under 9.3 I get the following error in 9.3 (but not in 9.2 which is ok). -R-E- DXL: <C:\Program Files\IBM\Rational\DOORS\9.3\/ ...

  • Oracle EX 3-39: Retrieve Images Similar to a Comparision Image

    Hei!Oracle interMedia User's Guide and ReferenceChapter 3: interMedia ExamplesExample 3-39 Retrieve Images Similar to a Comparision ImageWhen I execute this example, I get the following errormessage (in norwegian...):FEIL på linje 10:ORA-06550: linje 10, kolonne 11:PL/SQL: ORA-00904: ugyldig kolo ...

  • Oracle How to get TOP 5 results in version 7.3.4?

    I have try to use subquery in a query to get the top 5 result in Oracle version 7.3.4, it seems like not working. Can you please tell me how to get the TOP 5 results with Oracle 7.3.4??For example,REJECT CATEGORY QUANTITYAA 100BB 5CC 20DD 73EE 88FF 76GG 43HH 99So i want to get the result as AA, HH, ...

  • Purecov crash with gcc-3.3.6

    I have localized the two issues in two separate small applications. I think in both cases the problem is a construction of static variables with function calls (using return value of function, or by object explicitly written constructor). The problem is faced only when we have two object files compi ...

  • date() + 3 timezones (pacific to eastern)

    Quick question... if a server is in California and outputs correct time for Pacific Timeszone, but I'm sending to a user on the east coast... how can I use the date() function and then display +3 hours ahead?Example code thus far:$tgl = date("F d, Y - h:i A"); ...

  • joining 3 tables

    i was wonder if its possible to join 3 tables, so i could see the result from the 3 tables.for examplelets say that i have INVOICE(invoice_id, client_id,item_id)CLIENTS(id, client_name)ITEM(item_id, item_name)i want 1 table that shows: invoice_id, client_name,item_nameis this possible?10x! ...

  • ListView with 3 colums

    I would like to have a very very simple sourcecode for a report view, so I can create a box with 3 columns, for example:1 for name1 for address1 for telephonenumberCan somebody help me, so that I have a version that I can compile and link in Microsft Visual C++ Studio version 4.0 ??Kind regards,Davi ...

  • Creating an Oracle Text index on multiple columns from 3 different tables

    I need to create an index on 3 tables:Table Acol1col2col3Table Bcol1col2col3TABLE Ccol1col2This index should get the values if any matching word is found in either of the 3 tables.For exampleIf I do a search for col1 = 'ALEX' the query should look for the records from all the 3 tables which have any ...

  • Ubuntu Doesn't recognize USB 3.0 on NEC Controller

    I've installed Kubuntu 10.10 and connected a USB 3.0 Western Digital Device.Unfortunately the speed suxx ... under Windows it has awesome speed.Not shure if I've done anything wrong, cause I'm new to Linux.here is my lsusb output:Bus 008 Device 002: ID 1058:1130 Western Digital Technologies, Inc. Bu ...

  • Ubuntu Jaunty with 3 monitors setup

    I am having difficulties setting up 3 monitors with GeForce 9400 GT and GeForce 7600 GT. All 3 monitors are identical. Problem I run into is when I enable xinerama on nvidia-settings and restart x server. My monitors start flickering and x server crashes up to 6 times until I get a error message on ...

  • Ubuntu 10.04, USB 3.0 port Fresco FL1000G doesn't work

    all, i have a mainboard asrock 880gmh/usb 3.0 with ubuntu 10.04 but the usb 3.0 port doesnt' work.MY PC:Distributition: *ubuntuversion: 10.04Desktop environment: GNOMEInfo: CPU: Amd Athlon II X4 645 3.10 GHZ Socket AM3RAM: 4 Gbyte DDR3 1600 Mhz HD: 2 Western Digital Sata 500GB 32MB WD5000AADSVideo C ...

  • Convert to or redirect to shorter URL using Oracle XE and APEX 3.01

    Is there a way I can a short URL to the longer APEX URLs. I am using Oracle XE and Apex 3.01.For example, currently I have to give end users the following URL to access the ApEx application:http://<ipaddress>:8080/apex/f?p=103Is there a way I can have Oracle XE forward some address such as, fo ...

  • Ubuntu wanted: a work around for permanent remote desktop access to a server with 3-NICs

    kindly, I have a question and I seek some advise on how best to go about it.I have a server with 3-NICs, each having static IPs. Only 1-of the three has a default GW address which allows me to access the server over the internet. The other two are just for local uses.I want to access this server rem ...

  • How to compare if "1.20.0" is greater then "1.3.10"? [CS/C# 2003]

    I have 2 strings (sOldVersion & sNewVersion) that have the form xxx.xxx.xxx (3 sections) ... for example:1.2.31.10.332.1.157.80.1These correspond to VERSIONS of one of our components (and they are retireved a strings in-code).My problem is I need to determine if "sNewVersion" is greate ...

  • Ubuntu Intrepid/8.10/Gnome: Broadcom 4306 rev 3 [hp zv5240us]

    guys, I've been trying to get my wireless card to work on Hardy for about 2 weeks now. I finally gave up and upgraded to Intrepid hoping for better results. I've reformatted and reinstalled Ubuntu 3 times already since yesterday and tried several different methods/HowTos (I got a thing for clean ins ...

  • Ubuntu Do you think this is possible? 3 different distros on one DVD?

    So i was thinking i have quite a few CDs lying around different distros of linux, whatever.Now i am wondering if its possible to perhaps make a DVD which say would hold 3 Distros for example:Ubuntu, knoppix, backtrack2(slax)So that when i boot up the DVD it gives me a menu to choose which one i want ...

  • Ubuntu Kile 1.9.3

    I have kile 1.9.1 installed (from edgy universe). Is there a way to upgrade to 1.9.3 easily? For example adding a test repo?I'm not sure how this works or where to look. ...

  • Adding two mysql data to find top 3?

    What I'm trying to do is echo the top 3 mysql entries based on adding two values (in different tables). I just have no idea how to use arrays with mysql queries.i.e. grab data from 3 separate tables, add them together for each specific entry and then workout the top 3Just an example of how to do it ...

  • /[^0-9]{,3}/i == ???

    and sorry for simple question!I been looking on the php.net and manuals and I can not find details on this kind of punctuations: /[^0-9]{,3}/IFor example if I am using it here: preg_replace("/[^0-9]{,3}/i","",$keyword_arr);Can you give me a link on the resource where I’ll be abl ...

  • 1 query 3 counts

    I was wondering if it is possible to write a query that gets the result of 3 counts?For example I have a table called "boxes" that has the following:- id- name- colornow I want to write a query that gets the count of boxes but filter them based on color so if we have 30 red and 20 blue and ...

  • [C] Calculator help.

    //Calculator written in C//Coded by dBx @ h4ckinab0x#include <stdio.h>#include <conio.h>int main(){printf("On Your Marks. Get Set. Calculate!\n\n");printf("Press [1] for Addition\n");printf("Press [2] for Subtraction\n");printf("Press [3] for Multiplica ...

  • Printing Uppercase Characters

    Hey, I'm new here and I need a bit of help with the LC-3 Assembly language. Basically I need to write a program which takes a string and only displays the uppercase characters in it. So for example, I give it the string "This is a Sample String", it prints out "TSS". I've been tr ...

  • 8.1 ubuntu does not detected my Conexant modem (HSF modem)

    I would like to have this internal modem installed to prepare for some no wifi, no DSL network but only dial up connection situation.I post the log of the scan modem tools below. My modem is HSF modem. I downloaded the driver and install successfull. I used GNomePPP to set up the connection but it s ...

  • Help! Help! Help!

    Can somebody provide me the solution's for below 3 question:1. Construct a program that is capable of printing the multiplication table for twovariables. For example if the user enters x as 5, and y as 6, the multiplication tablethat will be printed out is as follows:1*6=62*6=123*6=184*6=245*6=30Sho ...

  • Ubuntu Motherboard Config

    Still need to properly configure my motherboard I believe, specially my graphic card driver because if I try to play quadrapassel it actually looks awfull. If I open tibia which is a really basic graphics game; It looks awfuller than awfull. So I believe it's not wine's graphic drivers (If ever exis ...

  • Ubuntu Missing X-Spam headers - my last try before I giving up

    I already presented my problem in the Server Platforms subforum, but nobody was able to solve this.So, this is my last try before I giving up and start looking for something else.I have an Intrepid server with working virtual mail accounts. Clamav and Spamassassin are working, everything is just fin ...

  • Ubuntu Amavis - Sort Quarantined Mail By Domain

    Greetings,I have been looking on many forums for a way to configure Amavis to forward a message tagged as spam to a non local mail box for that domain. Since we filter multiple domains using the transport maps I need it to send spam mail accordingly to that domain and not use the catch all local acc ...

  • My experiences on Ubuntu 10.04 The Lucid Lynx

    I'd like to share my experiences on installing the newest version of Ubuntu at the time of writing: ver. 10.04 "The Lucid Lynx". As you will know there are some teething probs. like there is with every thing that is new. (topic (http://ubuntuforums.org/showthread.php?t=1469475)).Old Nvidia ...

  • Ubuntu My new AMD Athlon II X4 640 inexplicably overheats

    I have a Athlon II X4 640 CPU with a ASUS M4A785TD-M EVO motherboard and a good quality 450W PSU. I use the included boxed CPU fan, a 120 mm case fan and I do not overclock. I have built many computers the last 15 years and I know how to attach a heat sink, etc.For some reason my computer shuts down ...