3,896 Topics
![]() | |
Im trying to create a small program where it asks for a number (radius) and then calculates the area of a circle. BUT when I square the input and multiply it by pi, i get a whole number. I need it in decimal. Could someone explain? Thanks. [CODE]TITLE Area of … | |
Hi, I've just migrated an application to Visual Studio 2010 and upgraded a third party add-on called Visual WebGUI to .Net 4. I now have a problem with assembly references to the third party DLLs The latest version of the Visual.WebGui.Forms DLL for example is at 4.0..... . Our application … | |
Hello, in IDA i have: [CODE] mov ecx, offset dword_000001 mov eax, ecx mov ecx, [eax] [/CODE] why i can not change this to: [CODE] mov ecx, offset dword_000001 mov ecx, [ecx] [/CODE] ? thanks | |
I think my girlfriends netbook has become infected with a rootkit virus thingy. I've tried several things the latest of which was reinstalling Windows XP. Unfortunately search results in Google still redirect to random shopping websites. Below the various log files as requested. Any help will be appreciated! mbam log: … | |
Hi folks! :) I'm here with a problem of Assembly 8086 (x86) (NASM). I´m trying calculate the sum of all numbers, which are odd, lowers than X (X = number defined by user) Already solved the problem in C # and C + +, but i need the Assembly Code. … | |
can everyone tell how to write emu8086 to solve this question : - sum=1+2+3+...+2n-1 - p=1*2*3*...*10 | |
Hello Guys I want to make an assembly program that get 2 inputs and compare between them if equal or not and if not I want to say which number is the maximum and which one is the minimum I did the Equal part , I need help with the … | |
[CODE]; A NOR B = NOT(A AND B) ;NOT(A AND B) = NOT(A) or NOT(B) .ORIG x3000 LD R1,DATA1 ; load in data LD R2,DATA2 ; Load in data AND R1,R1,R2 ; AND THE TWO VALUES NOT R1,R1 ; NOT THEM HALT DATA1 .FILL #5 DATA2 .FILL #6 .END[/CODE] | |
Hi, We had to program a 8086 assembly program for an university project, for which I found a very good guide (Art of Assembly), which explains very well how to use the basic CPU & FPU instructions. I got very intrested in assembly language, and would like to learn how … | |
I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone … | |
hi, i've got error like this : CS0012: The type 'Microsoft.Office.Core.MsoTriState' is defined in an assembly that is not referenced. You must add a reference to assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. whats wrong?? | |
Ok, I hope I can explain this so that everybody understands. I have a database where a column has special characters in the fields. I need to remove these characters before printing them to a file. I have the following code: [CODE]public string RemoveSpecialChars(string[] args) { string[] chars = new … | |
I am wondering how to change the VGA resolution and the video memory pointer in real mode assembly (nasm). I have no idea how to do this, so can anyone help me? | |
I'm trying to make some code that directly interfaces with the VGA card(in real mode), I know the ports(0x3c6, 0x3c7, 0x3c8, 0x3c9) I need to use to output data on the screen. My code is this: [CODE] mov ax, 0 out 0x3c8, ax ;plot pixel at location 0 mov ax, … | |
Hello, i have a noob question. Could you please answer me, what do this means? [CODE]call dword ptr [ecx+5Ch][/CODE] i can not get, what does this +5Ch (its s backslash "\"), but what it means in this calling? Thanks! | |
I program using masm to make 32 bit programs. I need help converting some C code to assembly. Could someone help me? Thanks. | |
hello every body code below make directory in an address that is define in data part. ; create c:\emu8086\vdrive\C\test1 mov dx,ah mov ah, 39h int 21h but i want to get address from user. i can do this with macros . anyone know this with intrrupts? best Regard | |
Which of the following are true regarding multiple versions of an assembly? a. When multiple versions of an assembly are available on the search path (AKA private assemblies), the runtime will use the first matching assembly with a version number equal to or higher than the assembly version that was … | |
Which of the following are true about Extension methods? Ta. They must be declared static b. They can be declared either static or instance members c. They must be declared in the same assembly (but may be in different source files) d. Extension methods can be used to override existing … | |
Usually to print on screen a integer of 2 numbers i divides it for 10 and then use int 21h with mov ah,2 to print the 2 results. However with integers with more than 2 numbers it starts getting complicated and the method i use becomes really too long . … | |
Hello, I tried to convert below code, but I couldn't.. What is wrong? [code=c] void invert(unsigned char *image, int width, int height){ for(int i=0;i<width*height;i++) image[i]=255-image[i]; } [/code] [code=assembly] ---------------------ASM--------- invert PROC push ebp ; save ebp register mov ebp,esp ; get current stack pointer mov esi,[ebp+8] ; get first parameter … | |
I had tried to make a compare strings function in real mode assembly, but it didn't work, so I tried it another way and it did. It seems to me that both functions I wrote do the same thing yet one doesn't work. Can someone tell me why, the two … | |
Hey, i have a quick coding question. im programming in in ARM Assembler. my problem is that i need to find out the number of data values in a memory location, eg [CODE] AREA Test, DATA, READWRITE data_values DCD -16,100,-456,7,-123,-42,126789,2349,-34,-2344,45,-45,-3345 END [/CODE] so how do i find out that there … | |
WHY SOME COMMANDS DONT WORK IN CMD LIKE "@" my program always have an error whenever i have this command! | |
hi im new to assembly lang!im using cmd debug in doing program but some command didn't work!like @ and some other command can anyone help me! | |
Hello all, So I am NEW to all this, and I have a quick question with some code of mine. When I open this code in PC SPIM I get the following error: spim: (parser) syntax error on line 18 move $a0, $t4 #move the number to print into $a0 … | |
Hi all, how could you initialize, through a loop, a c array? For instance, say I have [CODE] #define SIZE 10 int test[SIZE]; for (unsigned int i = 0; i < SIZE; i++) { test[i] = 0; } [/CODE] How can I make use of some Assembly to loop through … | |
Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do … | |
I I'm trying to create an application in real mode that uses the flags to store the results of calculations and other stuff. I'm trying to do this to take up less memory. So can someone please give me some example code or tell me how to do this. I … | |
I can't get my pointers in assembly to work, I'm using nasm and trying to use pointers in real mode with 16-bit registers. Here is my code: [CODE] mov di, Pointer mov ah, 0x0e mov al, [di] int 0x10 Pointer: db "W" [/CODE] This code should print out the character … | |
Hi! I have created a listview in which data is binded from a sharepoint list. There is an asp image button inside the listview on clicking which a an image should be displayed. The code is as follows: ASPX file: [CODE]<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ … | |
Dear Experts. I have a DLL , written in VB.Net. This DLL has a below Function: [code] [COLOR="red"]Public Shared Function CreateApplication(ByVal aobj As Object) As Object[/COLOR] [/code] When i Try to call this function by exe application with below routin i get "Parameters count mismach" Error. [code] Public Function loadDllAndRunMethod(ByVal … | |
hi, i wrote an assembly code in my c code but i don't know how to use c declared var in my assembly,if someone could help me :) thx | |
Title tell me .model small .stack 100h .data msg1 db 0Dh,0Ah, "TYPE A DECIMAL NUMBER >> $" msg2 db 0Dh,0Ah,0Dh,0Ah, " In BINARY >> $" buffer db 7,?, 5 dup (0), 0, 0 binary dw ? illegal db 10,13,'not valid, TRY AGAIN: ','$' ctr DB ? PROMPT_2 DB 0DH,0AH,0Dh,0Ah,' In … | |
Hi! I have created a modal dialog using Jquery and I am opening an aspx page inside the modal dialog. The code is as follows: ASPX Page: [CODE]<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, … | |
Hi! I have created an asp.net page with codebehind in Sharepoint. The code is as follows: The ASPX page: [CODE]<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %> <%@ Import Namespace="Microsoft.SharePoint" %> … | |
I want to write a program changing the notation of all hexadecimal numbers found in an assembly source file from traditional (<decimal_digit><hex digits>h) to C-style (0x<hex_digits>). I dont understand how can i read the file and change the notation. I am new to assembly programming and any help would be … | |
Hmm, guess I am supposed to introduce myself? Name is Gunner, have been writing windows programs in assembly for about 10 years.. Figured I would find a new forum to share my knowledge :-) Been building computers and programming in general for over 25 years so maybe somewhere in my … | |
Hello, I have this code: [code] .data xd db "jjjj",0 .code ; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« LibMain proc instance:DWORD,reason:DWORD,unused:DWORD .if reason == DLL_PROCESS_ATTACH push dword ptr ds:[ xd] call Teste mov eax, TRUE ; return TRUE so DLL will start .elseif reason == DLL_PROCESS_DETACH .elseif reason == DLL_THREAD_ATTACH .elseif reason == DLL_THREAD_DETACH .endif … | |
An integer is loaded in from memory. ran through two loops to determine the tens place and the ones place. Integer is stored back to memory and displayed. Example #98 Tens place -->9 Ones place -->8 :) | |
hi all friend!! last week I downloaded one software name "winasm" . they said this program can write assembly but i don't know how to write in this program.Does everyone know ?? thank | |
Hi there Sorry wasn't to sure where this was supposed to go. I am interested in the lower level of computing and was wandering how to build a language, or program such as visual studio? I have gathered it goes from the higher language and gets compiled into assembly/machine code … | |
Hello I have to do a MIPS project that I have to divide a 64 bit int. How can I do this? Please Guide me. Thanks | |
Hi all, I use the code below, and it's my idea it will give me on my LCDisplay the letters "Camil" (and yes, that is my name) All the first subroutines i just copied form [url]http://home.iae.nl/users/pouweha/lcd/lcd2.shtml[/url] - it has to work. From label start i did make anything myself. I'm … | |
I want to code assembly,Code assembly is convert number to character for ASCII code. example. ======================================================= Input ASCII CODE (in hexadecimal) press Esc to end the program : 41 Out put character is : A ======================================================= | |
Hi. I'm hoping someone here is familiar with x86 optimization, because I'm stumped. I wrote two programs that find prime numbers in the same way, [URL="http://endlessbeta.org/code/prime.asm"]one in assembly[/URL] and [URL="http://endlessbeta.org/code/prime.c"]one in C[/URL]. It seems that no matter what I do to the assembly version, the C version is always faster … | |
hi, i'm trying to write a program that changes the 23h interrupt with my own handler which is to display "bonjour"32000 time and when ctrl break is pushed a msg"do you want to exit the program? y/n" is displayed.if the user select y the program will exit else the "bonjour" … | |
hi do everyone know which program i can write assembly ? (I'm using Window Premium 7 64 bit) thank for spending your time to answer this question | |
Hi! First of all I would like to apologize; I dont usually ask for favours but I have blocked with a Sparc exercise. [CODE]"Write a program in assembly language SPARC applying multiple string from the keyboard. The end of the sequence of strings is determined by a null string. The … | |
Hi this is the fact procedure: [CODE]fact: addi $sp, $sp, -8 sw $ra, 4($sp) sw $a0, 0($sp) slti $t0, $a0, 1 beq $t0, $zero, L1 addi $v0, $zero, 1 addi $sp, $sp, 8 jr $ra L1: addi $a0, $a0, -1 jal fact lw $a0, 0($sp) lw $ra, 4($sp) addi $sp, … |
The End.