copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
MASM assembly - REAL4 float instructions - Stack Overflow I'm trying to store float numbers in an array using a REAL4 data type What are the correct instructions for the following? Getting input from user and storing in an array? For example doing this but
Assembly data types limits and examples - Stack Overflow SDWORD - 32 bit signed integer FWORD - 48 bit integer QWORD - 64 bit integer TBYTE - 80 bit (10 byte) integer REAL4 - 32 bit (4 byte) short real REAL8 - 64 bit (8 byte) long real REAL10 - 80 bit (10 byte) extended real Just as the title says, I'm hoping to get information on the upper lower limits of each of these data types, and maybe some
x86 - Output REAL 4 value in Assembly - Stack Overflow I'm creating an assembly program (intel 8086 masm32)which contains some simple division And everything was working until the division produced a float Because when you load the float to the eax
Return a float from a 64-bit assembly function that uses x87 FPU I am trying to make a program that calculates equations (what equation doesn't matter currently) that use 64-bit registers, floats, and coprocessor instructions Unfortunately I don't know how to a
MASM Assembly: Storing a floating point - Stack Overflow There are basically three different floating-point types in MASM: REAL4 This is the equivalent of C's float type, and it is a single-precision floating point value, stored in 4 bytes It has a range of ±1 7×10 38, with 6 significant digits The format is (from high bit to low bit): sign bit, 8-bit exponent, 23-bit mantissa (The leading 1 is implicit ) REAL8 This is the equivalent of C's
Calculating an expression in assembly code - Stack Overflow I have written an assembly code for calculating area mentioned in the following formula I feel I have overcomplicated the code Need suggestions if the same could be done in a simpler way I am
MASM Assembly: Floating-Point Calculations - Stack Overflow You're using div for your division; I believe div is an instruction that works on integer values, and you're doing floating point calculations That's why you're getting the wrong result There's a few ways you can do floating point arithmetic on modern x86 CPUs: Using the x87 floating point instructions There's all sorts of ways you can do it with SIMD SSE I'm sure AVX offers some
assembly - Float data example using Masm - Stack Overflow I think it's done with data myVar REAL4 1 0f code Floating point values are REAL4, REAL8 or REAL10 in Masm Expressions (such as #define myConst 1 0f) are done with myConst EQU 1 0 These are not specific to any section
Assign a decimal value to a REAL8 local variable using MASM If you're returning in legacy x87 at all, you might as well store constants a REAL4 if they're exactly representable (like 1 5, which is expressible as a fraction with a power-of-2 denominator, 3 2, but not 1 1 which isn't) The hardware expands to an 80-bit register for free when you load a real4 or real8 (Unlike if you used movsd xmm0, num)