Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Assembly

An assembly language (or assembler language) is a low-level programming language for a computer or other programmable device in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreting or compiling. Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.

Share tech news, updates, or what's on your mind.

Sign up to Post

i want to have 2 options in the Little man Machine? 1. user wants add 2 numbers and then in option 2 type letters for an Word examle nice or smile , user must have the option for either of the both in the beginning :(
0
Free Tool: SSL Checker
LVL 10
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I have a clr assembly installed on a SQL Server 2008 R2 instance
It was developed with .Net 2.0

It accesses a web service

Does that web service have to be a .Net 2.0 as well?
0
I have a clr assembly installed on SQL Server 2008R2
It has been working flawlessly for 4 months
Not 1 iota of code has been changed
If calls a web service
Not one thing has been changed on the web service

Out of the blue I am getting this message on the invoke

Msg 6522, Level 16, State 2, Line 2
A .NET Framework error occurred during execution of user-defined routine or aggregate "MyGTG": 
System.NullReferenceException: Object reference not set to an instance of an object.
System.NullReferenceException: 
   at HelloEveryware.PassIn.GTG(String user, String token, String PID, String OID, String TSW_ID, String FirstName, String LastName, String IsOwner, String EmailAddress, String AccomName, String AccomAddress, String AccomState, String CheckinDate, String CheckinTime, String CheckoutTime, String AccomNights, String TourDate_Disp, String TourWave, String TourLocation, String ContactUsPhone, String DateAdded, String SendNow, String AccomCreationDate, String AccomPhone, String ActivitySeason, String CampaignName, String CancellationPeriod, String CheckinDate_Disp, String CheckInDayOfWeek, String CheckoutDate, String CheckoutDate_Disp, String ContactUsEmail, String ContactUsSignature, String OpenDate, String OpenExpirationDate, String OpenExpirationDate_Unix, String OpenMonths, String OwnerAgentName, String OwnerLottoPreferenceLevel, String OwnerLottoRequest, String OwnerLottoUse, String OwnerNumber, String OwnershipSeason, String OwnershipUnitSize, String 

Open in new window

0
In my code below...
What happens if a null value is passed in?

On my "far end" api I handle the null value  (api.brkEditProspect)

    <Microsoft.SqlServer.Server.SqlFunction>
    Public Shared Function UpsertProspect(user As String, token As String, PID As String, FirstName As String, middlename As String, LastName As String,
    EmailAddress As String, Address1 As String, Address2 As String, City As String, state As String, country As String,
    zipcode As String, Occupation As String, spousefirstname As String, spouselastname As String, spouseoccupation As String, DateOfBirth As String,
    Gender As String, WorkPhone As String, HomePhone As [String], CellPhone As String, MaritalStatus As String, HouseHoldIncome As String, ReferingOwnerID As String, SalesAgent As String) As Int32
        Dim ret As Int32 = 0
        Try
            Dim api As New wsclientapi.Service
            Dim rett As String = ""
            rett = api.brkEditProspect(user, token, PID, FirstName, middlename, LastName, EmailAddress, Address1, Address2, City, state, country, zipcode, Occupation, spousefirstname, spouselastname, spouseoccupation, DateOfBirth, Gender, WorkPhone, HomePhone, CellPhone, MaritalStatus, HouseHoldIncome, ReferingOwnerID, SalesAgent)
            ret = 1
        Catch ex As Exception
            File.WriteAllText(Convert.ToString("D:\netAssemblies\errorfile.txt"), ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace + Environment.NewLine + 

Open in new window

0
I am getting following error while building my application

Severity      Code      Description      Project      File      Line      Suppression State
Error            The "Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\\XamlBuildTask.dll. Could not load file or assembly 'XamlBuildTask, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.      AppConfigWizard
0
Hey there guys.

I have been given a chunk of C++ Code that I need to turn into assembly for 3 Processors.

The, 6805, DS89C420 & ARM7

Below is the code.
Any Help would be amazing.

void BubbleSort (void) {
 unsigned char tmp;
 int i, j;
 for (i=0; i<sizeof(Data)-1; i++) {
 for (j=0; j<sizeof(Data)-1-i; j++) {
 if (Data[j+1] < Data[j]) {
 tmp = Data[j];
 Data[j] = Data[j+1];
 Data[j+1] = tmp;
 }
 }
 }
 }
0
Am attempting to install a modified version of an open source project using an installer built using Visual Studio Community 2017.
I had to use a Temporary  Testing Certificate in order for the solution to build.

Solution builds and publishes with no errors however the following error message is shown when attempting to use the installer.
(Application is an MS Outlook extension)

Name: Out2Share
From: file:///J:/Out2Share_cbm/Out2Share.vsto

************** Exception Text **************
System.Deployment.Application.InvalidDeploymentException: Strong name signature not valid for this assembly Out2Share.dll.
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
0
Hi EE,

What the below error says? And how do I resolve it?

mysql-data-adapter.JPG
I am using:
Visual Studio 2015
MySQL Server 5.7
ODBC Connector 5.3
MySQL for Visual Studio 1.2

and have added the following Nugets...
installed-nugets.JPGPlease help.

Regards.
D Patel
0
If in my application targeting "Any CPU" I include a reference to an assembly compiled to x86, I see the following message:

"There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "VMFGSHARED", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project."

I fully understand the reason of the message and the 1st part of the recommendation. But can somebody explain what does it mean to "take a dependency on references with a processor architecture that matches the targeted processor architecture of your project." ?
0
i have already  ( ferst drive ) access,
but now i need to get to the (second drive ) access
but stumbled into a problem.

need to put a
AH = 00
DL = drive number
http://stanislavs.org/helppc/int_13-0.html

	
start:

	call os_hide_cursor
	
	mov ax, .title_msg
	mov bx, .footer_msg
	
	mov cx, 10011111b	; Collor
	call os_draw_background


   
	mov cx, 1				; Load first disk sector into RAM
	mov dx, 0
	mov bx, disk_buffer
	
	mov ah, 2
	mov al, 1
	stc
	int 13h					; BIOS load sector call

    mov si, disk_buffer + 2Bh		; Disk label starts here

	mov di, .tmp_string1
	mov cx, 11				; Copy 11 chars of it
	rep movsb

		mov byte [di], 0			; Zero-terminate it

	mov si, disk_buffer + 36h		; Filesystem string starts here

	mov di, .tmp_string2
	mov cx, 8				; Copy 8 chars of it
	rep movsb

	mov byte [di], 0			; Zero-terminate it

	mov ax, .label_string_text		; Add results to info strings
	mov bx, .tmp_string1
	mov cx, .label_string_full
	call os_string_join

	mov ax, .fstype_string_text
	mov bx, .tmp_string2
	mov cx, .fstype_string_full
	call os_string_join



	mov ax, .label_string_full		; Show the info
	mov bx, .fstype_string_full
	mov cx, 0
	mov dx, 0
	call os_dialog_box


	.title_msg	db 'Setup', 0
	.footer_msg	db 'Setup ...', 0
	.tmp_string1		times 15 db 0
	.tmp_string2		times 15 db 0
	.label_string_text	db 'Filesystem label: ', 0
	.label_string_full	times 30 db 0
	.filename_tmp1		times 15 db 0
	.filename_tmp2		times 15 db 0
	.fstype_string_text	db 'Filesystem type: 

Open in new window

0
Hire Technology Freelancers with Gigs
LVL 10
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

I have an application that has been written for me and i have all the source code.  When i compile and run it i get the following error.  What can be causing this?

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Windows.Forms.ToolStripMenuItem' to type 'System.Windows.Forms.Control'.
   at Accusoft.FSInvoicesDemo.MDIParent2.localFolderToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: …
0
Hi,

We're in the process of refactoring a large PowerBuilder application with the goal of keeping our business logic in PB and exposing it as an API for .NET developers by using the .NET assembly target in PowerBuilder 12.6 Classic.

The environments we need to support include multi-threaded environments like IIS and xUnit.  In using xUnit (which defaults to running tests in parallel), we've encountered an issue where database connections made on separate threads are interfering with each other.  We've also reproduced this issue from a multi-threaded .NET console application.

We've created a very simple .NET assembly that just exposes a connection nvo that wraps a native PB transaction stored as an instance variable in the class.  We are not using SQLCA or any global variables.  The connection object just has connect and disconnect methods.  We import this assembly into a .NET xUnit project, create three separate test classes where each runs a test that instantiates a local connection instance and loops ten times, just connecting and disconnecting with each iteration.

If we force xUnit to run tests serially (see how below), we can repeatedly run all tests without issue.  If we let xUnit parallelize the execution of the three test classes, we get random errors.  Sometimes after connecting we'll get a "transaction not connected" exception when immediately trying to disconnect or when attempting to connect we'll get a "transaction already connected" exception.  …
0
At work today where we support an SDK (.net one) someone asked if the C# SDK was a "signed" .NET SDK.

I wasn't 100% sure what they were talking about but I thought this was on the right track:
https://docs.microsoft.com/en-us/dotnet/framework/app-domains/how-to-sign-an-assembly-with-a-strong-name

Can someone explain to me what this is about and why they would need it? And also how difficult would it be to turn my unsigned SDK into a signed SDK?

Thank you
0
I'm programming Infineon TC29x Aurix Tricore Microcontroller based embedded system in 'C' language.
 
Consider stack starting at address 0x5000 0000.  The stack size is 0x1000.  

If I add 0x1000 to current stack pointer(Register A10) and store result in A10, then I should get underflow error.

What might be the code in assembly to change stack pointer?  something like following:

stw a10, 0x1000(a10)   # I'm not sure if stw is correct opcode ?

what are other options to create stack undeflow exception?
0
Do any one knows what HEX code i need to get the C: drive label

for diskette (a) i uze
 disk_buffer + 3h		; Disk label from Drive A:

Open in new window


but drive C: is harder to get.

disk_buffer	equ	24576
..
.
mov cx, 1				; Load first disk sector into RAM
mov dx, 0
mov bx, disk_buffer
	
mov ah, 2
mov al, 1
stc
int 13h					; BIOS load sector call

mov si, disk_buffer + 3h		; Disk label from Drive A:
call os_print_string
	

Open in new window


Tnx.
0
CURRENT STATE: Customer is using IMS DC as legacy online component and IMS-DB & DB2 as backend databases.
 One of the legacy subsystems is Document production which uses ASF & DCF IBM utilities. ASF is for information passing and DCF is for Document production. ASF will get information from user when they submit customer information. Those attributes of information will be made into a virtual file format called SIB Type 1(we can also call it as traditional COPYBOOK). ASF will pass the SIB type 1 file after invoking online PDP(Parameter Determination Program) programs(they are written in assembler language). These PDP program will get some information from backend databases based on the parameters passed in SIB Type 1. They will be displayed to customer by ASF. If customer wants to print all info as letter he can do so with the help of DCF. Following illustration can help to understand the current state.

 Eg:- SIB 1 type 1 file(copybook) contains below fields. These fields will get filled based on the information given by the customer in legacy online screen.
 Policy number
 Surname
 Type of policy

 Now user give policy number (xy123456) as input, ASF will fill the policy number and send this SIB to PDPs like below.

 Policy number : xy123456
 Surname : ???
 Type of policy : ???

 PDP will get invoked by ASF. By following some business logic, the PDP will fill the remaining data in SIB type 1 file and send it to ASF.

 Policy number : xy123456
 Surname : …
0
I inherited a C# application.  The development environment is Win10 64 bit, VS 2012 and the development machine has Microsoft Office Pro 2016 installed.  The problem is that the C# application has a lot of references to Microsoft.Office.Interop.Word which utilizes MS Office 2003 if I recall correctly (version 11 as opposed to version 14).

I can't get past this build error which states:

Assembly 'Microsoft.Office.Interop.Word, Version 14.0.0.0, culture = neutral, Public Key Token.......' which is a higher version than referenced assembly 'Office, Version=11.0.0.0, Culture neutral....."

I cannot remove the reference to either assembly without breaking a significant amount of the existing code.  I originally tried installing both and setting the 'Embed Interops Types = False' at the recommendation of .Net but that did not resolve the issue.

Any suggestions?
0
Hi Experts! I have no idea how to debug this issue.... Any help would be appreciated!

I have a client who sends shipments to UPS to get Tracking information and status, etc. Occasionally they have to void an airbill... all the functions work as desired with the exception of the "void" switch.

For example:

Z:\UPS\NewUPS.exe track << works great

Z:\UPS\NewUPS.exe ship << works great

Z:\UPS\NewUPS.exe void << Throws the error (was working a few months ago)


Error Message

 .Net Framework Error:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at System.Data.Common.UnsafeNativeMethods.IDBInitializeInitialize.Invoke(IntPtr pThis)
   at System.Data.OleDb.DataSourceWrapper.InitializeAndCreateSession(OleDbConnectionString constr, SessionWrapper& sessionWrapper)
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at …
0
I have a table that has 4 triggers on it.
An api does an insert or update on the table and these triggers fire.

On that same server I have an assembly installed... which a function calls

How can I add a call to that assembly function after the LAST trigger fires?
Is there a way to determine the ORDER of the triggers...
And then should I add that function to the Trigger...??
0
On Demand Webinar: Networking for the Cloud Era
LVL 10
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

HI All,

I have this powershell script and I need find a secure way of storing the password. I've tried :

$response = Read-host "What's your password?" -AsSecureString 
$Password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($response)

Open in new window


and this will not work.

below is my script, how do I load the assembly, it prompts and error saying :

Unable to find type [Microsoft.VisualBasic.Interaction]. Make sure that the assembly that contains this type is loaded.
At line:1 char:1

this is the code
#Specifiy Local admin account name
$user = "mcadmin"
  
Add-Type -Assembly System.Web
$pass=[Web.Security.Membership]::GeneratePassword(20,0)
NET USER $user "$pass" /ADD /y
#Add user to local admin group
NET LOCALGROUP "Administrators" "$user" /add
#set password to never expire
WMIC USERACCOUNT WHERE "Name='$user'" SET PasswordExpires=FALSE
  
Write-Host "Username: $user" -foregroundcolor green -backgroundcolor black
Write-Host "Password: $pass" -foregroundcolor green -backgroundcolor black
Write-host "Server: $env:computername" -foregroundcolor green -backgroundcolor black

# Load the classes from KeePass.exe:
cd "\\smile01\Infrastructure\KeePass-2.34" | out-null
(Get-ChildItem -recurse $script:myinvocation.mycommand.path | Where-Object {($_.Extension -EQ ".dll") -or ($_.Extension -eq ".exe")} | ForEach-Object { $AssemblyName=$_.FullName; Try {[Reflection.Assembly]::LoadFile($AssemblyName) } 

Open in new window

0
Just when you thought Google Glass was dead and buried (thanks to public stigma), yesterday they announced an enterprise version:
http://www.x.company/glass/

Here's a blog post from the Glass project lead (Jay Kothari) that explains some of the things they're doing in the enterprise.

instruction manual compared to glass Using these for helping factory workers in assembly, inventory management, etc., on first glance looks like a no-brainer.  Giving a surgeon the ability to monitor vital signs of a patient while elbow deep in a heart transplant, amazing. Seems like enterprise is where the Glass project should have started in the first place.

3
 

Expert Comment

by:Daniella Barion
Like a zombie!
1
 
LVL 7

Expert Comment

by:Brian Matis
There's definitely a lot of potential in this type of product. I keep thinking it'll be Apple that manages to make something stylish enough to get mass-market appeal though.
0
He, i wanna add a .newmessage line under

	.message	db 'Hallo en welkom to installasie van pirom client', 0

Open in new window

but when adding jest a new line .      .message      db '....' ,0
do not works

: error: symbol `.message' redefined

;------------------------------------------------------
; Install screens 1 
;------------------------------------------------------
	BITS 16
	ORG 32768
	%INCLUDE 'pirom_dev.inc'

start:

        mov ax, .title_msg
	mov bx, .footer_msg
	mov cx, 10011111b	; Colour
	call os_draw_background

	mov si, .message
;	mov ax, .buffer
	call os_print_string
	
	.message	db 'Hallo en welkom voor de installasie van pirom', 0
	
	.title_msg	db 'Pirom Setup', 0
	.footer_msg	db 'Setup', 0

Open in new window

0
I have a dll .Net class that is loaded on SQL Server 2008R2

A function calls the dll and passes in parameters
How can I change those parameters to allow incoming nulls on a few of them?

<Microsoft.SqlServer.Server.SqlFunction>
    Public Shared Function GTNG(user As String, token As String, PID As String, OID As String, TSW_ID As String, FirstName As String,
    LastName As String, IsOwner As String, EmailAddress As String, AccomName As String, ... etc...etc...
0
I am trying to call some routine provided to me by a developer contained in a .dll.

I am working with on-premise 2013 SharePoint and have placed the .dll in the \bin directory.

FROM MSDN:

[You can store compiled assemblies in the Bin folder, and other code anywhere in the web application (such as code for pages) automatically references it. A typical example is that you have the compiled code for a custom class. You can copy the compiled assembly to the Bin folder of your Web application and the class is then available to all pages.

Assemblies in the Bin folder do not need to be installed in the Global Assembly Cache (GAC). The presence of a .dll file in the Bin folder is sufficient for ASP.NET to recognize it.]


My problem is I cant seem to find a way to reference this .dll.

I am using a script editor along with javascript.
Can anyone give me a sample of code to load the library and it's procedures.?
0
Dear community,
We have Problems with active sync in Exchange 2016 CU5.
After a Migration from Exchange 2010 to Exchange 2016 CU5 the following error occours when we connect with active sync:

OWA is working!

exchange analyzer
Event code: 3008
Event message: A configuration error has occurred.
Event time: 07.07.2017 08:10:45
Event time (UTC): 07.07.2017 06:10:45
Event ID: d049c0dd0f3b4cc4986b58ec61b74869
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/2/ROOT/Microsoft-Server-ActiveSync-4285-131438814449264551
    Trust level: Full
    Application Virtual Path: /Microsoft-Server-ActiveSync
    Application Path: C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\sync\
    Machine name: XXX
 
Process information:
    Process ID: 18536
    Process name: w3wp.exe
    Account name: IIS APPPOOL\DefaultAppPool
 
Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'Microsoft.Exchange.Security, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\sync\web.config line 251)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at …
0

Assembly

An assembly language (or assembler language) is a low-level programming language for a computer or other programmable device in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreting or compiling. Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.

Top Experts In
Assembly
<
Monthly
>