A and B are close enough together that we can ignore the curvature of the Earth and still get a good result so just use basic trigonometry.
A is North of B by 48d30m - 48d00m = 0d30m = 0.5d
A is East of B by 6d20m - 5d20m = 1d00m = 1.0d
North is therefore off to the bottom left of the grid at an ...
Search found 96 matches
- Wed Dec 09, 2009 1:10 pm
- Forum: Coding Questions
- Topic: Math related question, level 2
- Replies: 10
- Views: 2021
- Sun Jul 19, 2009 5:38 pm
- Forum: Coding Questions
- Topic: Factorial
- Replies: 10
- Views: 2377
- Thu Apr 16, 2009 2:59 pm
- Forum: Coding Questions
- Topic: Assembler optimizing - simple questions
- Replies: 13
- Views: 3772
Probably faster because it avoids the jump but uses edx register as well:
Code: Select all
!mov eax,MyValue
!cdq
!xor eax,edx
!sub eax,edx
'eax now contains ABS(MyValue)
- Mon Apr 13, 2009 10:27 pm
- Forum: Coding Questions
- Topic: Assembler optimizing - expert section
- Replies: 12
- Views: 2770
- Mon Apr 13, 2009 9:44 pm
- Forum: Coding Questions
- Topic: can this FPU assembly code be optimised
- Replies: 7
- Views: 1753
Get Ollydbg from here:also I want to see the FPU stack what do I do
http://www.ollydbg.de/
Once installed, you place a !INT 3 opcode just ahead of the code which is of interest and the debugger will start and allow you to single step while showing you the stack and all registers and a lot more.
- Mon Apr 13, 2009 9:26 pm
- Forum: Coding Questions
- Topic: Assembler optimizing - simple questions
- Replies: 13
- Views: 3772
- Fri Apr 10, 2009 5:37 pm
- Forum: Coding Questions
- Topic: can this FPU assembly code be optimised
- Replies: 7
- Views: 1753
If you're going to take ASM programming seriously then you need to know what instructions are available and what they do.
Get the manuals from intel, they're free downloads:
http://www.intel.com/products/processor/manuals/
Volumes 2A and 2B are the ones you need most of the time as they describe all ...
Get the manuals from intel, they're free downloads:
http://www.intel.com/products/processor/manuals/
Volumes 2A and 2B are the ones you need most of the time as they describe all ...
- Fri Apr 10, 2009 12:17 pm
- Forum: Coding Questions
- Topic: can this FPU assembly code be optimised
- Replies: 7
- Views: 1753
You can add the number without loading it from memory first:
Code: Select all
a.d = 3
FLDPI 'get pi
FADD a 'add in the variable direct from memory
FSTP a 'store the result and clear up the stack
Debug a
- Tue Mar 31, 2009 4:44 pm
- Forum: Tricks 'n' Tips
- Topic: SendKeys Procedure
- Replies: 11
- Views: 10199
- Tue Nov 18, 2008 12:18 am
- Forum: Tricks 'n' Tips
- Topic: StrE(FPnumber, sig_digits)
- Replies: 5
- Views: 2838
- Sat Nov 15, 2008 7:09 pm
- Forum: Coding Questions
- Topic: Fastest way to get the decimals of a float?
- Replies: 28
- Views: 3781
- Sat Nov 15, 2008 4:53 pm
- Forum: Coding Questions
- Topic: Fastest way to get the decimals of a float?
- Replies: 28
- Views: 3781
- Sat Nov 15, 2008 3:14 pm
- Forum: Coding Questions
- Topic: Fastest way to get the decimals of a float?
- Replies: 28
- Views: 3781
- Sat Nov 15, 2008 1:54 pm
- Forum: Coding Questions
- Topic: Fastest way to get the decimals of a float?
- Replies: 28
- Views: 3781
- Fri Nov 14, 2008 1:10 pm
- Forum: Coding Questions
- Topic: Fastest way to get the decimals of a float?
- Replies: 28
- Views: 3781