3,896 Topics

Member Avatar for
Member Avatar for goha1414

Write a program in object code that will convert a 3-bit binary number to a decimal number,For example, if input is 101, output should be 5; if input is 011, output should be 3. that is what I have to do,this is what I have so far but its not …

Member Avatar for saifali110
0
1K
Member Avatar for sahar.97

if there is instruction in $t0 how can I extract rd by shifting ??

0
68
Member Avatar for shancs007

hello, guys i need a help i am trying tp print triangle but i am unable to print it rightly ..i am bad in english so plz help me i want to show triangle like this * ** *** **** ***** ..................... this is my code so far ....it display …

0
96
Member Avatar for emmanuel_3

With the use of Qtspim simulator, write a MIPS assembly language program which outputs the name of the CICTE lecturer of BIT & BCS if a course code is inputted through the console and vice versa.

Member Avatar for Begginnerdev
0
78
Member Avatar for tony75

Hi When I ran my assembly code in my Visual studio 2012 I got this error Error2 error MSB3721: The command "ml.exe /c /nologo /Sg /WX /Zi /Fo"Debug\Indexedaddressing.obj" /Fl"Proj.lst" /I "c:\Irvine" /W3 /errorReport:prompt /Ta..\ch03\Indexed_addressing.asm" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\masm.targets 49 5 Proj Anyone know how can I fix …

0
114
Member Avatar for tony75

Hi I need create a program and add two variable and print out of the result of the function: WriteDec and place the result in eax before calling WriteDec. I wonder if I'm doing right? TITLE Add ; This program adds 32-bit unsigned INCLUDE Irvine32.inc .data val1 DWORD 10000h val2 …

Member Avatar for tony75
0
165
Member Avatar for tony75

Hi I try run this program(TestLib1.asm) [Click Here](https://github.com/mysteriouspants/SlopBukkit/blob/master/CS118/examples/ch05/TestLib1.asm) in my Visual Studio 2012 pro but I got errors I think the erros not in code I think in my Visual Studio 2012 configuration! Anyone know how can I fix it Error3 error LNK2005: _main@0 already defined in proj1.obj Error4 error …

Member Avatar for tony75
0
980
Member Avatar for Schol-R-LEA

One of the more common functions in any language is conversion of an integer to a string. This implementation, which demonstrates not only the common function activation record format but also a simple recursive function, was written in response to a recent question in which the OP posted an incomplete …

Member Avatar for Kiệt
0
7K
Member Avatar for gil.nickson

.model small .stack 0100h .data NEYM DW 08h, ?, 08h DUP("$") Q DB "Input First Number: $" Q1 DB 0AH,0DH, "Input Second Number: $" P DB 0AH,0DH, "Product: $" result db 13, 10, 'input number','$' ;Variables .code mov ax, @data mov ds, ax mov ah, 09h mov dx, offset Q …

Member Avatar for kashif afridi
0
166
Member Avatar for Subzero007

I am working on a website which is being developed in Visual Studio 2010 with ASP.NET 4. I am trying to programmatically extract an image from a word document. The approach I am using is this: 1. Convert WordApp.InlineShapes[1] (System._COM Object) to a byte[] 2. Convert byte[] to an System.Drawing.Image …

Member Avatar for tdrosiadis
0
2K
Member Avatar for Scarlet_1

I'm coding MIPS on MARS 4.0.1 and I'm trying to add letter '1' into an array but it doesn't work. Here is my code. Can somebody help me, please :( .data time: .space 12 .text main: la $a0, time li $t0, 49 sb $t0, 0($a0) addi $a0, $a0, 1 sb …

Member Avatar for Schol-R-LEA
0
111
Member Avatar for Aws_1

hi guyz, currently i am using cortex m4, and i have to make a string reverse function that print the strings back ward. this is what i have done so far....* #include "derivative.h" #include <stdint.h> #include "clock.h" #include <stdio.h> #include"freedom.h" #include "uart.h" void stringreverse(char array[3]); int main(void) { clock_initialise(); char …

Member Avatar for Aws_1
0
230
Member Avatar for michaelg87

I have this code snippet: for (i=0; i<=100; i++) { a[i] = b[i] + C ; } I am trying to figure out what this would look like in MIPS assembly with these rules: > Assume that a and b are arrays of words and the base address of a …

Member Avatar for Schol-R-LEA
0
272
Member Avatar for Louis4christ

Hi guys please I need your help. I created application in window application of C# with sql server database(.mdf) and when I installed it to the target computer, it is complaining of: unable to install or run the application. The application requires that assembly Microsoft.Synchronization Version 1.0.0.0 be installed in …

Member Avatar for javed.iqbal.3979
0
225
Member Avatar for Mike Askew

So I am currently working with custom silverlight extensions for a SAP application. The extension kicks off a an async WCF request and waits for the response. During which time I try the following: waitWindow = new RadWindow(); waitWindow.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen; waitWindow.BorderThickness = new Thickness(0); waitWindow.Content = new View.WaitWindowTest(); waitWindow.ShowDialog(); …

Member Avatar for Mike Askew
0
342
Member Avatar for thilinam

hi Everybody I have added a button control to my page. when I start debugging an error message says "CS1061: 'ASP.default_aspx' does not contain a definition for 'btnLogin_Click' and no extension method 'btnLogin_Click' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or …

Member Avatar for mtyide
0
1K
Member Avatar for Lorele

I just joined this site, after lurking from a distance. I came across DaniWeb originally because I was searching for information on PHP and CodeIgniter. I originally learned AppleSoft BASIC (on my Apple //c) and HTML (later: CSS), but had avoided Java, JavaScript, C-like languages, CGI/Perl, etc. I had been …

Member Avatar for Warrens80
0
177
Member Avatar for somjit{}

I work in it now, its kinda hard to work on , given its wanton use of GOTO , its difference from everything i know (save for assembly perhaps , but i only remember less than 10 commands there anyways :P ) , and the fact the its entire online …

0
118
Member Avatar for blindislands

I am trying to reverse a string input by the user and reverse the string whenever * is hit. For example, if i put abc and hit * i should get abc**cba back. There're 2 functions used it this recursive function which are echo (obtain the input key) and putchar …

Member Avatar for Schol-R-LEA
0
952
Member Avatar for Arphanet

hai.,. I'm struggling now to solve this problem., I could not able to save the string inputed by the user., the emulator responces error: [code=text]INT 21h, AH=09h - address: 07140 byte 24h not found after 2000 bytes. ; correct example of INT 21h/9h: mov dx, offset msg mov ah, 9 …

Member Avatar for Gustavo A.
0
7K
Member Avatar for Tcll

This language is built with python to give me a dynamic backend to make this possible. The language is based off ASM opcodes but generalizes them into basic coding practices. More info here: http://tcll5850.proboards.com/thread/271/umcsl note: WIP the language is meant to make it possible to convert between ASM and other …

0
278
Member Avatar for jjones0150

Create a Visual Basic application that meets the following requirements: No buttons can be used. All actions must be handled by menu commands. (Note: This is intended only to provide experience with the use of menus. Do NOT do this in the real world.) You will create separate functions to …

Member Avatar for ddanbe
-3
180
Member Avatar for jjones0150

I need a form that accepts scores from the user, displays the total, count, and average of the scores, and displays a dialog box that lists the scores. Operation The user enters a score. If the user clicks the Add button or presses the Enter key the application calculates and …

Member Avatar for jjones0150
0
810
Member Avatar for danielleCSU16

.code tetrabonacci PROC push ebp ;save previous pointer mov ebp,esp ;save current pointer sub esp, 4 ;make room for local variable ptr mov eax,[ebp+8] ; get n ;if ((n==1)|| (n==2) return 1 else do recursion cmp eax, 2 ;n>2? ja recursion ; yes: continue to recursion mov eax, 1 ; …

Member Avatar for Glen_1
0
598
Member Avatar for chris.vargas.773

so im tasked to write a program that converts decimals to binary numbers; the only problem is that im having trouble writeing this program. Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format. For example, here would be the …

0
537
Member Avatar for VIeditorlover

Hi everybody, I'd like to ask you if there are some ways how to protect .NET exe and dlls against decompilation. [B]I am not interested in any form of obfuscation[/B], only methods based on (or equivalent to) compiling traditional compilers to machine language. There doesn't matter if commercial or open …

Member Avatar for JOSheaIV
1
1K
Member Avatar for jack_7

hello to all I want convert this code to assembly for mac osx intel 64 : #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> //#define RCVBUFSIZE 4096 int main( int argc, char *argv[] ) { int sock, length; struct sockaddr_in server; char *command; // …

Member Avatar for sDJh
0
445
Member Avatar for supermastereu

Hi. I need help to write one program in Assembly Mips. << read the characters typed by the user and store these characters a string. This string is later converted to an integer. If the user tries introducing non-valid characters (that is, other than the numerals 0 to 9) the …

Member Avatar for sDJh
0
441
Member Avatar for munchlaxxx

I'm working on an assignment where I have to reverse an array (from bigEndian BYTE 12h,34h,56h,78h to littleEndian WORD ?) I have an idea of what I want to do, but **how exactly do I assign array elements to *littleEndian WORD ?* ?** I know it probably involves looping? Any …

Member Avatar for sDJh
0
188
Member Avatar for chris.vargas.773

Having trouble starting this program which states that i have to create a 4x4 table using int8 which a user in puts a number and that number appears as an x paatern on the table with the rest of the numbers that fill in postions be less than nputed number. …

0
103
Member Avatar for munchlaxxx

Hi, I was wondering if anyone could clarify what this question is asking for? *Write a program with a loop and indexed addressing that exchanges every pair of values in an array with an even number of elements. Therefore, item i will exchange with item i+1, and item i+2 will …

Member Avatar for munchlaxxx
0
930
Member Avatar for munchlaxxx

How can you view the values of the registers in Visual Studio? I think they should appear in the Output section at the bottom of the screen. I'm using Visual Studio 2013 for Desktop.

0
112
Member Avatar for danielleCSU16

Alright i have written my code to reverse a byte string character by character in-place using a loop. We have to utilize the SIZEOF and OFFSET operands and use indirect addressing, However my issue is that I am still getting the string displayed forward and not in reverse. I think …

Member Avatar for untio
0
2K
Member Avatar for andrew mendonca

For this programming exercise, you may use ONLY these instructions: and nor or ori sll srl xor Start a program with the instruction that puts a single one-bit into the low order bit of register eight ($8 or $t0): ori $t0, $0, 0x01 Now, by using only shift logical instructions …

0
220
Member Avatar for andrew mendonca

For this programming exercise, you may use ONLY these instructions: and nor or ori sll srl xor Run the programs by verifying the value of the PC is 0x00400000 (right-click the field and use Change Register Contents to set it) and then single stepping (pushing F10) and observing the results …

0
134
Member Avatar for nolski13

Hello all, I am relatively new to programming in general - the last formal object oriented programming class I took was my freshman year of college (my jargon may not be accurate). So please, bear with me. If this question should be asked in a different area (such as the …

Member Avatar for LesF
0
230
Member Avatar for gil.nickson

What is wrong in my code??? Please HELP. :( .model small .stack 10h .data prom db 0ah,0dh,"Enter the 1st no.:$" promp db 0ah, 0dh,"Enter the 2nd no.:$" result db "The answer is$" num db 2 dup(?),'$' stop_num db,10,13,'$' .code mov ax,@data mov ds,ax mov ah,9 lea dx,prom int 21h mov …

Member Avatar for Taywin
0
132
Member Avatar for damico.luca91

Hi all, I'm learning GAS assmbler, and I've written the following test program: .code32 .section .data values: .int 1,2,3,4,5,6,7,8,9 output: .asciz "current value %d" .section .text .globl _start _start: movl $10, %edi loop: movl values(,%edi,4),%eax pushl %eax pushl $output call printf addl $8, %esp dec %edi jnz loop pushl $0 …

Member Avatar for GunnerInc
0
214
Member Avatar for lalitha2294

Hi, I want to download TASM fro Windows 7 32 bit. Please help me to download and install it. Thankyou.

Member Avatar for tien.nguyen.3532507
0
1K
Member Avatar for boxes2
Member Avatar for iqra aslam
-2
3K
Member Avatar for krunal1986

Hello, I have created a crystal report in VS2012. it is working properly on local but when i host site on live server then it gives below error. Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. …

0
76
Member Avatar for maniagod

Can someone suggest a code that accepts (hh:mm:ss) and counts down until all variables reach 00

Member Avatar for Hiroshe
0
679
Member Avatar for george.iasthai

I want to change text and background color without clearing the screen. Ive used this code but it always clear the screen. mov ah, 2 ; use function 2 - go to x,y mov bh, 0 ; display page 0 mov dh, 0 ; y coordinate to move cursor to …

Member Avatar for Schol-R-LEA
0
9K
Member Avatar for dendenny01

Here is the simple program for addition when running in tasm it gives some garbage value and I cannot figure out what is the error hi Please any help will be apperetated Thank you .model small .data opr1 dw 1234h opr2 dw 0100h result dw 001 dup(?),'$' .code mov ax,@data …

Member Avatar for DeanMSands3
0
574
Member Avatar for yaya1234

We received a project to make calculator in assemly I want to check the result of the numbers actually in the range. that I don't have pverflow or undeflow. But it does not work .. Can you let me know where the problem so I could fix? here is my …

Member Avatar for yaya1234
0
147
Member Avatar for Jihadyildiz

i have a windows phone project and i am trying to post data to website and get the data i have working windows form project code but when i try to use that code on wp8 i get error says `Error 2 'System.Net.HttpWebRequest' does not contain a definition for 'GetResponse' …

Member Avatar for hericles
0
202
Member Avatar for mike_2000_17

Hi all, I was just playing around with some ideas about optimizing a core piece of my library: the run-time type identification system (RTTI). What does that have to do with compile-time string concatenation? Well, the whole point of the RTTI is to provide information on the type of objects, …

Member Avatar for mike_2000_17
6
13K
Member Avatar for boxes2
Member Avatar for Schol-R-LEA
0
135
Member Avatar for boxes2
Member Avatar for rubberman
0
98
Member Avatar for boxes2
Member Avatar for rubberman
0
79

The End.