The MASM Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
MASM32 Downloads
Home
Help
Search
Login
Register
The MASM Forum
»
64 bit assembler
»
64 Bit Assembler
»
TYPEDEF Madness
« previous
next »
Print
Pages: [
1
]
Author
Topic: TYPEDEF Madness (Read 3362 times)
hutch--
Administrator
Member
Posts: 10583
Mnemonic Driven API Grinder
TYPEDEF Madness
«
on:
October 05, 2016, 01:32:38 PM »
How to ensure that no-one ever understands what the content of an include file is supposed to do.
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
include \masm32\include64\masm64rt.inc
WOTTA_LOTTA_ROT typedef PTR
INT_UNKNOWN_SIZE_AND_NAME_BOVINE_EXCREMENT typedef PTR WOTTA_LOTTA_ROT
YETTA_NUTHA_MINDLESS_TYPEDEF_NAME typedef PTR INT_UNKNOWN_SIZE_AND_NAME_BOVINE_EXCREMENT
WTF_IS_THIS_PILE_OF_CRAP typedef YETTA_NUTHA_MINDLESS_TYPEDEF_NAME
UNKNOWABLE_TYPE typedef PTR WTF_IS_THIS_PILE_OF_CRAP
.code
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
entry_point proc
; bsvar# = bullsh*t variable
LOCAL bsvar1 :UNKNOWABLE_TYPE
% echo +++++++++++++++++++++++++++++++++
% echo UNKNOWABLE_TYPE = varsize(UNKNOWABLE_TYPE) bytes
% echo +++++++++++++++++++++++++++++++++
mov rax, 12345678
mov bsvar1, rax
conout str$(rax),lf
waitkey
invoke ExitProcess,0
ret
entry_point endp
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
end
Logged
hutch at movsd dot com
http://www.masm32.com
jj2007
Member
Posts: 13957
Assembly is fun ;-)
Re: TYPEDEF Madness
«
Reply #1 on:
October 05, 2016, 01:40:54 PM »
Glad to see we can agree on something, Hutch :icon14:
Logged
Masm32 Tips, Tricks and Traps
Print
Pages: [
1
]
« previous
next »
The MASM Forum
»
64 bit assembler
»
64 Bit Assembler
»
TYPEDEF Madness