News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Capitals of Europe

Started by jj2007, September 25, 2020, 01:51:46 AM

Previous topic - Next topic

jj2007

Extract the attached archive to any folder, then run the exe; afterwards, click into the map to see an image showing the country's capital. Might be useful as a geography lesson ;-)

Congrats to those who are able to find and select Jan Mayen, the Faeroe Islands, the Isle of Man and Malta :tongue:

Vortex

Hi Jochen,

I turned off Windows Defernder but Windows 10 Version 1909 seems to block the application. The application displays a gray colored window disappearing after some seconds.

HSE

CPU Disasm
Address   Hex dump          Command                                  Comments
00401EEC  |.  58            POP EAX
00401EED  |.  FF32          PUSH DWORD PTR DS:[EDX]
00401EEF  |.  8B52 10       MOV EDX,DWORD PTR DS:[EDX+10]
00401EF2  |.  33C9          XOR ECX,ECX
00401EF4  |>  AC            /LODS BYTE PTR DS:[ESI]
00401EF5  |.  24 1F         |AND AL,1F
00401EF7  |.  8844CA 04     |MOV BYTE PTR DS:[ECX*8+EDX+4],AL  <<<<<<<<<<< Access violation when writing
00401EFB  |.  41            |INC ECX
00401EFC  |.  3B0C24        |CMP ECX,DWORD PTR SS:[ESP]
00401EFF  |.^ 72 F3         \JB SHORT 00401EF4
00401F01  |.  5A            POP EDX
00401F02  |.  5E            POP ESI
00401F03  |.  59            POP ECX
00401F04  |.  6A 00         PUSH 0                                   ; /Arg4 = 0
00401F06  |.  6A 00         PUSH 0                                   ; |Arg3 = 0
00401F08  |.  6A 07         PUSH 7                                   ; |Arg2 = 7
00401F0A  |.  68 78E14000   PUSH OFFSET 0040E178                     ; |Arg1 = ASCII "Capitals\Capitals.ini"
00401F0F  |.  E8 E83F0000   CALL 00405EFC                            ; \MapsAndPhotos.00405EFC
00401F14  |.  53            PUSH EBX
00401F15  |.  E8 300B0000   CALL <JMP.&user32.CreatePopupMenu>       ; [USER32.CreatePopupMenu
Equations in Assembly: SmplMath

jj2007

Quote from: HSE on September 25, 2020, 03:20:51 AM
00401EF7  |.  8844CA 04     |MOV BYTE PTR DS:[ECX*8+EDX+4],AL  <<<<<<<<<<< Access violation when writing

It does that if you don't follow the instructions. The exe needs the images.

Quote from: jj2007 on September 25, 2020, 01:51:46 AMExtract the attached archive to any folder, then create in that folder a subfolder Capitals and extract all files from this archive to that folder.

Quote from: Vortex on September 25, 2020, 03:10:46 AM
Hi Jochen,

I turned off Windows Defernder but Windows 10 Version 1909 seems to block the application. The application displays a gray colored window disappearing after some seconds.

Sorry for that, Erol. It works fine here...
This is Windows version 10.0, build 18362
The long story: Windows version 10.0 1903, build 18362
running on Intel(R) Celeron(R) CPU  N2840  @ 2.16GHz

Vortex

Hi Jochen,

My apologies, I didn't download the zip archive containing the images. Now, it works fine. Nice work :thumbsup:

HSE

Fantastic JJ  :thumbsup:

I almost have forgotten that Europe is an island.  :biggrin: :biggrin:
Equations in Assembly: SmplMath

jj2007

Thanks for testing, Erol & HSE. The map is old, unfortunately, it is very difficult to find good free maps on the web. So Russia is missing, and the Balkan is not quite up-to-date. For a demo it's ok, though ;-)

guga

Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

Siekmanski

Creative coders use backward thinking techniques as a strategy.

TimoVJL

Europe in WMF-format:
https://d-maps.com/carte.php?num_car=30080&lang=en
May the source be with you

avcaballero


jj2007

Quote from: TimoVJL on September 25, 2020, 05:24:49 PM
Europe in WMF-format:
https://d-maps.com/carte.php?num_car=30080&lang=en

Thanks, Timo. Nice but:
239358 svg
574416 wmf
36464 map (my format)

hutch--

If you don't mind a few tiny JPG artifacts, you can get Timo's image down to 33k and it still looks OK.

jj2007

Quote from: hutch-- on September 25, 2020, 11:21:59 PM
If you don't mind a few tiny JPG artifacts, you can get Timo's image down to 33k and it still looks OK.

It needs to be a vector format - the map is not an image. In the meantime I found a map of Europe, very nice and 25k only.

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding