How can I actually program Assembly

So, I did some basic assembly programming and had some fun with it, but I kinda feel very limited by ‘only’ using simulators. So I was wondering how I can actually truly do assembly or even machine code programming.

What I’ve seen so far the only “real” way to do this is by getting an actual processor/circuit I can talk to directly, but I also did not find such thing, and the only way I saw to programm arduino like that is by implementing it into C code, which sounds like basically compiling it into C, which is completly against the point.

Are there some machines built for exacly that? Will I have to ‘build my own Computer’ out of such processor and clock?

Essential difference between Assembly languages to all other programming languages

I understand that any assembly programming language has so little abstraction, so that one who programms with it (OS creator, hardware driver creator, “hacker” and so on), would have to know the relevant CPU’s architecture pattern very well — unlike someone that programms in any “higher” programming language.

For me, this requirement to know the relevant CPU’s architecture pattern very well is the essential difference between assembly programming languages to the rest of programming languages, so we get:

  • nonassembly/high programming languages
  • assembly/low programming languages
  • machine code languages which usually won’t be used as programming languages but theoretically are as such

Is this the only essential difference, if not, what else there is?

Does assembly language get translated to binary code? If so, is assembly language portable across machines?

I’ve tried to find the answer through Google but I’ve come across conflicting uses of terminology, so I just wanted to be absolutely clear.

Here is my understanding: High level code written in a high level language (C I think is one of the lowest-level high level languages) gets translated to assembly code by that language’s compiler.

That assembly code then gets translated to machine code (aka binary code aka hexadecimal code) by something (not sure what does this translation).

Does that mean that assembly code, but not machine code, is portable across computers? Or is assembly also not portable, and the only thing portable is code written in a high level language?

Possibility of illegal stuffs using Web Assembly code or any website program

I recently discovered a website – lifeinspace.org where it is advertised that they rent our computing power for performing scientific calculations but actually I suspect that they do some bitcoin mining or the possibility of illegal stuff (like DDoS, malware, botnets, etc…), because I could not find lifeinspace.org anywhere in google/research news/articles.

I tested this service and actually I did receive payment. Of course in the virtue of electricity/CPU/internet/bandwidth, I found that its a loss. However, I wanted to know the legality of the tasks performed in the background by this service.

I found from the forum that a .wasm code gets downloaded when we run the tool – and this file lifeinspace.org/main.wasm gets downloaded to machine. (https://money.stackexchange.com/questions/115754/lease-computing-power-to-earn-money-lifeinspace-org)

But I am not pretty sure how to decode it and details in that code.

So, to know if there is any illegality associated when the website performs calculations (or runs the code), I used multiple tools – netmon, procmon (process monitor), Netlimiter, Kaspersky free scanner online for botnets,etc.. but I could not find any trace.

Any guidance to track or trace or check the legality of this file (main.wasm) would be helpful.

Having trouble understanding the use of a label in Assembly

I am currently having trouble understanding what this label means in Assembly as it has no variable size with it. In the following program that declares several variables in the stack offset the variable is named SCMP_VARSIZE. I have seen many other variables that have a postfix of VARSIZE attached to them and can’t understand why it is used in programs.

/Stack Usage:     OFFSET 0 SCMP_RETVAL DS.B 1 ; Return value SCMP_VARSIZE SCMP_PRY DS.W 1 ; Preserve Register Y SCMP_PRX DS.W 1 ; Preserve Register X SCMP_RA DS.W 1 ; return address SCMP_STR1 DS.W 1 ; address of first string SCMP_STR2 DS.W 1 ; address of first string  strcmp: pshx ; preserve registers         pshy         leas -SCMP_VARSIZE,sp         clr SCMP_RETVAL,sp ... 

The program compares two strings but that is not important here. I just don’t understand what the VARSIZE label is used for in assembly programs.

The located assembly’s manifest definition does not match the assembly reference

Después de crear un Banco de Datos en el Microsoft SQL Server, estoy intentado hacer la Ingeniería Reversa con una aplicación ASP.NET Core (Aplicación web MVC) en el Visual Studio.

Por defecto ya está instalado los paquetes *Microsoft.AspNetCore.App (3.00) * y el Microsoft.NetCore.App (3.00)

Puse también el Microsoft.EntityFramework.SqlServer (3.00) y el Microsoft.EntityFrameworkCore.Tools (3.00)

Todos en sus últimas versiones (septiembre de 2019), incluso el SDK es 3.0.100 preview 009812 y el ASP.NET Core es el 3.0.

El ERROR

En la Consola del Administrador de paquetes NUGET busqué el servidor con Autenticación de Windows:

Scaffold-DbContext “Server=NombreServidor;Database=nombreDB;Trusted_Connection=True;” Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

Pero el mensaje de retorno es

Could not load file or assembly ‘netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

No he encontrado una solución hasta ahora. Ya eché un vistazo en la localización, hice el BD de nuevo, inicié un proyecto nuevo outras veces, he instalado algunas librerías, el FrameWork Design, etc y hasta ahora nada. ¿Alguna sugerencia? Muy Amable.

Does JavaScript stop executing script when a Web Assembly function is called?

I am fairly inexperienced with web development and want to put a lot of time into learning JavaScript and Web Assembly because they both seem like extremely powerful tools when used together. When structuring my projects should I assume that the V8 engine will just stop executing code when I run a wasm function from JS, or will they run simultaneously?

Alguém para dar uma força na em Assembly? [pendente]

Atenção, todos os exercicios precisam que seja inserido no inicio valores constantes para testes. Ainda não estamos entrando com valores pelo teclado.

Todos os números que utilizaremos nestas atividades serão no máximo até 255. ou seja, trabalharemos com apenas 1 registrador por número.

Atividade 1: Somar dois números e salvar em um registrador diferente.

Atividade 2: Ordenar dois números (Os números ordenados deverão ficar no registrador R20 e R21)

Atividade 3: Somar dois números, caso a soma dê mais de 30, subtrair 10, caso contrário, adicionar o valor atual da soma (isso equivale a multiplicar a soma atual por 2). Salvar o resultado no R20.

Atividade 4: Ordenar três números em ordem crescente, Salvar ordenado nos registradores R20, R21 e R22.

Atividade 5: Multiplicar um número por 5 e salvar o valor no registrador R20. Coloque um valor pequeno na entrada, máximo 15 para evitar overflow. Não vale utilizar nesta atividade a instrução de multiplicação. E você deverá utilizar um loop de repetição.

Atividade 6: Carregue valores na memória, começando do endereço $ 100 os valores de 1 a 10. Utilize o comando de repetição para isso.

Atividade 7: Some os valores de $ 100 a $ 10A e coloque em R20. Lembre-se trabalhe com valores pequenos para evitar overflow. Inicie com alguns valores os endereços indicados antes de executar o código.

Atividade 8: Some 8 valores da memória e tire a média (dica, divisão por potência de 2 é só deslocar os bits para a direita)

Atividade 9: Carregue valores na memória, começando do endereço $ 100 os valores de 10 a 20. Depois subtraia de 3 cada endereço de memória

Atividade 10: Carregue 10 valores , começando em $ 100 e ordene estes valores de forma crescente

The application on react + redux + react-dnd does not work after assembly, why?

when running the test script an error occurs

Invariant Violation: Could not find “store” in the context of “Connect (DragD ropContext (App)) “. Either wrap the root component in a, or pass a custom React context provider to and the corresponding React context Consumer Connect (DragDropContext (App)) in connect options.

although everything works in an unassembled project. As I understand it, there are some problems due to the fact that the root component is wrapped in two hocs – one redox, the other dnd.

ReactDOM.render(<DragDropContextProvider backend={HTML5Backend}>                     <Provider store={store}>                         <App />                     </Provider>                 </DragDropContextProvider>, document.getElementById('root')); 

I tried to wrap first in dnd, then in redaks – it did not help, everything is the same.