News:

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

Updated version of the code generator, Prostart

Started by hutch--, October 07, 2009, 02:11:25 AM

Previous topic - Next topic

hutch--

I have modernised a few parts of the output code, the processor directives for minimum level hardware has been changed to the following,


      .686p                     ; create 32 bit code
      .MMX                      ; enable MMX instructions
      .XMM                      ; enable SSE instructions
      .model flat, stdcall      ; 32 bit memory model
      option casemap :none      ; case sensitive


If anyone is writing code for legacy hardware, they will need to change this to directives that restrict the instruction set to that hardware. These should work on anything from a PIII upwards.

I have changed the code from "InitCommonControls" to the later version "InitCommonControlsEx" with a LOCAL structure to match.

Something that I have not changed yet is the startup window size, on older screens it was safe to set a percentage of the screen size but with the advent of very wide screens the window starts too wide for most programs. I am inclined to set it up as an aspect ratio using the screen height as the reference but I would be interested in any other ideas that may be more convenient.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

Quote from: hutch-- on October 07, 2009, 02:11:25 AM
I am inclined to set it up as an aspect ratio using the screen height as the reference but I would be interested in any other ideas that may be more convenient.

Use height and width as the reference...

A gorgeous tool, compliments. One might try to reduce the number of files created, e.g. by moving
statusbr.asm
tbmacros.asm
toolbar.asm
project.ico
project.inc
makeit.bat
to a separate common folder. e.g. Masm32\CommonResources. But that is matter of taste, I guess.

hutch--

JJ,

> Use height and width as the reference...

This is what I used to do and this generator still sets the window size from both but on a wide screen the window starts too wide. This new screen I am using is 1920 x 1080 so most windows start far to wide. The old screens were a nominal 4 x 3 ratio and that is what I have done with QE and Topgun so that if the screen is wider than a 4 x 3 aspect ratio, it restricts the width to maintain that aspect ratio.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php