Most voted "assembly" questions
DO NOT use this tag to mark over . Net’s Assembly which has its own tag. Assembly Language (ASM) is a family of very low-level programming languages, just above machine code. Also specify a tag with the processor or instruction set your question is related, as well as the Assembler you are using.
Learn more…160 questions
Sort by count of
-
1
votes3
answers141
viewsIsolate processor to run only my program
It has as I isolate the processor to run only my program in C? It’s more of a didactic and scholarly question that my I.A teacher passed on to me. He asked us to perform millions of operations to…
-
1
votes0
answers423
views -
1
votes2
answers892
viewsHow to convert lowercase string to uppercase in Assembly?
I made this code that reads a sentence and determines whether the first letter is uppercase or not, now I have to sweep the entire sentence by changing where it’s lowercase to uppercase, but I’m…
-
1
votes1
answer873
viewsRead txt on Assembly i8086
I have the following code to read txt file: ; um programa que demonstra a criação de um arquivo e a ; leitura do mesmo .model small .stack .code start: mov ax,@data ; endereço de base do segmento de…
-
1
votes1
answer692
viewsReturn difference between higher and lower array value in Assembly
I am trying to make a code in Assembly with Arq. x86 using NASM. In this code I must return the difference between the highest value and the lowest value of an array, as below. However, when running…
-
1
votes0
answers28
viewsConvert numbers to decimal in assembly8086
Guys I’m trying to develop a adding calculator in assembly8086 only I’m not able to convert the numbers into sums above 10, if adding 4+5=9 works perfect now if I add 8+2=10 it didn’t display the…
-
1
votes0
answers98
viewsWhat is that nasm-created file when I "compile" it?
I compiled an Assembly code in nasm using "nasm.exe -f Win64 program.asm -the program. o" and got more doubts than anything. My intention in making this simple program is to take a pure code,…
-
1
votes1
answer191
viewsAssembly Intel/NASM error (invalid Combination of opcode and operands)
When assembling the code below, I am getting the error error: invalid combination of opcode and operands on lines 16, 26 and 28. SECTION .data maior: db 0 SECTION .text global retorna_numeros…
-
1
votes1
answer329
viewsCompare a string in Assembly x86
Every time I type the letter "F" or "f" on the console, it will always say that I did not type the letter "f". Why? section .data: msg: db "Digite a letra F: " msgLen: equ $- msg msgEqual: db "Voce…
assemblyasked 5 years, 1 month ago Afonso Dolmen 27 -
1
votes2
answers248
viewsVisual Studio - Managing Locally Registered Dll Publication of Homologation and Production Environment
I am working with a Dll from Itaú bank(itauCripto.dll), the documentation requires it to be registered locally on the machine running the application. So I put the Dll inside the folder %systemroot%…
-
1
votes1
answer56
viewsIncorrect link in C program and Assembly
I did an Assembler routine to calculate the exponential. I compiled it, and I get the Object Exp file. o The C++ program to take advantage of this routine is the type of: #include <iostream>…
-
1
votes0
answers27
viewsAssembly bootloader al returns empty string
I’m creating a bootloader but had a problem writing on screen I am using two files the bootloader.asm and Keyboard.asm bootloader.asm: %include "src/assembly/setings.asm" [org BOOTADD] _mode:…
-
0
votes1
answer109
viewsLR register with zero value in IRQ Interruption Handler
Configuration of the interrupt vector: interruption vector: b RESET_HANDLER .org 0x08 b SVC_HANDLER .org 0x18 b IRQ_HANDLER In the first line of routine IRQ_HANDLER, the value of the registrant LR…
-
0
votes1
answer653
viewsHow to extract hexadecimal code from a nasm-compiled executable?
I have an executable, created in Assembly language and compiled with NASM. There is a way to obtain the value, in hexadecimal, of the bytes produced by the compiler, so that I can use them in a…
-
0
votes0
answers182
viewsDecision Structure in Assembly
I’m programming in Assembly and here comes a mistake. To summarize, I have to make a framework to check two real values and so go for the rest of the program. Well, that was the idea. To illustrate…
assemblyasked 9 years, 12 months ago Vinícius Novelli 173 -
0
votes2
answers357
viewsHow to translate a hexadecimal statement on the intel x86 architecture to Assembly?
How to do this by looking only at the hexadecimal values of an address?
assemblyasked 9 years, 2 months ago alexsander 483 -
0
votes1
answer291
viewsRepresentation of Assembly instructions
How to interpret an Assembly statement with its hexadecimal value in a memory address? 8B 4C 24 04 CORRESPONDS TO THIS -> MOV ECX,DWORD PTR SS:[ESP+4] But if I had only hexadecimal values how…
-
0
votes1
answer222
viewsHave all the machine code programmers who complained about Assembly changed their mind about Assembly?
According to Richard Hamming in the book The Art of Making Science and Engineering, page 26, one of the main complaints of the 1°generation machine code programmers who did not accept the Assembly…
-
0
votes1
answer337
viewsUnderstand code C++/Assembly
I am studying a Node, and in this process I decided to help in the study migrate a system in c/c++ to Node, but I am not familiar with c/c++ and I appeared a piece of code that I am not able to…
-
0
votes1
answer318
viewsDoubts Assembly mips
Could someone explain to me how to use And, Andi, Or, Ori, Nor in Assembly mips? Because I would like to do something like this: se (num1 > 0) e (num2 > 0) entao se (num1 <= 10) e (num2…
-
0
votes1
answer43
viewsSegmentation fault when switching system call the "int" to "syscall" in Assembly x86 linux
When I change the system call of int $0x80 for syscall or sysenter in this code: mov $4, %rax mov $1, %rbx mov $String1, %rcx mov $16, %rdx int $0x80 the program ends up in Segmentation fault. In…
-
0
votes1
answer219
viewsI would like to understand how to configure ports (port, ddr, pin) using avr atmega328p Assembler
Example that was testing, configure output ports and input ports, to be able to perform a sum, but are not working: ldi r21, 0x0a ldi r22, 0x0b out PINB, r16 out DDRB, r16 out PORTB, r17 add r21,…
-
0
votes0
answers53
viewsWhy can I restore old ESP value
Well I have here a question that involves Assembly and C. The variable format has more than 4 bytes, yet I can do pushfrom it without using cast and return the old ESP value after push. How is it…
-
0
votes1
answer70
viewsCapture Mars mouse click
Is there any syscall or other mechanism that can capture the mouse click by the Mars mips simulator .
-
0
votes1
answer135
viewssubtraction of numbers from 32 to 64
I am learning to code in Assembly and I have a problem which is the following: I have a result of a subtraction in number of 32 bits, and it has to return a number of 64 bits. Note: I’m using a…
-
0
votes0
answers64
viewsCreate application to communicate with SYSFAN motherboard output
Hi, I’m in need of a library idea, language, code, that you know where I can write the code to communicate with the Fan output from the motherboard. To better understand the idea, there are…
-
0
votes1
answer111
viewsFASM - Create and run batch file
Under Assembly(using FASM assembler), I would like to create a . bat file and then run it. I can create the file normally using the functions contained in msvcrt.dll. I close the file and try to run…
-
0
votes1
answer232
viewsSuccessive loops in Assembly
I am studying Assembly however I am very difficult, I have to solve an exercise but I did not understand what to do. "Loop successive subtractions to negative. load, sub." Can someone help me.…
assemblyasked 6 years, 7 months ago Carlos Ferreira 39 -
0
votes0
answers60
viewsSuccessive Assembly Loop using Gcc and IAS
I am studying Assembly however I am very difficult, I have to solve an exercise but I did not understand what to do. "Make a loop for successive subtractions up to negative." I’m using Gcc from…
assemblyasked 6 years, 7 months ago Carlos Ferreira 39 -
0
votes0
answers51
viewsDoubt with Assembly - Change Address value
I am beginner in Assembly and C, and I need to change the value of an . exe file address 004864D2 . C785 5CFCFFFF F8020000 MOV DWORD PTR SS:[EBP-3A4],2F8 I tried it this way with the C…
assemblyasked 6 years, 7 months ago Pedro Silva 1 -
0
votes1
answer326
viewsUsing methods from a project written in C++ in C# (Same Solution)
Hello, I need to consume methods written in C++ in a project written in C#, within . NET (both) and that are contained in the same Solution (as shown in the image below) I tried to compile the…
-
0
votes1
answer159
viewsHow do I receive user input?
.data StringOriginal: .asciiz "Frase Introduzida:\n" #ex_msg_og StringFinal: .asciiz "\nFrase Encriptada:\n" String: .asciiz "Hello World" .text Main: la $v1,String #load addr of string into $v0 la…
-
0
votes1
answer230
viewsConversion of C-pointers to Assembly
Good afternoon, I will have Assembly test and I have a question that is about pointers in Assembly. I’m trying to do an exercise, but I can’t fix it. "Consider the statements in C: int x=100, y=200;…
-
0
votes1
answer35
viewsWhy do we name it "word" for a 2-byte sequence?
I’m a beginner in the study of computer architecture, and that name made me a little curious. I’ve seen that there are word’s, doubleword’s and quadword’s. But why it gave name to 2 bytes and not 1…
-
0
votes0
answers193
viewsError placing conditional build on Assemblyinfo.Cs file
When I put this in my Assenblyinfo.Cs do not compile #if DEBUG [assembly: Application(Debuggable=true)] #else [assembly: Application(Debuggable=false)] #endif and gives error in almost all classes.…
-
0
votes1
answer66
viewsUse C++ variable in Assembly (Arduino)
I have an interesting code in this page. const uint8_t MachineCode[44] PROGMEM = { 0x25, 0x9A, 0x2D, 0x9A, 0x40, 0xE5, 0x5F, 0xEF, 0x6F, 0xEF, 0x6A, 0x95, 0xF1, 0xF7, 0x5A, 0x95, 0xE1, 0xF7, 0x4A,…
-
0
votes0
answers250
viewsWhat is the difference between assembler and compiler?
Well what I wanted to know is what’s the difference between compiler and assembler? Since both generate a binary file and translate a human-readable language to binary. You could also show me what…
-
0
votes0
answers51
viewsIs it possible to run a Windows executable stored in memory?
I have an executable that is not an . NET Framework Assembly stored in a byte[], and I intend to run it without creating a file dedicated to it for security reasons. The reason you don’t want to…
-
0
votes0
answers33
viewsDoubt if my pseudo code in Assembly is right
Oops, hello, good afternoon! I am in doubt if my pseudo code on Assembly is correct, if anyone can verify and explain to me why it is wrong I would appreciate it very much. The code is simple.…
assemblyasked 3 years, 7 months ago Yuri Nogueira Moreira da Silva 1 -
0
votes0
answers33
viewsWhat does a numeral before an operand inside the parentheses mean?
I’m studying Assembly, and I found codes to work with TFT/LCD displays, and I couldn’t find information on a specific instruction, it moves multiples of a long chain of data loggers to the address…
-
0
votes1
answer295
viewsHow to convert a character to hexadecimal in Assembly
My code should receive a character and print the code in ASCII, but it doesn’t work and I can’t find where the error is. Edit: is giving error (41) Unexpected end of file encountered model small…
-
0
votes0
answers49
viewsHow to Compile Assembly 2005
You guys, all right? I found an old college code in Assembly, I understand it doesn’t work nowadays because the coding must have changed, is there any way to execute it? I think I programmed him…
-
0
votes1
answer185
viewsWhen is an operating system created the compilers of ASM, C language, CPP must be created as well or are portable?
1 - AHTAH! Another crazy wanting to re-invent Microsoft - Because this me$#%%$#$ question? To give a little context to my doubt: I have always programmed in high-level languages, to solve…
-
0
votes0
answers38
viewsAntidebug C++ Debug Error Visual Studio
I am adding an Antidebug project to my game, the project itself is already functional, but the part of the code that detects ollydbg for example, is giving me an error after I compile the new…
-
0
votes1
answer149
viewsHow to call function in Assembly inline from code in C and vice versa
I am using the MASM syntax to make the codes below. I tried with this function, for example: __asm( "soma:\n" "push ebp\n" "mov ebp, esp\n" "mov eax, DWORD PTR[ebp+8]\n" "mov edx, DWORD…
-
0
votes1
answer117
viewsNASM SEGMENTATION FAILURE
Code update: I followed the tips and tried to stop the loop in the update section. I’m still working on the segmentation failure, however. And I need to check this loop, I don’t think it’s quite…
-
0
votes0
answers36
viewsHow to import a C library to a code in Assembly
I am trying to convert to Assembly a C code that uses the function getch() which is imported from the conio.h. library The problem is that when I try to run the Assembly program there is an error…
-
0
votes0
answers22
viewsThe "Bitmap" type is defined in an Assembly that is not referenced C#
The problem: I’m doing a project using Windows Form C# which should basically record a video from a webcam and save to the computer. I was using the Aforge.net package to record the video and when I…
-
0
votes0
answers20
viewsError setting stack by kernel
I always thought I understood about the stack but I realized that no, I’m wanting to understand the stack in practice, so I created this environment The idea is to set the top of the stack at 7FFFh…
-
0
votes0
answers23
viewsError creating keyboard drive in Assembly
I’m creating a keyboard driver but I’m having problems; The idea is that the kernel will load "Keyboard.asm" in memory at 0800h:500h and then I will make a jump to that same address, the first…