logo
down
shadow

ASSEMBLY QUESTIONS

In MIPS Assembly, how do I truncate to two decimal places if I have a floating point value X.YZDEF in a floating point r
In MIPS Assembly, how do I truncate to two decimal places if I have a floating point value X.YZDEF in a floating point r
This might help you You may want to look and see if these links will help you.http://en.wikipedia.org/wiki/MIPS_architectureMIPS_Assembly_Language
TAG : assembly
Date : November 22 2020, 07:01 PM , By : user3862283
How to shift a binary number by filling MSB with 1?
How to shift a binary number by filling MSB with 1?
should help you out If the sign bit is set, the Arithmetic Shift Right will shift in 1's on the left (for sign-extension presumably)sra Shift right arithmetic by a constant number of bits
TAG : assembly
Date : November 22 2020, 07:01 PM , By : Raoulavelo
Why is the comparing instruction not working?
Why is the comparing instruction not working?
help you fix your problem So I have a simple assembly code in 8086 that compares the value in the variable value with 100 and if it's greater it prints out: "The value is greater than 100" and if not: "The value is not greater than 100". ,
TAG : assembly
Date : November 21 2020, 07:01 PM , By : AJL
How many byes is each instruction compiled to in x86 assembly?
How many byes is each instruction compiled to in x86 assembly?
This might help you amount of bytes is difference of addresses between adjacent instructions:
TAG : assembly
Date : November 16 2020, 07:01 PM , By : user3860336
How to write to the console in fasm?
How to write to the console in fasm?
help you fix your problem The easiest way is to use the C functions. In its simplest use, printf() takes a string as a parameter and writes it on the standard output.This code should work:
TAG : assembly
Date : November 15 2020, 07:01 PM , By : Anamaria Cristea
reading a BYTE as a DWORD in Masm
reading a BYTE as a DWORD in Masm
Any of those help once again I'm doing MASM programming. I'm trying to write a procedure using the Irvine32 library where the user enters a string which is put into an array of BYTEs with ReadString. Then it loops over that arrray and determines if e
TAG : assembly
Date : October 29 2020, 08:01 PM , By : user3854600
Print double-word number to string
Print double-word number to string
Any of those help The simplest way is to convert the number to hex. Each group of 4 bits becomes a hex digit.
TAG : assembly
Date : October 28 2020, 08:00 PM , By : user3854202
8086 assembly right mouse click interrupts
8086 assembly right mouse click interrupts
This might help you If you're making a DOS program that runs under windows, you can use software interrupt 0x33, function 3, which returns the button status in the BL register :
TAG : assembly
Date : October 28 2020, 04:55 PM , By : Santiago Hernandez
how to replace a text in a file in assembly using DOS instruction
how to replace a text in a file in assembly using DOS instruction
like below fixes the issue NASM ASSEMBLER Assume we have created a text file using a notepad with the following text: ,
TAG : assembly
Date : October 25 2020, 07:10 PM , By : Atik Ahamed
How to pass argv arguments to execv in asm on 64-bit (linux)
How to pass argv arguments to execv in asm on 64-bit (linux)
will help you The second argument to execve is the address of an array of string-pointers (char ** or char *argv[]). You have given it the address of a single string (char *).Also execve(2) takes a third parameter, the environment list. As the man pa
TAG : assembly
Date : October 23 2020, 06:10 PM , By : DownHouse DownHouseR
What's the difference between the "/FAs command line option" (generate asm output) or the "Goto Disassemb
What's the difference between the "/FAs command line option" (generate asm output) or the "Goto Disassemb
To fix this issue "Go To Disassembly" is a feature of the Visual Studio IDE Debugging experience while the command line options for outputting disassembly are a feature of the C++ compiler. These are completely different things, they have nothing to
TAG : assembly
Date : October 21 2020, 06:10 AM , By : Chim
I am not understanding this assemby language program for what(what will be the input or output)
I am not understanding this assemby language program for what(what will be the input or output)
I wish this help you I got this assembly program from my mate..My teacher provided it .Unfortunately I missed it out..Please someone say me that what the program write for (input/output or objectives) , I've commented it for you:
TAG : assembly
Date : October 20 2020, 06:10 AM , By : yrp
Loading the red component of a 24-bit bitmap image into an array
Loading the red component of a 24-bit bitmap image into an array
I wish this help you Assuming they're stored or then I imagine this is your issue:
TAG : assembly
Date : October 18 2020, 06:10 PM , By : The Teknicalist
How do old CPUs execute the new ENDBR64 and ENDBR32 instructions?
How do old CPUs execute the new ENDBR64 and ENDBR32 instructions?
this will help Older GDB decodes F3 0F 1E FA ENDBR64 as repz nop edx.Single-stepping it on a Core 2 (Merom) in 64-bit mode produces no change in architectural state, and no faults / exceptions. (Tested in GDB 7.10 on an old Ubuntu 15.10 install).
TAG : assembly
Date : October 17 2020, 06:10 AM , By : Qmiao Cao
Finding GCD of an array of n numbers in assembly without external variables
Finding GCD of an array of n numbers in assembly without external variables
Hope this helps Step 1, cleanup and corrections Removing redundant instructions, re-arrangeing the code for less jumping, removing the potential infinite loop if 2 identical numbers are used and zeroing EDX before each division:
TAG : assembly
Date : October 16 2020, 06:10 PM , By : JustNoob
Is it possible to get LLVM-IR from Assembly file?
Is it possible to get LLVM-IR from Assembly file?
wish of those help Your question isn't fundamentally different from Is it possible to translate an assembly language to LLVM IR, optimize it and then recompile it to a different architecture?.asm source and binary executables / object files are basic
TAG : assembly
Date : October 15 2020, 06:10 AM , By : Bill Thomas
Which value does EDX have after logic NEG and AND instructions?
Which value does EDX have after logic NEG and AND instructions?
this will help Let's take this one instruction at a time. The NOT ax will change EAX from
TAG : assembly
Date : October 13 2020, 11:00 PM , By : SidAli Alastor
intterrupt that checks if a key was pressed and reads which key it was
intterrupt that checks if a key was pressed and reads which key it was
I wish this helpful for you I've tried int 16h \01 but all it did was changed direction once and then continued moving in that direction.
TAG : assembly
Date : October 13 2020, 11:00 PM , By : C. Meneses
Objdump swapping fsubrp to fsubp on compiled assembly?
Objdump swapping fsubrp to fsubp on compiled assembly?
it helps some times This is a known bug with gas which unfortunately cannot be fixed; reversed vs. non-reversed mnemonics for x87 non-commutative floating point instructions with register operands (like fdiv vs. fdivr) is the wrong way round. As comp
TAG : assembly
Date : October 13 2020, 10:00 PM , By : kukubs
Working with percentages using integer division in x86 assembly
Working with percentages using integer division in x86 assembly
wish of those help I edited your question completely because it was not easy to understand it. I hope that I fully understood your question and the question is still asking what you wants to ask.The problem you describe is actually not an Assembly la
TAG : assembly
Date : October 13 2020, 07:00 PM , By : AlbertG
IDIVQ instruction works odd . . . 16 mod 100 = 0?
IDIVQ instruction works odd . . . 16 mod 100 = 0?
this will help You are not running the code you are showing or your cpu is broken (unlikely).
TAG : assembly
Date : October 13 2020, 05:00 PM , By : stealthy
ASSUME directive using masm
ASSUME directive using masm
should help you out The MASM 6.1 documentation is a good resource for writing real-mode segmented code (non-FLAT models). Page 43-47 have good info on ASSUME, and segment word sizes. What you are encountering is a side effect of a rather subtle way i
TAG : assembly
Date : October 13 2020, 07:00 AM , By : netwolf
shift right and shift left assembly language
shift right and shift left assembly language
Does that help If I want to say for example bx is a number: , What will be the new bx value? Does it stay the same?
TAG : assembly
Date : October 13 2020, 06:00 AM , By : S.ghasemi
Is it possible to wake up intel cores with INIT-SIPI-SIPI sequence with all cores in real mode?
Is it possible to wake up intel cores with INIT-SIPI-SIPI sequence with all cores in real mode?
To fix the issue you can do Is it possible to wake up intel cores with INIT-SIPI-SIPI sequence with all cores in real mode?
TAG : assembly
Date : October 13 2020, 04:00 AM , By : akhmad kresna
Bit Difference between 2 binary numbers in MIPS Assembly
Bit Difference between 2 binary numbers in MIPS Assembly
it fixes the issue XOR the bits together and then count the number of bits in the resulting number. To do that, you can loop over each bit, check if it is set (by using a bitmask and bitshift), and then increment a counter.I am purposefully leaving t
TAG : assembly
Date : October 12 2020, 09:00 PM , By : Jennifer Mensink Jen
How to find minimum signed value in array in assembly
How to find minimum signed value in array in assembly
hope this fix your issue Your algorithm doesn't make much sense. Your current code would correspond to something like this in C:
TAG : assembly
Date : October 12 2020, 08:00 PM , By : Megha
MIPS: load byte instruction
MIPS: load byte instruction
Hope that helps Assume that the processor is executing the following instruction: , 0x305502db - 7 = 0x305502d4
TAG : assembly
Date : October 12 2020, 07:00 PM , By : Pramod Sharma
How to deny or invert the memory address
How to deny or invert the memory address
wish helps you Successive addresses store a single byte that can hold values from 0 to 255. For the values from 0 to FFFFh that you want to store, you would need 131072 bytes (65536*2). In 16-bit mode (real address mode) a memory segment can have 655
TAG : assembly
Date : October 12 2020, 06:00 PM , By : StealthDragon
Reverse byte order in XMM or YMM register?
Reverse byte order in XMM or YMM register?
I wish this helpful for you Yes, use SSSE3 _mm_shuffle_epi8 or AVX2 _mm256_shuffle_epi8 to shuffle bytes within 16-byte AVX2 "lanes". Depending on the shuffle control vector, you can swap pairs of bytes, reverse 4-byte units, or reverse 8-byte units.
TAG : assembly
Date : October 12 2020, 03:00 PM , By : Frank
How to print ASCII array in Assembly?
How to print ASCII array in Assembly?
help you fix your problem I'm trying to make a car game in Assembly's graphic mode. For this, I have to print a car to the screen that I could move on the x-axis with the keyboard. I'm trying to print an ASCII array but it doesn't work. ,
TAG : assembly
Date : October 12 2020, 03:00 PM , By : Jabriil Mohamed
What does it mean by a branch penalty?
What does it mean by a branch penalty?
To fix this issue Without (correct) branch prediction, fetch doesn't know what to fetch next until the ALU decides which way a conditional or indirect branch goes. So it stalls until the branch executes in the ALU.Or with an incorrect prediction, the
TAG : assembly
Date : October 12 2020, 02:00 PM , By : Raj
Copying to arrays in NASM
Copying to arrays in NASM
Does that help I know about rep movsb but task has been to make it in loop byte after byte, I don't know if it could be done better way.
TAG : assembly
Date : October 12 2020, 02:00 PM , By : Abdul Basit
Is there any valid use for a sign-preserving left shift?
Is there any valid use for a sign-preserving left shift?
should help you out The Intel 80960 shli instruction behaves this way. The description says, “if the bits shifted out are not the same as the sign bit, an overflow fault is generated. If overflow occurs, the sign of the result is the same as the sign
TAG : assembly
Date : October 12 2020, 10:00 AM , By : 小谷知輝
How does CPU perform operation that manipulate data that's less than a word size
How does CPU perform operation that manipulate data that's less than a word size
may help you . x86 is not a word-oriented architecture at all. Instructions are variable length with no alignment."Word size" is not a meaningful term on x86; some people may use it to refer to the register width, but instruction fetch / decode has n
TAG : assembly
Date : October 12 2020, 10:00 AM , By : Milankumar Parmar
Check if user input leads to overflow
Check if user input leads to overflow
Any of those help I have a trouble on checking if the overflow flag is set after the user enter a unsigned number , TL;DR: It's how it's supposed to be.
TAG : assembly
Date : October 12 2020, 10:00 AM , By : TeeKay
Get C string length of a 16 or 32-byte fixed-size buffer? (XMM or YMM register width)
Get C string length of a 16 or 32-byte fixed-size buffer? (XMM or YMM register width)
help you fix your problem This is exactly how you implement strlen or memchr with AVX2. (For a fixed-size buffer where you know there will be a match somewhere in the buffer.)(Except now you have a redundant and).
TAG : assembly
Date : October 12 2020, 07:00 AM , By : Amit Singh
MIPS little or big endian when encoding as hex
MIPS little or big endian when encoding as hex
Any of those help In MIPS1, are hex values stored as little or big endian, for example add t1 t2 t3. Would this be stored as 00000001010010110100100000100000 0x014B4820 or 00000100000100101101001010000000 412D280 , ... or 0000010000010010110100101000
TAG : assembly
Date : October 12 2020, 03:00 AM , By : Newby Programmer
How to calculate the sum of a sequence of powers of 2 in x86?
How to calculate the sum of a sequence of powers of 2 in x86?
wish help you to fix your issue Base 2 is an extremely special case because computers use binary integers.2^n = 1
TAG : assembly
Date : October 11 2020, 10:00 PM , By : alondra
How to make timer works? Call int 4ah 5 seconds after start
How to make timer works? Call int 4ah 5 seconds after start
Any of those help DOSBox does not give access to the Real Time Clock. Functions like int 1Ah AH=06h (BIOS.SetSystemAlarm) and int 21h AH=2Dh (DOS.SetSystemTime) don't operate correctly!
TAG : assembly
Date : October 11 2020, 09:00 PM , By : Muhammed
Dword conversion to dec in little endian
Dword conversion to dec in little endian
may help you . I'd like to give you an alternative explanation to Kasper's answer:In the decimal system you can "store" values from 0 to 9 in each digit. To store larger numbers, you use multiple digits. The value of a number written as "1234" is cal
TAG : assembly
Date : October 11 2020, 07:00 PM , By : Ryan Smith
Is there a way to subtract packed unsigned doublewords, saturated, on x86, using MMX/SSE?
Is there a way to subtract packed unsigned doublewords, saturated, on x86, using MMX/SSE?
To fix the issue you can do If you have SSE4.1 available, I don't think you can get better than using the pmaxud+psubd approach suggested by @harold. With AVX2, you can of course also use the corresponding 256bit variants.
TAG : assembly
Date : October 11 2020, 07:00 PM , By : proshanta bhowmick
What does a program (the assembly) that uses a GPU even look like?
What does a program (the assembly) that uses a GPU even look like?
To fix the issue you can do What does code that uses a GPU even look like? Read much more about OpenCL (or, for Nvidia hardware only, about CUDA). Be also aware of OpenACC ! See also OpenCL related resources, and read some OpenCL book. Read some Open
TAG : assembly
Date : October 11 2020, 01:00 PM , By : platinumticket
Register content after execution
Register content after execution
wish of those help If you don't know what a specific assembler instruction does, always refer to the AVR Instruction Set Manual where all instructions are documented in detail.The brne instruction is a conditional branch ("BRanch if Not Equal").
TAG : assembly
Date : October 11 2020, 12:00 PM , By : Ravinesh Prakash
Explain how the flags work in conditional jumps in Assembly language
Explain how the flags work in conditional jumps in Assembly language
it fixes the issue The general idea is: there are some operations that set or clear individual flags - arithmetic, bitwise, comparisons. You are then free to perform conditional jumps based on the result of those operations.Let's consider the most ba
TAG : assembly
Date : October 11 2020, 12:00 PM , By : JoeJava
segmentation fault while trying to run graphics in yasm
segmentation fault while trying to run graphics in yasm
Does that help That's not x86-64 assembly but 16-bit assembly code. If you run this in a 64-bit OS I would expect a segmentation fault.This code needs to be run in real mode, probably in DOS. Today this probably means to run this code in DOSBOX or a
TAG : assembly
Date : October 11 2020, 08:00 AM , By : loybiddle
How to alloc a segment of memory using BIOS service?
How to alloc a segment of memory using BIOS service?
it should still fix some issue I am tryng to alloc a free segment of memory using INT 12h BIOS service but I couldn't. How alloc free memory segments using INT 12h? , INT 12h
TAG : assembly
Date : October 11 2020, 07:00 AM , By : Larry
Sum of two numbers (each 2 characters) in assembly 8086
Sum of two numbers (each 2 characters) in assembly 8086
it helps some times Your AffichageMesRes procedure is wrong. First, it calls Somme again, in spite both numbers have already been added in the main thread debut:. Second, using the DOS function AH=2 WRITE CHARACTER TO STANDARD OUTPUT expects the char
TAG : assembly
Date : October 11 2020, 06:00 AM , By : Byron Enoc Quesada J
How does LLVM handle the x86 flag register?
How does LLVM handle the x86 flag register?
it helps some times x86 flag status register is pretty target-specific and certainly should not be modeled in LLVM IR – it is too low-level. The same concepts could be modeled otherwise in target-neutral manner via llvm.uadd.with.overflow, etc.Also,
TAG : assembly
Date : October 11 2020, 05:00 AM , By : Ricardo Saavedra
How to read hardware input using emu8086
How to read hardware input using emu8086
To fix the issue you can do EMU8086 doesn't have any support for pass-through access to real hardware for guest code running inside the emulated 8086 PC.From what I've read, it doesn't even fully emulate PC hardware for that virtual guest machine (e.
TAG : assembly
Date : October 11 2020, 03:00 AM , By : Frank liao
Assigning value to the variable present in previous line using $ sign
Assigning value to the variable present in previous line using $ sign
it fixes the issue It appears that the developers were intent on using the I_AM macro to make symbols (that point at BYTEs, WORDs, and DWORDs) publicly accessible by other modules. The problem is that the I_AM macro doesn't allow you to specify the d
TAG : assembly
Date : October 11 2020, 02:00 AM , By : Amit Bukshet
Different Segments may collapse with each other
Different Segments may collapse with each other
will be helpful for those in need Setting the segment registers won't change the content of the memory (in fact in real mode memory is not accessed at all), it will only change the CPU's view of memory (the logical to linear translation). Having two
TAG : assembly
Date : October 11 2020, 01:00 AM , By : François Hurter
How do we track values of different registers while coding a large program
How do we track values of different registers while coding a large program
it should still fix some issue To answer the title question: yes, use comments to describe which logical "variable" is going to be in which register for a block of code. And document inputs/outputs/clobbers for each function. Like ;;; input: ds:si po
TAG : assembly
Date : October 10 2020, 10:00 PM , By : شمووووخ العز
Floating-point addition assembly algorithm
Floating-point addition assembly algorithm
Hope this helps You do not have to care about the sign of operands if you turn them to two's complement.
TAG : assembly
Date : October 10 2020, 07:00 PM , By : Fungoy
How would i make this a decryption instead of an encryption?
How would i make this a decryption instead of an encryption?
should help you out If this is a homework assignment, then it's actually quite a tricky one. (Though I may have overlooked a simple approach.)Let's focus on the effect this code has on memory. For simplicity I will assume you are not interested in th
TAG : assembly
Date : October 10 2020, 05:00 PM , By : Richard
Do two consecutive labels form two different basic block or are they the same in assembly
Do two consecutive labels form two different basic block or are they the same in assembly
should help you out Any label that's a branch target can be considered the start of a basic block.It doesn't really matter whether you look at it as falling through an empty basic block before getting to the "real" one, or whether you decide that bot
TAG : assembly
Date : October 10 2020, 01:00 PM , By : Puneet Jain
How to make audio driver for MS-DOS?
How to make audio driver for MS-DOS?
To fix this issue This is a bit difficult to achieve. The Tandy sound card works by writing data to port 0xc0. In order to emulate the sound card, you need to intercept writes to that port and handle them with your software. This is impossible on the
TAG : assembly
Date : October 10 2020, 09:00 AM , By : Danish Faraaz
Where is the time stamp located in a file? Want to change it using assembly
Where is the time stamp located in a file? Want to change it using assembly
it should still fix some issue Twenty years ago, when I was taking an assembly course, the professor gave a handout in which there was instruction of where the time stamp of a file was. With that information, I was able to change time stamp of files.
TAG : assembly
Date : October 10 2020, 08:00 AM , By : Raúl
8086 assembly register indirect MOV instruction
8086 assembly register indirect MOV instruction
I hope this helps you . In the current Intel® 64 and IA-32 Architectures Software Developer Manual this is described on page 509 of 4898:In 16-bit Intel assembly it is impossible to use the AX register for register indirect addressing.
TAG : assembly
Date : October 10 2020, 06:00 AM , By : Darko Borojevic
Which 2 cases aren't solved with this code?
Which 2 cases aren't solved with this code?
hope this fix your issue In the example that is written with the Hebrew version,my teacher wrote that the sequence appears twice.
TAG : assembly
Date : October 10 2020, 02:00 AM , By : dab21
Finding first and last capital letter in user input
Finding first and last capital letter in user input
will help you Input is to be taken from a-z or A-Z and the input is ended by an asterisk *. , First ask yourself these questions: What are capitals?
TAG : assembly
Date : October 09 2020, 08:00 PM , By : AMart

shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk