From the course: Learning Assembly Language
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with floating point - Python Tutorial
From the course: Learning Assembly Language
Working with floating point
- [Instructor] The x86-64 bit chip has the built-in capability to operate on floating point numbers. These can be either single precision, four byte values double precision, eight byte values, and even extended precision of 10 bytes. The chip also supports a floating point stack which we'll be using. For the purposes of getting an understanding of floating point, we'll work with double precision. There's a reasonable amount of code here so I prepared it in advance. At lines three to nine we're declaring some working data, including a string that we'll use to display our values. At lines 10 to 13, we have four variables, rval one to four, initialized to be floating point or real numbers. We declare these, as codewords. We've included in the initial code at lines 19 and 20 a call to get the console output handle, which we store in hout. We'll use this to show the output of our calculations In order to be able to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Calling subprograms9m 20s
-
(Locked)
Working with floating point6m 23s
-
(Locked)
Managing arrays4m 43s
-
(Locked)
Adding plugs to the Enigmatic encryptor2m 54s
-
(Locked)
The Windows API5m 4s
-
(Locked)
More on the Windows API4m 20s
-
(Locked)
Calling the printf external function1m 33s
-
(Locked)
Executing system commands1m 54s
-
(Locked)
Jump tables3m 29s
-
(Locked)
Reading data files6m 33s
-
-
-
-
-