News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MasmBasic

Started by jj2007, October 06, 2009, 08:24:57 PM

Previous topic - Next topic

dedndave

it may be browser-specific - i am using firefox

hutch--

JJ,

Just post it at the start of this topic and delete the other one, saves the messing around. I get the same error message and I and the amin here so the file seems not to be at that URL any longer.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

Quote from: hutch-- on October 07, 2009, 09:08:02 AM
JJ,

Just post it at the start of this topic and delete the other one, saves the messing around. I get the same error message and I and the amin here so the file seems not to be at that URL any longer.

OK, done. Anybody having problems with the fact that SSE2 and ml 6.15+ are needed?

hutch--

JJ,

I installed a new version of masm32 on another partition then tried both running the zip file from the root then running it from the masm32 directory but it did not work as installed. I played musical chairs with the directories until richmasm started and it seemed to run fine but there were still paths for various bits that5 were in the wrong place and would not run.

Certainly different but looks very interesting, about the only thing missing is a good short black. Is there a roadmap as to what should be installed where ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

Quote from: hutch-- on October 07, 2009, 11:20:24 AM
JJ,

I installed a new version of masm32 on another partition then tried both running the zip file from the root then running it from the masm32 directory but it did not work as installed. I played musical chairs with the directories until richmasm started and it seemed to run fine but there were still paths for various bits that5 were in the wrong place and would not run.

Certainly different but looks very interesting, about the only thing missing is a good short black. Is there a roadmap as to what should be installed where ?
Hutch,

Which archiver are you using?
Does your archiver restore the tree?
Do you see
\masm32\MasmBasic and
\masm32\RichMasm
??

hutch--

JJ,

I popped it with the current version of Winrar. It has a tree, masm32 and two directories off it, masmbasic & richmasm. Richmasm has two more directories, icons and res.

Unzip it from the root and I get the two directories in the masm32 main directory, MASMBASIC and Richmasm. Richmasm has icons and RES.

If I start Richmasm.exe from its original location it pops a dialog box with the message,

Could not open
L:\masm32\Richmasm\masm32\masmbasic\mbguide.rtf

I moved richmasm.exe to the masm32 main firectory. Created another masm32 directory off the original, moved MASMBASIC as a subdirectory to it, moved RES as a subdirectory of the original masm32 directory and the editor Richmasm.exe starts and find the rtf and ini files it needed.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

Quote from: hutch-- on October 07, 2009, 12:33:12 PM
Could not open
L:\masm32\Richmasm\masm32\masmbasic\mbguide.rtf

Hutch,

Thanks for the detailed diagnosis. That was an easy one, it's fixed already, new version attached to top of this thread. If richmasm.exe has another time stamp than 7 October, 18:38, press F5 or whatever to get around the cache problem.

jj2007

Quote from: jj2007 on October 06, 2009, 11:23:36 PM
the 200 ms for converting Windows.inc are 95% due to a slow Store L$() routine that writes string by string to a file...

Fixed:
Converting 7676 hex equates in Windows.inc to decimals took 31 ms
(opening the file, reading the strings, converting them, writing back to disk)

qWord

very nice jj
that's why i love masm - it gives you the ability to create your own highlevel syntax  :dance:

qWord
FPU in a trice: SmplMath
It's that simple!

hutch--

JJ,

Went in fine, editor started first click, I tested it on a couple of the masm example code apps and got the ASC files to work of the right end menu.

Now I only have one complaint, WHERE THE PHUK is the coffee menu ?


Short Black
Long Black
Cappuccino
Moccacino


There is something seriously wrong when an Italian code editor cannot make coffee.  :P
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

should be makin beer - Jochen is German - lol

jj2007

Quote from: hutch-- on October 08, 2009, 01:53:00 AM
Now I only have one complaint, WHERE THE PHUK is the coffee menu ?


Short Black
Long Black
Cappuccino
Moccacino


There is something seriously wrong when an Italian code editor cannot make coffee.  :P

Hutch,

I promise you will get your coffee menu if you can manually write code that does the conversion example in less than 31 ms :toothy
Of course, if Dave is quciker, the menu entry will be called "Beer for dedndave"...!

  mov MyTimer, Timer
Recall "\Masm32\include\Windows.inc", L$() ; convert Windows.inc
mov ebx, eax
For_ n=0 To ebx-1
mov pos, Instr_(1, L$(n), "equ", 5) ; start in pos 1, 1=case-insensitive + 4=full word
.if pos
mov esi, Val(Mid$(L$(n), pos+3, 99))
.if signed edx<0
neg edx
add edx, pos
add edx, 3
mov posAfter, edx
inc MyCounter
Let L$(n)=Left$(L$(n), pos-1)+"EQU "+Str$(esi)+Mid$(L$(n), posAfter)
.endif
.endif
Next
Store "MyWindows.inc", L$() ; write all strings to file
sub MyTimer, Timer
Print Str$("\nConverting %i hex equates in Windows.inc to decimals", MyCounter), Str$(" took %i ms\n", 0-MyTimer)

Ficko

Hi JJ!

That's a great job! :U

I was thinking about something simile but never come to realization with it.

---------------------------------------------------------------------------------------------------------------------

I have some "observation" you may not aware of running "RichMasm" under Vista.

(A screenshot is attached)

1. The "menu headings - navigation bar -" - like "File, Format etc. - are not displayed.
2. The out put window starts at the right side of the split covering up the buttons sitting there.

Regards,
Ficko

jj2007

Quote from: Ficko on October 08, 2009, 07:50:03 AM
Hi JJ!

That's a great job! :U
Thanks, Ficko  :red

> 1. The "menu headings - navigation bar -" - like "File, Format etc. - are not displayed.

I do not have Vista, but Lingo found a workaround: "if we mark "Disable desktop composition" option from Properties\Compatibility of the richmasm.exe all appears OK"

> 2. The out put window starts at the right side of the split covering up the buttons sitting there.

I should fix that indeed. You can drag the search window by clicking into "matches" and holding down the mousekey. The new position will be stored once you save the file.

What about the MasmBasic library (File/New Masm source/MasmBasic)? Did anybody manage to produce a crash, or is it safe for newbies...?

jj2007

Minor update (on top of this thread):
1. The For_ ... Next loop now allows to use eax as counter start or end.

QuotePrint "A square made with three nested For...Next loops:"
            mov eax, 4
            mov ecx, eax
            For_ n1=0 To eax-1
               Print
               For_ n2=0 To ecx-1
                  Print "#"
                  For_ n3=ecx+2 To ecx-1
                     Print "*"
                  Next
               Next n2
            Next

2. In RichMasm, applications that contain a (non-commented) int 3 are assembled, linked and launched in OllyDbg when pressing F6. RichMasm determines automatically if the app is Subsystem Console or Windows, and minimises the console window when Olly is ready. In version 2, RM minimised it only when subsystem console was explicitly set with OPT_Susy Console. Version 3 will minimise the window also if Susy is autodetected.