1. Correction

Change line 7 to:

OriginalNumber = sprintf( "%f", num )

Thanks, Unkmar.

~Tom

new topic     » topic index » view message » categorize

2. Correction

> lea edx, [edx + edx*4]
> lea edx, [edx*4]
> mov [ebx + edx*4 + #A0000], cl

should read:

lea edx, [edx + edx*4]
lea edx, [edx*8]
mov [ebx + edx*8 + #A0000], cl

...

lea means "load effective address", which would seem pretty useless,
except for the fact the memory addresses can contain some simple
calculations...

the preceding code evaluates to:

edx = (y + y*4)    (5*y)
edx = edx * 8      (40*y)
poke(ebx + edx*8 + #A0000, cl)
 = poke(x + 40*y*8 + #A0000, cl)
 = poke(x + 320*y + #A0000, cl)

--
                   _____         _____        _____
    ________      /\    \       /\    \      /\    \
   /   \    \    /  \____\     /  \____\    /  \____\
  /  _  \____\  /   / ___/_   /   /____/   /   / ___/_
 /  / \  |____|/   / /\____\ /    \    \  /   / /\____\
 \  \_/ /    / \   \/ / ___/_\     \    \ \   \/ / ___/_
  \    /____/   \    / /\    \\/\   \    \ \    / /\    \
   \   \    \    \   \/  \____\  \   \    \ \   \/  \____\
    \   \    \    \      /    /   \   \____\ \      /    /
     \   \____\    \    /    /     \  /    /  \    /    /
      \  /    /     \  /    /       \/____/    \  /    /
       \/____/       \/____/xseal at harborside.com\/____/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu