News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Uncle Remus Tales

Started by Mikl__, May 26, 2017, 08:43:47 PM

Previous topic - Next topic

learn64bit

#120
Someone Help Me!
Microsoft Windows 7 Ultimate 64-bit us with Service Pack 1
Microsoft Windows SDK v7.0
  CMD Shell
   #Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
   #.
   #Targeting Windows 7 x64 DEBUG
   #
   #
   #C:\Program Files\Microsoft SDKs\Windows\v7.0>Setenv /Release
    #Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
    #.
    #Targeting Windows 7 x64 RELEASE
    #
    #
    #C:\Program Files\Microsoft SDKs\Windows\v7.0>cd \learnASM
    #
    #C:\learnASM>ml64 08.asm /link /subsystem:console /defaultlib:kernel32.lib /defaul
    #tlib:user32.lib /entry:WinMain
    #Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01
    #Copyright (C) Microsoft Corporation.  All rights reserved.
    #
    # Assembling: 08.asm
    #08.asm(2) : fatal error A1000:cannot open file : win64a.inc
    #
    #C:\learnASM>


after downloaded Mikl__'s include.zip
C:\learnASM>ml64 /Cp /c 08.asm
Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Assembling: 08.asm
08.asm(14) : error A2006:undefined symbol : SMALL_RECT
08.asm(14) : error A2195:parameter or local cannot have void type
08.asm(15) : error A2006:undefined symbol : CONSOLE_CURSOR_INFO
08.asm(15) : error A2195:parameter or local cannot have void type
08.asm(16) : error A2006:undefined symbol : INPUT_RECORD
08.asm(16) : error A2195:parameter or local cannot have void type
08.asm(34) : error A2006:undefined symbol : SMALL_RECT
08.asm(40) : error A2006:undefined symbol : SMALL_RECT
08.asm(63) : error A2006:undefined symbol : INPUT_RECORD
08.asm(65) : error A2006:undefined symbol : INPUT_RECORD
08.asm(67) : error A2006:undefined symbol : INPUT_RECORD

C:\learnASM>


after downloaded Mikl__'s Win x64 Tutorial #38 Microsoft Windows 7 Ultimate 64-bit us with Service Pack 1
Microsoft Windows SDK v7.0
  CMD Shell
   #Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
   #.
   #Targeting Windows 7 x64 DEBUG
   #
   #
   #C:\Program Files\Microsoft SDKs\Windows\v7.0>Setenv /Release
    #Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
    #.
    #Targeting Windows 7 x64 RELEASE
    #
    #
    #C:\Program Files\Microsoft SDKs\Windows\v7.0>cd \learnASM
    #
    #C:\learnASM>ml64 /Cp /c 08.asm
    #Microsoft (R) Macro Assembler (x64) Version 9.00.30729.01
    #Copyright (C) Microsoft Corporation.  All rights reserved.
    #
    # Assembling: 08.asm
    #
    #C:\learnASM>link /subsystem:console /largeaddressaware:no /align:16 /entry:WinMai
    #n 08.obj
    #Microsoft (R) Incremental Linker Version 9.00.30729.01
    #Copyright (C) Microsoft Corporation.  All rights reserved.
    #
    #LINK : warning LNK4108: /ALIGN specified without /DRIVER; image may not run
    #
    #C:\learnASM>

Mikl__

Hi, learn64bit!
universal bat-file
cls
set masm64_path=\masm44\
set filename=%~n1
if exist errors.txt del errors.txt

call :read_settings %filename%
@echo %kind_of_file%
goto %kind_of_file%
:CONSOLE
if exist %filename%.exe del %filename%.exe
if exist %filename%.obj del %filename%.obj
if exist errors.txt del errors.txt
%masm64_path%bin\ml64 /Cp /c /I"%masm64_path%Include" %filename%.asm >> errors.txt
if errorlevel 1 exit
if exist %1.rc (
%masm64_path%bin\RC /r /i"%masm64_path%\Include" %filename%.rc >> errors.txt
%masm64_path%bin\link /LIBPATH:"%masm64_path%Lib" ^
/LARGEADDRESSAWARE:NO /BASE:0x400000 /STUB:%masm64_path%bin\stubby.exe ^
/SECTION:.text,W /ALIGN:16 /entry:WinMain /MERGE:.rdata=.text ^
/fixed /nocoffgrpinfo %filename%.obj %filename%.res >> errors.txt
if exist %1.res del %1.res
) else (
%masm64_path%bin\link /SUBSYSTEM:CONSOLE /LIBPATH:"%masm64_path%Lib" ^
/entry:WinMain %filename%.obj /LARGEADDRESSAWARE:NO ^
/ALIGN:16 /SECTION:.text,W /BASE:0x400000 /STUB:%masm64_path%\bin\stubby.exe >> errors.txt
)
if errorlevel 1 exit
del %filename%.obj

goto exit1
:GUI
if exist %filename%.exe del %filename%.exe
if exist %filename%.obj del %filename%.obj
if exist errors.txt del errors.txt
%masm64_path%bin\ml64 /Cp /c /I"%masm64_path%Include" %filename%.asm >> errors.txt
if errorlevel 1 exit
if exist %1.rc (
%masm64_path%bin\RC /r /i"%masm64_path%\Include" %filename%.rc >> errors.txt
%masm64_path%bin\link /LIBPATH:"%masm64_path%Lib" ^
/LARGEADDRESSAWARE:NO /BASE:0x400000 /STUB:%masm64_path%bin\stubby.exe ^
/SECTION:.text,W /ALIGN:16 /entry:WinMain /MERGE:.rdata=.text ^
/fixed /nocoffgrpinfo %filename%.obj %filename%.res >> errors.txt
if exist %1.res del %1.res
) else (
%masm64_path%bin\link /SUBSYSTEM:WINDOWS /LIBPATH:"%masm64_path%Lib" ^
/LARGEADDRESSAWARE:NO /BASE:0x400000 /STUB:%masm64_path%bin\stubby.exe ^
/SECTION:.text,W /ALIGN:16 /entry:WinMain /MERGE:.rdata=.text ^
/fixed /nocoffgrpinfo %filename%.obj >> errors.txt
)
if errorlevel 1 exit
goto exit1
:DLL
if exist %filename%.dll del %filename%.dll
%masm64_path%bin\ml64 /c /Cp /I %masm64_path%include %filename%.asm >> errors.txt
if errorlevel 1 exit
if exist %1.rc (
%masm64_path%bin\RC /r  %filename%.rc >> errors.txt
if errorlevel 1 exit
%masm64_path%bin\link /SUBSYSTEM:WINDOWS /LIBPATH:%masm64_path%lib ^
/ENTRY:DllMain /DLL /DLL /section:.bss,S /stub:%masm64_path%bin\stubby.exe  ^
%filename%.obj %filename%.res /DEF:%filename%.def >> errors.txt
if exist %1.res del %1.res
) else (
%masm64_path%bin\link /SUBSYSTEM:WINDOWS /LIBPATH:%masm64_path%lib ^
/ENTRY:DllMain /DLL /DLL /section:.bss,S /stub:%masm64_path%bin\stubby.exe  ^
%filename%.obj /DEF:%filename%.def >> errors.txt
)
if errorlevel 1 exit
del %filename%.exp
:exit1
del %filename%.obj
del errors.txt
:: %filename%.exe
exit
:read_settings
for /f "eol=# tokens=2-3" %%A in (%filename%.asm) do (
set kind_of_file=%%A
if %%B == # exit /b )
exit /b
lib-files

Mikl__


learn64bit

I don't have the 'stubby.exe' file....
Sir, can you upload your 'masm64_path' folder.
Your masm64 examples are great. Which makes learning about and exploring masm64 programming very easy.

Mikl__


Mikl__


Mikl__


Mikl__

part 4-th
rename files to bin.zip.001, bin.zip.002, bin.zip.003, bin.zip.004  place in one directory and unzip
https://wasm.in/threads/skazki-djadjushki-rimusa.31832/

jj2007

Hi Mikl,
Google translated your Russian thread for me, with some glitches but still with remarkable quality. Compliments for your great work :thumbsup:

Mikl__

grazie mille signore jj2007

aw27

Mr. Skazki Djadjushki Rimusa, famous Russian writer.

https://ruslania.com/en/books/284493-the-tales-of-uncle-remus-skazki-djadjushki-rimusa/

Mikl__

#131
Hi, AW!
"Famous Russian writer" is Joel Chandler Harris (December 9, 1848 - July 3, 1908). He was an American journalist, fiction writer, and folklorist best known for his collection of Uncle Remus stories.

Walt Disney's "Song of the South" (1946), a combination of live action and animation with James Baskett as Remus

Splash Mountain is a long flume at Disneyland, Tokyo Disneyland, and the Magic Kingdom at the Walt Disney World Resort, based on the characters, stories, and songs from the film "Song of the South". Each installation begins with a peaceful outdoor float-through that leads to indoor dark ride segments, with a climactic steep drop into a "briar patch" followed by an indoor finale. The drop is 50 feet.

The plot behind Splash Mountain is a composite of several Uncle Remus stories. Each ride presents scenes taken from the animated segments of "Song of the South", telling the story of Br'er Rabbit.

learn64bit

Great! I use 7-Zip to get bin.zip.

Mikl__


aw27

Thank you for the explanation! I had never heard about those stories and I am not aware of the American culture in general. I always though Americans have no culture at all, but this is a stereotype.