back soft

متن مرتبط با «assembly x64 nasm» در سایت back soft نوشته شده است

Assembler x64 Nasm single string compare

  • Vote count: 0 I'm new in assembler and try to performer some simple task, like enter name and get 'Hey name' answer. Sofar I read input and assign it to my undeclared variable than put this variable into rdx register and show it on the display. The problem is that I have no idea how to put tekst2 variable to rdx not replacing tekst; section .text section .data tekst db "Hey ", 0ah global _start _start: ;read input mov rax,0 ;numer funkcji sys_read mov rdi,0 mov rsi,tekst2 mov rdx, 20 syscall ;move input to rbx for later compare mov rbx,tekst mov rbx,tekst2 ;print mov rax, 1 mov rdi, 1 mov rsi, rbx mov rdx, 20 syscall mov rax, 60 syscall section .bss tekst2: resw 1 asked 46 secs agoSpamua3 Let's block ads! بخوانید,assembly x64 nasm ...ادامه مطلب

  • NASM x86 Ubuntu broken simple code

  • Vote count: 0 i know the title i gave this question doesn't fit convention but i've only been writing NASM for my 32bit Ubuntu machine for a couple of hours. Below i have included the code that doesn't work, it is supposed to loop incrementing ecx and then checking if it is equal or more than 10, if it is the it should print out 10. I am completely new to actually writing assembly code and have only studied miniscule MASM32 and whats included in the GCSE computer science course. I am eager to lea and hoping that someone with some spare time is able to explain what im doing wrong constructively so that i may progress. Thank you for your time. tenloop.asm: section .text global _start ;proto main _start: ;start lbl mov ecx, 0 ;ecx = 0 jmp loop ;call loop loop: add ecx, 1 ;ecx++ cmp ecx, 10 jl loop ;loop if ecx, ...ادامه مطلب

  • Could not load file or assembly while trying to create custom configuration section in a web config

  • Vote count: 0 I am trying to create my own custom configuration section with following: Code in the web.config file: <configuration> <configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="entityFramework" type="System.Data.Entity.Inteal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <section name="customConfigurationSection" type="CustomConfigurationSectionRepro.ConfigHandlers.CustomConfigurationSection" allowLocation="true" allowDefinition="Everywhere" /> </configSections> <customConfigurationSection fileName="Configscustom,could not load file or assembly,could not load icloud preference pane,could not load shockwave flash,could not load nib in bundle,could not load type,could not load xpcom,could not load type from assembly,could not load type 'system servicemodel activation httpmodule',could not load solidworks dll,could not load network preference pane ...ادامه مطلب

  • Assembly x86/C -Recursive Binomial Coefficient Segfault

  • Vote count: 0 I've written some code (main in c, subprogram in assembly x86) to calculate the binomial coefficient recursively and print out all the binomial coefficients with n=10, restricted by m<=n. My problem is that I'm getting a segfault on compile. Segmentation fault (core dumped) Here's the main program: #include <stdio.h> unsigned int result,m,n,i; unsigned int binom(int,int); int main(){ n=10; for (i=0; i<n+1;i++){ printf("i=%d | %d n", i, binom(n,i) ); } retu; } And the recursive sub program: .text .globl binom binom: mov $0x00, %edx #for difference calculation cmp %edi, %esi #m=n? je equalorzero #jump to equalorzero for retuing of value 1 cmp $0x00, %esi #m=0? je equalorzero cmp $0x01, %esi #m=1? mov %esi,%edx sub %edi, %edx cmp $0x01, %edx # n-m = 1 ? je oneoronedifference jmp otherwise equalorzero: add $1, %eax #retu 1 ret oneoronedifference: add %edi, %eax #retu n ret otherwise: sub $1, %edi #binom(n-1,m) call binom sub $1, %esi #binom(n-1,m-1) call binom asked 36 secs agoEgyptian_Coder This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting., ...ادامه مطلب

  • tlbimp.exe generated assembly fails to be registered using regasm.exe

  • Vote count: 0 I have a native COM dll that I want to build a C# interop assembly for. I'm attempting to do this using tlbimp.exe to generate the c# assembly, and I then regasm.exe to register the assembly for transparent use via COM in another program. I'm delay signing since I'm still in a development environment and wish to do some debugging still. The TlbImp.exe command seems to work fine, the interop file is generated. c:>tlbimp MyNativeComDll.dll /out:MyInteropDll.dll /publickey:myPublicKey.snk /asmversion:1.6.0.0 /delaysign TlbImp : Type library imported to C:MyInteropDll.dll Microsoft .NET Framework Assembly Registration Utility version 4.6.1055.0 for Microsoft .NET Framework version 4.6.1055.0 Copyright (C) Microsoft Corporation. All rights reserved. Unfortunately, its the regasm call that results in an error that I have no idea how to fix. C:>regasm C:MyInteropDll.dll RegAsm : error RA0000 : Could not load file or assembly 'MyInteropDll.dll, Version=1.6.0.0, Culture=neutral, PublicKeyToken=****************' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) The system I am build this all on is a x64 windows machine running Windows 7sp1. The MyNativeComDll.dll is a x86 library. All this is being done in a vcxproj post build command, the project being the one that builds the MyNativeComDll.dll. I use MSBuild from the command line to build the solution. I have both Visual Studio 2010, and Visual Studio 2015 installed, and the build fails when running the regasm command whether or not I am using VS2010's Win64 or Regular Developers command prompt. Similarly it fails in much the same fashion when using the VS2015 x64 Native Tools command prompt, or the Developer Command Prompt for VS2015. The command I use to build the solution that contains the project causing the problem is: C:>msbuild MySolution.sln /p:Configuration=Release /v:n /t:Rebuild /p:Platform="Mixed Platforms" The solution contains, ...ادامه مطلب

  • Assembly correct usage of word/byte/word ptr

  • Vote count: 0 I'm writing a little machine code generator for assembly. I have a question regarding immediate to memory instructions: Let's take these 3 scenarios: "add [ebx+04], 0x1" "add [ebx+04], 0x4040" "add [ebx+04], 0x401000" What I do is going by the immediate constant, I check what is the smallest number of bytes it can fit in then I assume whether its byte ptr, word ptr, dword ptr First one can fit in 1 byte so I assume it to be: "add byte ptr [ebx+04], 0x1" Second can fit in 2 bytes so I assume it to be: "add word ptr [ebx+04], 0x4040" third fits in 4 bytes so I assume it to be: "add dword ptr [ebx+04], 0x401000" Is this correct? asked 54 secs agoBudskii Let's block ads! بخوانید, ...ادامه مطلب

  • A reference to 'YourProject' could not be added. An assembly must have a 'dll' or 'exe' extension in order to be referenced

  • Vote count: 0 When I attempt to add a reference to a class library type project within the same solution, I get a message box saying: A reference to 'YourProject' could not be added. An assembly must have a 'dll' or 'exe' extension in order to be referenced. I am using Visual Studio Community Edition 2015 on 64-bit Windows 7 Home Premium and all my projects, the one I am trying to set a reference to as well as the one I am trying to set a reference from target .NET Framework v4. asked 1 min agoWater Cooler v2 Let's block ads! بخوانید, ...ادامه مطلب

  • Unable to enable unpacking for maven assembly plugin

  • Vote count: 0 I'm using maven-assembly-plugin to assemble a module in a multi-module maven project. I get an error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (jar-with-dependencies) on project socialweb-importer: Failed to create assembly: Error adding file-set for 'com.almworks.sqlite4java:libsqlite4java-linux-i386:so:1.0.392' to archive: Error adding archived file-set. PlexusIoResourceCollection not found for: /home/user/.m2/repository/com/almworks/sqlite4java/libsqlite4java-linux-i386/1.0.392/libsqlite4java-linux-i386-1.0.392.so: No such archiver: 'so'. -> [Help 1] I added assembly.xml file to enable a custom assembly and disable the unpacking for the .so file but that didn't work either. My assembly file looks like this: <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> <id>jar-with-dependencies</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <outputDirectory>/</outputDirectory> <useProjectArtifact>true</useProjectArtifact> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> </assembly> And my POM file includes the configuration of plugin like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>jar-with-dependencies</id> <phase>pre, ...ادامه مطلب

  • Assembly Write a program that read number from the user and then print A2. Note that A2=A^2= A*A

  • Vote count: 0 .MODEL SMALL .STACK 100H .DATAMSG1 DB 0ah, 0dh, "Please enter the value of A $" MSGG DB 0ah, 0dh, "The result of A^2= $" A DB ? .CODE MAIN PROC ;can someone help me the mul result wont print in numbers. MOV AX, @DATAMOV DS, AX ;print message one mov ah, 9 lea dx, MSG1 int 21h ;take input from user mov ah, 1 mov A,al int 21h sub A,30h ;print message two mov ah, 9 lea dx, MSGG int 21h ;A*A mov al,A mul A mov bl,al add bl,30h mov ah,2 mov dl,bl int 21h mov ah, 4ch int 21h MAIN ENDP END MAIN asked 36 secs agohind akeel Let's block ads! بخوانید, ...ادامه مطلب

  • How to make a single-file executable python 2.7 x64 on windows?

  • Vote count: 0 after seeing this : Single-File Stand-alone Python 2.7.9 for Windows I want to make a similar thing for latest python 2.7.11 x64, but since py2exe doesn't support single file packaging in x64 mode. I used cx_freeze, and successfully generated a package, but cx_freeze has no single file option. so I tried IExpress, and 7-zip sfx module, but both of them can't run py.exe in the same console, and they can't pass parameters to the extracted exe file. what other options do I have? asked 51 secs agoShuman This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers., ...ادامه مطلب

  • ICC assembly line number

  • Vote count: 0 I am using the Intel Compiler (icc) on Windows. I let the compiler print the line information of the instructions. Normally the line number matches the source file I passed to the compiler. In some cases it adds instructions generated by some header files I included. But which file is it? mov rax, 0d4b249ad2594c37dH #45.20 which file is ment here? mulsd xmm0, xmm0 #7.3 matches the expected source file MSVC on the other hand print out the filename of the header where this instruction comes from. How can I get this information from ICC? # File d:...base.h # Line 48 $LN3: movsdx QWORD PTR [rsp+16], xmm1 asked 36 secs agoHelloWorld This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers., ...ادامه مطلب

  • optimizing pipeline execution for a set of assembly instructions

  • Vote count: 0 I have an instruction set that I am told to reorder the instructions to optimize the pipeline and draw the diagram of its execution. This is using a five-stage pipeline style (Fetch, Decode, Execute, Memory, Write Back). So the diagram would look something like this: 1 2 3 4 5 6 7 8 I0 F D E M W I1 F D E M W I2 F D E M W ... etc Below is an image of the instruction set. I drew in where I think some RAW dependencies are. We are using static branch prediction with a not-taken assumption. Since we are dealing with static branch, is it correct to move the Subtract R2, R2, #1 instruction right after the conditional? This way, it is in the branch delay slot and will always be executed no matter what. Is moving that Subtract instruction the only thing I can do? I can't really move or reorder the other instructions because of the data dependencies, can I? Any help would be appreciated. Thanks. asked 19 secs agoGenericUser01 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers., ...ادامه مطلب

  • Printing out decimal value in x8086 Assembly Langauge

  • Vote count: 0 I am currently working on a project that requires me to prompt a user for three inputs (length, width, & height) and then calculate the volume (lwh). I am having problems printing out the result after the calculations are complete. Is there a way to print out a decimal value? Thanks for your time .MODEL SMALL .STACK 100h .DATA l DB ? w DB ? h DB ? v DB ? M1 DB 10,13, "Please enter the length: $" M2 DB 10,13, "Please enter the width : $" M3 DB 10,13, "Please enter the height: $" M4 DB 10,13, "The volume is:$" .CODE Main PROC mov ax, @data ; getting data segment address mov ds, ax ; initializing the data segment mov dx, offset M1 ; prompting user for a value mov ah, 09h ; writing string to STDOUT int 21h ; BIOS routines mov ah, 01h ; reading in from STDIN, input stored in al int 21h mov bl, al sub ax,ax ; clearing ax register for the next input sub bl, 30h mov l, bl sub bx,bx mov dx, offset M2 mov ah, 09h int 21h mov ah, 01h int 21h mov bl, al sub ax,ax sub bl, 30h mov w, bl mov al, l mul bl mov v, al sub ax, ax sub bx,bx mov dx, offset M3 mov ah, 09h int 21h mov ah, 01h int 21h sub al, 30h mov h, al sub bx, bx mov bl, v mul bx mov v, al sub ax, ax sub bx,bx mov dx, offset M4 mov ah, 09h int 21h sub dx, dx mov dx, offset v mov ah, 09h int 21h mov ax, 400ch ; retuing control to OS int 21h Main ENDP END Main asked 4 mins agoJuan Francisco Asenjo This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers., ...ادامه مطلب

  • جدیدترین مطالب منتشر شده

    گزیده مطالب

    تبلیغات

    برچسب ها