Recent Posts

Pages: 1 ... 8 9 [10]
92
The Colosseum / Re: Russia World Cup - Funny Pics
« Last post by K_F on June 17, 2018, 08:37:36 PM »
Shame.. The England team are having a hard time..  8)

93
UASM Assembler Development / Re: #IF
« Last post by jj2007 on June 17, 2018, 08:25:46 PM »
ToutEnMasm solved this problem by a simple definition in "Full SDK Include Project"

This was my spontaneous reaction, too, but:

@JJ: the windows header files is a house of cards that builds heavily upon the existence (definition) of symbols. If we define all of them, the result will not be the same, since we will include things we are not interested in. In case we do, we accept that all generated inc files will need to be corrected by hand (~2000 files for Win10)
94
The Soap Box / Re: Happy birthday Hutch
« Last post by jj2007 on June 17, 2018, 08:23:00 PM »
You are now officially a cantankerous old man.

My highlighting ;)

Happy Birthday, Hutch - don't change too much, and don't exaggerate with the whisky :t
95
The Soap Box / Re: Happy birthday Hutch
« Last post by dedndave on June 17, 2018, 08:09:48 PM »
Happy Birthday, Old Timer !!!  :biggrin:
96
The Soap Box / Re: Happy birthday Hutch
« Last post by hutch-- on June 17, 2018, 07:04:55 PM »
Gratsie,

I have just come back from a birthday party my neighbours did for me at my local pub which has been a lot of fun. We fed everyone the cake and there is still about half of it left so that is mine. I have not opened all of the presents yet but I know there is a bottle of 15 year old Chivas Regal and a number of home cooked biscuits as everyone knows I am a hopeless cook.
97
The Soap Box / Happy birthday Hutch
« Last post by Caché GB on June 17, 2018, 06:23:56 PM »
  You are now officially a cantankerous old man.

  Take joy in knowing that if MASM were a martial art, the day after tomorrow,
  you would be grading for your 8th Dan. Oss!

  If your 3D printer can bake, here is the G-code for a chocolate mud-cake.
  G-code is embedded so you will need to use your MASM ninja skills to extract
  and decrypt.

  Have a great day.
98
UASM Assembler Development / Re: #IF
« Last post by LiaoMi on June 17, 2018, 06:19:15 PM »
Hello,

ToutEnMasm solved this problem by a simple definition in "Full SDK Include Project"

Code: [Select]
_WIN32_WINNT equ 00000602h
NTDDI_VERSION equ 06020000h
WINVER equ 06020000h

_WIN64 equ 1
_INTEGRAL_MAX_BITS equ 128 ;-------------
_MSC_VER     equ 1500   ;win xp sp2  reponse vc++
_WIN32_IE equ 800h ;internet explorer 7
_MSC_FULL_VER equ 150021022
__midl equ 0
_WIN32_FUSION equ 0
_WIN32 equ
DBG equ 0 ;ou 1
__GOT_SECURE_LIB__ equ 1 ;a chercher
;_WIN32 equ 1
__RPCNDR_H_VERSION__ equ 100h ;-- ?
IFDEF _WIN64
PPVREGISTER TEXTEQU <R11>
ELSE
PPVREGISTER TEXTEQU <edx>
ENDIF

;----------------------------------------------------------
_X86_ equ 1
__STDC__ equ 1
ISOLATION_AWARE_ENABLED equ 0
_DBG_MEMCPY_INLINE_ equ 0
_MSC_EXTENSIONS equ  1    ; DUMMYUNIONNAME vide
OEMRESOURCE equ 1 ;various resource system IDC_..
_M_IX86 equ 1 ;x86 C compiler target architecture ,no masm
;-----------------------------------
;WINAPI_PARTITION_APP equ 1    ;sdkddkver
;_WIN32_WINNT_WINBLUE equ 603h ;c++
;NTDDI_WINBLUE equ 6030000h ;c++
;----------------------------------
include sdkddkver.sdk ;define _WIN32_WINNT and _WIN32_IE
;----------------- change NTDDI_WINXPSP3 as needed -----------------
NTDDI_WINLH equ NTDDI_WIN2K ;CertSetCertificateContextProperty Windows 2000 Professional minimum system required
_WIN32_WINDOWS equ _WIN32_WINNT_WINXP
_WIN32_WCE equ _WIN32_WINNT_WINXP
WINXP equ NTDDI_WINXP ;minimum xp demandй par rpcdce.h
NTDDI_WXP  equ NTDDI_WINXPSP1
NTDDI_XPSP2 equ NTDDI_WINXPSP2
NTDDI_WIN2003 equ NTDDI_WIN2K ;pas sur
_NT_TARGET_VERSION_WIN7 equ _WIN32_IE_WIN7 ;Windows 7 minimum

This is quite enough to forget about this variable  :biggrin: Or are there any hidden features that I have overlooked?
99
UASM Assembler Development / Re: #IF
« Last post by Biterider on June 17, 2018, 05:51:00 PM »
Hello
@Habran: thanks for the exe. I tested it successfully. I tried other combinations like
Code: [Select]
if 1 and defined(Symbol) and (Symbol eq 1)   ;Symbol not definedand confirmed that it is just a hack for only 1 situation.  ;)

If we want to implement something like an "early return of conditional sentences", when the final logical outcome in a given analysis state is known, without having to check the remaining conditions, more work has to be done. BTW, HLLs do it that way.

Another example with “or” is
Code: [Select]
if 1 or (Symbol eq 1)This expression should be TRUE, even if symbol is not defined.
 
The other side of the coin are the arguments of JJ & Habran: compatibility. ML does not work that way. It strictly analyse each condition to finally get the result.
I don’t think we will brake existing software, but if we write new one, like the header file translation, ML will not be able to assemble it because of these new features.
ATM, I do not know which way is the best. Maybe someday we'll have to leave ML behind and evolve. Other opinions or ideas?

Biterider
100
The Workshop / Re: Int128 in assembler
« Last post by bigbadbob on June 17, 2018, 03:40:23 PM »
The invoke style macro writes the first 4 args to shadow space as well as the registers and the rest directly to the correct stack locations. It also supports quoted text. The direct register call macros only write up to the first 4 registers so you can do both and in a very efficient manner.

I read the macro source code and I don't think that invoke writes to the shadow space, it actually appears to work as I expected.

Please note that I installed MASM32 and MASM64 on my current computer in 2017.

Pages: 1 ... 8 9 [10]