News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Does Masm compile under Wine

Started by Magnum, July 30, 2016, 01:12:20 PM

Previous topic - Next topic

anunitu

Yes,why YES,that is the ticket.....

Magnum

Quote from: jj2007 on August 02, 2016, 04:14:29 AM
See reply #5 - you are touching religious questions here :icon_mrgreen:

I do not think it is close to religious.

I would be glad to make a religious post so you know what one looks like. :-)

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

Magnum

Quote from: mineiro on August 02, 2016, 03:24:00 AM
Well, I can try some tests to fpu if you need, just post source. My machine don't have speakers.

But I think is better you create programs to linux, it's not hard like appears. If you need some start point just ask and I think I can try to guide you.

I forgot that DednDave and others helped me with the fpu code to this fireworks code.

The source and exe are attached.

It works in Ubuntu and Puppy Linux versions.


Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

mineiro

fireworks works here too.
Nice example per see.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

qWord

Sometime back I said to myself: This far and no further.
I will no longer accept that there are people on an assembler programming forum who can't distinguish between assemblers and compilers.

... I'll be back  8)
MREAL macros - when you need floating point arithmetic while assembling!

TWell

http://www.differencebetween.com/difference-between-assembler-and-vs-compiler/

jj2007

Quote from: qWord on August 02, 2016, 10:41:08 PMI will no longer accept that there are people on an assembler programming forum who can't distinguish between assemblers and compilers

Amen :biggrin:

P.S. - almost 40 lines of pure assembly code:

GuiParas equ "Hello Masm32 Forum", x100, y100, w500, h250, b0F0F0A0h
GuiMenu equ @File, &Open, &Save, -, E&xit, @Edit, Undo, Copy, Paste
include \masm32\MasmBasic\Res\MbGui.asm
Enum 1:bezier
MakeFont    hFontSmall, Height:15, Weight:FW_SEMIBOLD, "Arial"
MakeFont    hFontBig, Height:32, "Times New Roman"
MakeBrush   hRed, RgbCol(255, 64, 64)            ; light red
MakeBrush   hBrushGdip, RgbCol(100, 200, 200, 0)
MakePen     hPenBez, RgbCol(200, 160, 160, 0), width 4, startarrow LineCapRoundAnchor, endarrow 12:9, inset 2
MakePath    bezier, Bezier(50:50, 30:320, 600:150, 789:800, 400:400, 600:200, 55:55)      ; 4, 7, 10, ... points
MakeBrush   hGB, RgbCol(0, 160, 64)            ; dark green
Event Menu
  MsgBox 0, Str$("You clicked menu #%i", MenuID), "Hi", MB_OK
Event Paint
  m2m ecx, 3            ; just to demonstrate how to use scaling
  GuiTextStyle font:hFontSmall, bcol=RgbCol(255, 255, 160), fcol RgbCol(0, 0, 255)
  GuiLine 15.0, 15, ecx*90+10, ecx*5      ; start x+y, end x+y
  GuiLine 280, 80       ; end x+y
  GuiLine 15.0, 80      ; .0 means x expressed as % of width
  GuiLine 15.0, 15
  GuiSetFill hRed        ; use the red brush
  GuiEllipse 48.0, ecx*7+4, 40, 20      ; x (as %), y, radius x, radius y
  GuiSetFill hGB
  GuiDraw bezier, hPenBez/hBrushGdip, 18.0, 15.0, 900, 700      ; Bezier
  GuiCircle ecx*80-4, 25, ecx*3+4      ; x, y, radius
  For_ ct=0 To 8
      GuiText ct*2+4, ct*15+4, Str$("Line %i ", ct+1)
  Next
  GuiText 50.0-80, 55.0, " CGA palette: ", font hFontBig, bcol CgaCol(cWhite)
  GuiTextStyle fcol CgaCol(cWhite), transparent      ; first 8 need white on black 
  For_ ecx=0 To 15
      GuiSetFill ecx
      GuiTextBox ecx*30+9, 85.0, 18, 16, Str$(ecx), font:hFontSmall      ; 85.0 = use 85%
      If_ ecx>7 Then GuiTextStyle fcol 0
  Next
  GuiTextBox 305, 18, 160, 60, "Добро пожаловать", font:hFontBig, bcol:CgaCol(cYellow), fcol:RgbCol(0, 128, 255)
GuiEnd      ; OPT_Icon Eye


P.P.S.: SmplMath code gets ... assembled? compiled?

qWord

Quote from: jj2007 on August 03, 2016, 02:47:55 AM
P.P.S.: SmplMath code gets ... assembled? compiled?
... macro-assembled  of course  8)
MREAL macros - when you need floating point arithmetic while assembling!

anunitu

Do not go there with the compiler vs assembler.that might go as far afield as Mac VS x86(Oh  the memories of the GREAT war of computer choice) Chants the secret ascii and hex sequence to banish all evil systems...

HSE

Quote from: mineiro on July 31, 2016, 12:24:24 AM
Hope this helps you, if you have questions feel free to ask. I'm a normal user under linux, so I feel that I can't answer all things but we can shakehands and try.

Well... that helpme!

Masm32 apparently is working perfect with Wine in Ubuntu.

Thanks Mineiro  :t
Equations in Assembly: SmplMath