From: hutch-- on
Wannabee,

> Sound useful. Yes, But this is under XP right?

The only sound you nneed to be concerned with is the sound of you
chewin that hat. Don't think that Herbert or Wolfgang will save you,
you still have to eat that hat no matter what.

Time to stop manually self deluding yourself and start chewin that
hat.


From: Herbert Kleebauer on
Jim Carlock wrote:
>
> What happens if you...
>
> (1) Right-click upon cmd.exe, and select copy from the menu.
> (2) Use Explorer to navigate to a temporary folder, then right-
> click once again, but select paste.
> (3) Change the name of the newly created cmd.exe to tmp_cmd.exe.
> (4) Right-click upon that file and click on "Properties".
> (5) Click upon the "Compatibility" tab.
> (6) Set it to run as Windows 95 compatibility.
> (7) Save the changes and then run your batch file inside of that
> tmp_cmd.exe prompt.

I don't understand. The purpose of the batch is only to generate
the getv.exe binary using echo commands to generate getv.com and
getv.com to write getv.exe. There is nothing which needs "Windows 95
compatibility". getv.exe itself is a normal 32 bit exe file which
doesn't use the command interpreter cmd.exe at all.


winmain::
move.l #VersionInfo,-(sp)
jsr.l (GetVersionExA)

move.l #text1,r5
move.l #VersionInfo+4,r6

move.l #4,r4
_10: bsr.l putstring
move.l (r6),r0
addq.l #4,r6
bsr.l hexout_r0
dec.l r4
bne.b _10
bsr.l putstring
move.l r6,r5
bsr.l putstring

moveq.l #0,-(sp)
jsr.l (ExitProcess) ; exit program

text1: dc.b "set ver_major=",0
text2: dc.b "set ver_minor=",0
text3: dc.b "set ver_build=",0
text4: dc.b "set ver_platf=",0
text5: dc.b "set ver_csd=",0

hexout_r0:
move.l r5,-(sp)
move.l #8,r2
move.l #_buf,r5
_20: rol.l #4,r0
move.b r0,r1
and.b #$0f,r1
cmp.b #9,r1
bls.b _10
add.b #'a'-10-'0',r1
_10: add.b #'0',r1
move.b r1,(r5)
inc.l r5
dbf.l r2,_20

move.l #_buf,r5
bsr.l putstring
move.l (sp)+,r5
rts.l
_buf: blk.b 8,0
dc.b $0d,$0a,0


putstring:
_20: move.b (r5),r0
inc.l r5
or.b r0,r0
beq.b _10
bsr.l putc
br.b _20
_10: rts.l

putc: move.b r0,_buf
eor.l r0,r0
add.l _handle,r0
bne.b _10
moveq.l #-11,-(sp)
jsr.l (GetStdHandle)
move.l r0,_handle
_10: moveq.l #0,-(sp)
move.l #_count,-(sp)
moveq.l #1,-(sp)
move.l #_buf,-(sp)
move.l r0,-(sp)
jsr.l (WriteFile)
or.l r0,r0
bne.b _20
_30: moveq.l #0,-(sp)
move.l #_text,-(sp)
move.l #_text,-(sp)
moveq.l #0,-(sp)
jsr.l (MessageBoxA)
moveq.l #0,-(sp)
jsr.l (ExitProcess)
_20: cmp.l #1,_count
bne.b _30
rts.l

_buf: dc.b 0
_text: dc.b 'write error',0
even4
_handle:dc.l 0
_count: dc.l 0

VersionInfo:
dc.l 148
blk.l 4
blk.b 128
From: Herbert Kleebauer on
hutch-- wrote:


> For you to try this challenge on behalf of Wannabee you have to be
> able to do what Wannabee promised to do and that is match ANYTHING
> that MASM can do with Betov's assembler.

I don't enter this challenge, I only what this challenge
finally to start and therefore we need from you:


Come up with 10-20 diffrent examples of _complete_ (short) MASM
programs, and I will write the RosAsm equivalents. And lets compare
them. All called code must be present, except for Win32 API code.
From: hutch-- on
The plot thickens, for Herbert to get his ERRRMAYYYYZING 922 byte exe
file he created a dos memory image COM file with a compressed version
of a 1024 byte PE file with a message box and a dos stub with,

"Nice to meet somebody who is still using DOS,
but his program requires Win32."

written in it. It is written to disk with the name ___.com

When are you going to start chewin Wannabee's hat ?

For anyone interested, dump the following HEX into QE from masm32 and
save it as binary with the file menu command "Save hEX as Binary".


; H:\asm4\herbert\herbie.exe 1024 bytes

00000000 :4D 5A 60 01 01 00 00 00 - 04 00 00 00 FF FF 00 00
00000010 :60 01 00 00 00 00 00 00 - 40 00 00 00 00 00 00 00
00000020 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000030 :00 00 00 00 00 00 00 00 - 00 00 00 00 A0 00 00 00
00000040 :0E 1F BA 0E 00 B4 09 CD - 21 B8 01 4C CD 21 4E 69
00000050 :63 65 20 74 6F 20 6D 65 - 65 74 20 73 6F 6D 65 62
00000060 :6F 64 79 20 77 68 6F 20 - 69 73 20 73 74 69 6C 6C
00000070 :20 75 73 69 6E 67 20 44 - 4F 53 2C 0D 0A 62 75 74
00000080 :20 68 69 73 20 70 72 6F - 67 72 61 6D 20 72 65 71
00000090 :75 69 72 65 73 20 57 69 - 6E 33 32 2E 0D 0A 24 00
000000A0 :50 45 00 00 4C 01 01 00 - 50 79 A5 36 00 00 00 00
000000B0 :00 00 00 00 E0 00 0F 01 - 0B 01 05 0C 00 02 00 00
000000C0 :00 00 00 00 00 00 00 00 - 92 10 00 00 00 10 00 00
000000D0 :00 20 00 00 00 00 40 00 - 00 10 00 00 00 02 00 00
000000E0 :04 00 00 00 00 00 00 00 - 04 00 00 00 00 00 00 00
000000F0 :00 20 00 00 00 02 00 00 - 00 00 00 00 02 00 00 00
00000100 :00 00 10 00 00 10 00 00 - 00 00 10 00 00 10 00 00
00000110 :00 00 00 00 10 00 00 00 - 00 00 00 00 00 00 00 00
00000120 :10 10 00 00 3C 00 00 00 - 00 00 00 00 00 00 00 00
00000130 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000140 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000150 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000160 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000170 :00 00 00 00 00 00 00 00 - 00 10 00 00 10 00 00 00
00000180 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000190 :00 00 00 00 00 00 00 00 - 2E 74 65 78 74 00 00 00
000001A0 :E4 00 00 00 00 10 00 00 - 00 02 00 00 00 02 00 00
000001B0 :00 00 00 00 00 00 00 00 - 00 00 00 00 20 00 00 E0
000001C0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000001D0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000001E0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000001F0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000200 :60 10 00 00 00 00 00 00 - 84 10 00 00 00 00 00 00
00000210 :58 10 00 00 00 00 00 00 - 00 00 00 00 4C 10 00 00
00000220 :00 10 00 00 7C 10 00 00 - 00 00 00 00 00 00 00 00
00000230 :6E 10 00 00 08 10 00 00 - 00 00 00 00 00 00 00 00
00000240 :00 00 00 00 00 00 00 00 - 00 00 00 00 55 53 45 52
00000250 :33 32 2E 64 6C 6C 00 00 - 60 10 00 00 00 00 00 00
00000260 :00 00 4D 65 73 73 61 67 - 65 42 6F 78 41 00 4B 45
00000270 :52 4E 45 4C 33 32 2E 64 - 6C 6C 00 00 84 10 00 00
00000280 :00 00 00 00 00 00 45 78 - 69 74 50 72 6F 63 65 73
00000290 :73 00 6A 00 68 AE 10 40 - 00 68 BE 10 40 00 6A 00
000002A0 :FF 15 00 10 40 00 6A 00 - FF 15 08 10 40 00 4D 69
000002B0 :6E 69 6D 75 6D 20 57 69 - 6E 64 65 6C 61 00 20 20
000002C0 :2D 2D 2D 20 41 73 73 65 - 6D 62 6C 65 72 20 50 75
000002D0 :72 65 20 61 6E 64 20 53 - 69 6D 70 6C 65 20 2D 2D
000002E0 :2D 20 20 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000002F0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000300 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000310 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000320 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000330 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000340 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000350 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000360 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000370 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000380 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
00000390 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003A0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003B0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003C0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003D0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003E0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
000003F0 :00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00

PS: Just to prove that I am still a nice guy in the face of stupidity,
poor Herbert can also soak Wannabee's hat in schnaps so he can get
half pissed while chewin it.

From: Frank Kotler on
hutch-- wrote:

....
> The only sound you nneed to be concerned with is the sound of you
> chewin that hat. Don't think that Herbert or Wolfgang will save you,
> you still have to eat that hat no matter what.

What part of "not a link, post the entire code" don't you understand?

I can't blame you for not bothering to do that. The whole "point" of
your project is so we *don't* have to clutter up each and every file
with that cruft. But it *was* part of the "promise" Wannabee (and
others, now) make to eat that hat. That was how I remembered it, and the
repost confirms it. If you *don't* do it, you look pretty silly claiming
you won, when you didn't even "show up in the ring".

Best,
Frank
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Prev: A last Linux/x graphics demo
Next: MASM to NASM (or other)