Click here to Skip to main content
15,885,757 members
Everything / Programming Languages / ASM

ASM

ASM

Great Reads

by codestarman
X86/ARM emulator written using C++ and assembler for the .NET environment.
by Ryan Scott White
CudaPAD is a PTX/SASS viewer for NVIDIA Cuda kernels and provides an on-the-fly view of your Cuda code.
by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
by Jose A Pascoa
Rolling up a practical solution

Latest Articles

by shunninghuang
C# arcade emulator, ROM hacking
by Jonathan Chapman-Moore
How to build Microsoft Disk Operating System 1.25
by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
by Sarthak S
Assembly inspection and hacking with windbg

All Articles

Sort by Updated

ASM 

15 Feb 2010 by #realJSOP
truevision.ind...
8 May 2010 by #realJSOP
Google is your friend. I used this search phrase ("c# detect usb device"), and this was the first of over 3.1 MILLION hits:http://www.dotnet247.com/247reference/msgs/32/164968.aspx[^]The second hit is for an article right here on CodeProject.Happy googling.
13 Jul 2010 by #realJSOP
I'm not sure how much help you're going to be able to get here, (this is for Linux, right?). I googled "asm segmentation fault", and got 116,000 hits.
26 Aug 2010 by #realJSOP
Instead of putting it on a thumb drive, just load it in a virtual machine. That way you can test it more easily.
6 Feb 2011 by #realJSOP
Ummm, all of those are integer types, just with different bases. The point at which they become "hex" or "octal" is when they're displayed, but their internal representation are always the same.
17 May 2011 by #realJSOP
This is how I do it (we determine the host and select the appropriate endpoint).// these are the endpoints define in the webconfig filestring LocalHostEndpointName = "LocalHost_Endpoint";string ProductionEndpointName = "Production_Endpoint";string CurrentEndpoint = "";//...
9 Jun 2011 by #realJSOP
6.3 million Google results returned for "microsoft assembler"[^]
1 Jul 2011 by #realJSOP
I believe they're commandline tools as opposed to having an IDE, but never having used them before, I'm not sure. As an alternative to using MASM, you could write asm code in unmanaged C++, but there may be some restrictions as to what you can do. Google is your friend.[^]BTW, the...
1 Oct 2009 by 0x3c0
C++ support code and the console.
17 Nov 2009 by 0x3c0
Descriptor tables and interrupts.
13 Jul 2010 by 0x3c0
A segmentation fault means that you've made the memory protection systems think that something is wrong. Generally, it means that you're trying to access an unmapped address, or passing a wrong address to a system call. Work out where it's faulting, and check what you're supposed to provide to...
9 Feb 2015 by @shok kumar mishra
I want to store logedin session state in SQL Server and check whether he session is active or not.Please help me to find the solutions.Thanks in Advance
28 Jun 2013 by _Asif_
This tip helps in creating User schema with fresh password on the fly
13 Jul 2013 by _Asif_
MOV EAX, [44AFE2E4]MOV BYTE PTR [EAX] = Similar is the case for 0x00002 value in ECX.Check this link alsohttp://en.wikibooks.org/wiki/X86_Disassembly/Variables[^]
14 Jan 2015 by _Asif_
I think Smart Client application is the best choice for you. Check this articleSmart Client Architecture and Design Guide[^]
5 May 2013 by _Damian S_
You don't have the OLEDB provider installed on your IIS server. You could install the Microsoft Access Jet redistributable package to achieve this.
29 May 2010 by Abhinav S
What have you tried (and written) so far?If you are stuck somewhere, post some code here and someone maybe help you.
9 Jun 2013 by Abhinav S
This link should help you get started - http://msdn.microsoft.com/en-us/library/bb386404%28v=vs.100%29.aspx[^].
20 Sep 2014 by Abhinav S
Try solutions at -Regenerate aspx.designer.cs file[^]How to force Visual Studio to generate (or regenerate) your .designer file[^]
3 Apr 2015 by Abhinav S
TrySave and Retrieve images from database in ASP.Net[^]Save image to database in ASP.NET 2.0(C#)[^]How to save images in database and retrieve image from database [^]
12 Oct 2015 by Abhinav S
The result will depend on your query.If the same record is returned you could use the DISTINCT keyword.If you just want the top most record use TOP keyword.Last but not least filter your query on the primary key so you get a single record.Of course, your user would not know the primary...
25 Apr 2010 by Adam Roderick J
Assembly language, i Hope you are asking about Assembly languageYou can find a lot of tutorials for ASM. One Famous Book is Peter Abels's IBM PC Assembly Language And Programming. Here is one site help regarding the same.http://www.xs4all.nl/~smit/asm01001.htm[^]/edit MGThe above...
9 Jun 2010 by Aescleal
Look at the va_start, va_args and va_end macros. They're designed explicitly for handling variable parameter lists, including passing them onto other functions taking variable parameter lists.Now the sermon...Why, in C++, are you using variable parameter lists when the prevailing model...
16 Jun 2010 by Aescleal
From the assembly you've posted my Microsoft Intellisense paperclip leaps up and says: "Hey, it looks like you're wanting to set bytes in a 32 bit value! Do you want to do it with unions, bit-masks or disgusting casting?"Starting with the disgusting casting... What you do is tell the...
12 Jul 2010 by Aescleal
Seeing your comment to Cedric's answer, you've got a couple of options.The first one is fight your way through boost::function and use that. You should be able to bind functions, objects, member functions and their parameters using that. If you want complete binding at run time (i.e. when...
8 Oct 2013 by ajitkmr09
Add User: public static int AddUser(Users user) { OleDbParameter prmName = new OleDbParameter("@name", OleDbType.VarWChar,100);//datatype Text prmName.Value = user.Name; OleDbParameter prmPass = new OleDbParameter("@pass",...
28 Mar 2011 by Akin Ocal
Hi ,I have an itoa ASM implementation. I would like to usSIMD for it. But trying to figure out which parts can bewritten with SIMD instruction or how can it be changedfor use SIMD instructions ?The mentioned ASM implemetation :void myitoa(int num, char * numstr){ __asm { ...
30 Dec 2006 by akyprian
Maximum performance, reduced size applications using 32-bit assembly is easy
5 Apr 2007 by akyprian
Display simple, animated GIFs in your applications using the AniGIF custom control (packaged as a DLL and a static library).
20 Oct 2007 by akyprian
A processes and threads manager application.
28 Mar 2021 by Alessandro Dima
I am new to assembly and I have to write this program. The title says: Write a program in assembly 8086 language that ask the user to input a number. If the character read is '0' it executes a + 3, otherwise if it is '1' it executes a-3...
14 Oct 2008 by AlexAbramov
In this article, I will talk about the theories and implementations of API hooking. API hooking is a powerful technique that allows someone to hijack a function and redirect it to a custom one. Anything can be done in these functions before passing control back to the original API.
24 Sep 2008 by AlexAbramov
Ever wanted to know how to call internal functions of other processes? This is an article on just that -- you'll learn how to read disassembled code in a project where the source code is known, and then apply that knowledge on an application where it isn't.
23 Feb 2013 by Alexandre Bencz
So, i'm tring to make a simple program to print a string on console, to make this, I have created a simple function with inline assembly, my ideia is, proint a string without use a windows lib or C/C++ functions, like printf or cout.... so, I know the macro assembler compiler of VC++ use the...
24 Feb 2013 by Alexandre Bencz
Hi :)I'm developing a simple JIT Assembly system in C++, but, I whant to call C functions in this jit system, so, what I have thinked... I need the pointer of the command... but, I don't know how I can get this...That is my code#include #include #include...
17 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET
14 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET.
5 Jun 2019 by altomaltes
This code calculates square root of an integer on a few assembler code lines.
12 Dec 2012 by Am Gayathri
Windows authentication is Clint side validation or server side validation?
20 May 2013 by Am Gayathri
I just want to know that is it possible to open aspx (asp web page) in linux os browser?Is it will open in safari?Why java called platform independent ?What is the use of JVM?
12 Jun 2013 by Am Gayathri
In my query i want to take the distinct countTable :Coloumn 1 Coloumn 2 Coloumn 3 1 Y 3 2 Y 3 3 Y 3 4 Y 4 5 Y 4here i want the count of coloumn 2...
12 Jun 2013 by Am Gayathri
Use :SELECT count(T.Coloumn2 ) Column2Count, count(T.Coloumn3 ) Column3CountFROM (SELECT DISTINCT Coloumn2 ,Coloumn3 FROM table) T.
26 Sep 2013 by Am Gayathri
I want javascript to display one image while placing mouse on it.I have one image in my page, While placing mouse on it ,it should display another image with a good size.how to do this?
23 May 2013 by Amit Vasi
How to use rss include in my application
25 Jul 2014 by Amit Vasi
Dear All, When i update msaccess file the error comes:Operation must use an updateable query.code isstring strSQL = "Update Account set OBAL_AM=(select top 1 OBAL_AM from Account where Acct_Cd='" + TextBox1.Text + "' and Code_No='" + brcod + "') where Acct_Cd='" + TextBox2.Text +...
22 Jun 2012 by AmitKumar89
Hi,You can do it by many ways:1) Javascript Querystring:On click of a button in child window just use this:this.Page.ClientScript.RegisterStartupScript(GetType(), "dd1", "
15 Feb 2020 by amn.bassam
" - " ; mean Spacen=3--*-*****n= 5----*---**--***-*********
6 Feb 2012 by AmrThabet
How to write a reliable shellcode on win32, how to bypass the obstacles that you will face in writing a win32 shellcode and how to implement your shellcode into Metasploit
6 Jul 2013 by AmyAli
Dear Friends Using asp.net application i am trying to send email but receive the error message.please rectify itFailure sending mail. my code is as follows:-using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using...
8 Aug 2010 by Ananda Narayanan S
hi....you have done a nice job.... Sending SMS project is cool....but i want it support for Bharathi Airtel(India), Docomo, Reliance and other indian networks........can you plz help me......mail me to [Email removed to avoid spam...]awaiting for your positive reply
1 Dec 2013 by Anderso0on
how i can display value in FPU as string on consoleNote : i use (ml) Microsoft Macro Assembleri hope support me with simple example
2 Dec 2013 by Anderso0on
; Example assembly language program; Author: R. Detmer; Date: revised 7/97.386.MODEL FLATExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORDINCLUDE io.hextern printf.STACK 4096 ; reserve 4096-byte stack.DATA ; reserve storage...
7 Dec 2013 by Anderso0on
This is First Code :: unsigned int F1 = 2147483647;01092C0E mov dword ptr [F1],7FFFFFFFh unsigned int F2 = 2147483647;01092C15 mov dword ptr [F2],7FFFFFFFh unsigned int F3=F1+F2;01092C1C mov eax,dword ptr [F1]01092C1F add ...
13 Dec 2013 by Anderso0on
the intel 80X86 architecture provide segmented memory model ,the PC memory is visualized as collection of segmented ,each segment 64 KByte long .start on a address that is multiple of 16.this mean First address (0000h) ,second address (0010h),....etc.why each address multiple of 16...
14 Dec 2013 by Anderso0on
label PROTO [distance] [langtype] [,[parameter]:tag]distance can be : near,near16,near32,far16,far23when i set value for distance i initialize what ?!!
11 Jun 2022 by Andrea Simonassi
The simplest multiple precision sum algorithm
11 Jun 2022 by Andrea Simonassi
A simple subtraction algorithm for multiple precision arithmetic
11 Jun 2022 by Andrea Simonassi
The first and simplest of the multiplication algorithms, fast enough to multiply not too large numbers
8 Jan 2013 by Andreas Gieriet
All the other solutions seem to assume something "real" OS-like.You may also consider to start on real ground!Maybe, you can start with some small experimental board with a controller, some RAM and some Flash memory, at least some primitiv I/O (e.g. input = interrupt, output = some LED). The...
15 Jan 2013 by Andreas Gieriet
This question is so irrelevant compared to the task at hand. BTW: why would you write an OS in assembly? This was given up in the senventies of the last century, I.e. C was invented to re-write UNIX since without it the work results would not have scaled...Almost everything you can achieve...
28 Jan 2013 by Andreas Gieriet
Do you ask for something similar like this[^]?CheersAndi
17 Mar 2013 by Andreas Gieriet
If you want a "cheat sheet", use the -S option on GCC, e.g. gcc -S binary.c. This results in a binary.s file. Learn to read the content of that binary.s file and you will get into assembly language.Once you understand reading this and isolate the function you need to write yourself, you are...
24 May 2014 by Andreas Gieriet
You are not setting edx to the number of bytes to write. CheersAndi
8 Nov 2011 by Andrew Brock
You should be storing a BPB[^] at the start. Your code should start with a JMP & NOP to skip over it.I'm guessing that the 4096B sectors are on a CD. I never made it this far when making my OS, but there was some trick to it.You can store anything you want in the free space, but...
9 Oct 2012 by Andrew_Borg
Hi,Lately I have been Studying some Assembly language, I have a question about the DB Decleration on the .Data Segment of an Assembly Application.Till Now, I always declared a Byte by doing So:Number db "Please enter a number : ",0(Name) db (String), 0Today, I found an...
19 Oct 2011 by André Kraak
Have a look at this Using x86 Assembly Language with Microsoft Visual C++[^]
26 Aug 2010 by anil4agrawal
I have created a simple 'hello world' bootloader in assembly. I compiled it and get a bin file. I want to test it using flash-drive. Is it possible to write bootloader on the first sector of flashdrive, without using any other software and just by using DOS commands? If yes then please...
8 Feb 2015 by Anisuzzaman Sumon
You need to do a list of works that are listed bellow:1.Put your gridview databind (e.g. BindGridview()) in inside a (!IsPostBack) 2.Put your contents gridview,button,label e.t.c that are updateable inside a updatepanel3.Use trigger for that event in which your are about to get values of...
8 Feb 2015 by Anjum ilyas
how to get grid dropdown value in variabe. i am populated gridview here.my code
17 Feb 2010 by Ankur\m/
If I am getting your question right, this is how you do it:1. Add OnRowDataBound="GridView1_RowDataBound" inside your GridView declaration:
3 Feb 2013 by anonymous10
which programming language is more familiar if we are going to work with binary.
7 Nov 2011 by Antonio Feijao
A library that implements remote code injection for all Windows versions.
14 Apr 2016 by AP900
I have a datalist and in that there is a button whoes ID="btnComment". when clicked on this button controls should be dynamically generated and added to panel named "PlComment".------------------------------------------------------------------ASPX...
23 Jul 2009 by Apriorit Inc, Alex Kolesnyk
This article describes the first steps in low-level programming on the example of developing of simple boot loader
8 Dec 2009 by Apriorit Inc, Eugene Wineblat
In this article, we continue investigation in the field of hiding application in the system. This article will tell where Windows OS stores the services and how uses them. We’ll discuss how this knowledge can be applied to finding our custom service and hiding it.
18 Dec 2011 by arashspy
hello my friendI want a sodoco or puzzel games in assembly language (assembly X86)***reminderbut not numbers puzzel i want a puzzel at first the for Example computer draw a circle in the form and random stir the circle in the form then user can fix it with keyboard arrow keys.
7 Apr 2014 by Archana Venkatramani
I'm using asp Menu Control. I was binding Menu items from database. However, I've got a requirement that each MenuItem's Background color must be different colors(i.e) Each menu will be displayed in different colur. Is this possible to do that? or Suggest me any other method to do.Many...
22 Apr 2010 by ARG110
how can i multiply two double word using 8086 assembly language? :((
4 Jun 2013 by arh66
hello My FriendsI've tried a lot and I'm the program prioritize your operator to write in Assembly. Please anyone can you help friends and is an example for a program that introduced me to prioritize the operator specifies, for example, a computational expression as input and outputs based on...
28 Apr 2010 by Arindam Tewary
When you write bitwise shift operation equivalent microoperation takes only one micro-operation to be performed by the ALU(CPU). It takes binary representation of the value supplied and performs a single "shift" micro operation.But when you write a division(float) it is converted into either...
16 Mar 2013 by arjel29
Can Someone here Than can Covert this C language code to ASsembly language code ??#include#include/* NOTE:Don't forget to add the -l ioports option under Tools->Compiler optionsThis will add the ioport interface libraryOR from the command line: ...
17 Mar 2013 by arjel29
.model tiny.stack.datamsgLED db "Turn off all LED at parallel port...$", 0ah, 0dh.codestart:mov ax, @datamov ds, axmov dx, offset msgLEDmov ah, 09hint 21hmov al, 0hmov dx, 378hout dx, almov ax, 4c00hint 21hend startaccording to my reasearch this code will turn...
22 Jul 2012 by armagedescu
Why do you need that? I suppose you probably want to redirect a function call?
15 Aug 2012 by Arman Aşçı
Time division multiplexing between 6 x 7-Segment displays control with Parallel Port and x86 assembly.
23 Jul 2008 by arnavguddu
Here I will present a simple "Hello World" application that you can boot into from Floppy Drive, like an Operating System.
3 Nov 2012 by Arsalaan Ahmed
how two input number and multiply?
23 May 2013 by Arun Vasu
i heard rss services from google going to stop soon.. so better go for another optionhttp://news.cnet.com/8301-1023_3-57574166-93/google-closes-the-book-on-reader-announces-july-1-sunset/[^]
11 Jun 2013 by ArunRajendra
I guess its not possible since distinct will only consider unique values. Since in column 2 only Y is present it will give the count as 1.
23 Sep 2012 by AshakiranBhatter
Hi,Suppose say if someone by chance is trying to create an OS on his own, how about the approach of building drivers for the Display adapters, sound cards and so on.Any inputs please....:)
28 Sep 2012 by AshakiranBhatter
Hi,Could you please let me know the meaning of using PUSH and Pop instructions in the following program.1. Why are they necessarily required in functions Getc and Putc2. In function Getc why Push AX and Pop AX is not coded and while the same is coded in PutcAny help would be...
18 Mar 2020 by AshakiranBhatter
Hi,I am trying to learn ASM programming on MS-DOS to get a string from User.But during the run-time it reboots the OS automatically or hangs or misbehaves while the same program is executed on Windows-XP it does not give any run-time errors.Could you please help me in this regards as to...
13 Oct 2012 by AshakiranBhatter
Hi,I have a small query even before starting to think on how to write an operating system. May be a basic query and here it is.After writing a very small program which just prints only "Hello World!" to the screendo I need to write my own Assembler and then start designing own C Compiler...
29 Oct 2012 by AshakiranBhatter
Hi,What is the need for implementing a linked list at kernel level ? Any specific real time scenario to implement a linked list while designing a kernel( may be a new kernel ).Appreciate your inputs :)
15 Jan 2013 by AshakiranBhatter
Hi,All I would like to develop is a 32 bit operating system.So I have started with NASM x86 32-bit programming. But when is it that i require 16-bit assembly programs while developing an operating system.Could you please suggest?
26 Jan 2013 by AshakiranBhatter
Hi,Could you please help me in performing the division operation in nasm.Note: 16-bit divisionRegards,Kiran
27 Mar 2013 by AshakiranBhatter
Hi,I am a very beginner to assembly programming and trying to figure out how to pass a string as an argument to a function(sub program) in nasm and then print character by character.Note: 16 bit assembler, utilizing stackscould you please help me in this regards.
28 Mar 2013 by AshakiranBhatter
Hi,As a very beginner to assembly language all I am trying to do is to access a globally declared string in assembly program and print its content character by character( for now i m trying to print only first character...for testing purpose) but something is really going wrong. Could you...
21 Aug 2013 by AshakiranBhatter
Hi,All I am trying to do is print the hexadecimal value of a number in bootloader.Architecture:Intel x86Mode: realAssembler: GNU ASSyntax: AT&TBut I dont know...something seems to be wrong. I am using a simple logic to achieve the same. I know that word can store a maximum of...
16 Oct 2013 by AshakiranBhatter
Reading the contents of a floppy disk using BIOS interrupts and Services.
13 Mar 2014 by AshakiranBhatter
Understanding FAT file system and kernel programming in C/C++