Author Topic: Does Masm compile under Wine  (Read 5763 times)

anunitu

  • Member
  • *****
  • Posts: 1045
Re: Does Masm compile under Wine
« Reply #15 on: August 02, 2016, 05:54:06 AM »
Yes,why YES,that is the ticket.....

Magnum

  • Member
  • *****
  • Posts: 2284
Re: Does Masm compile under Wine
« Reply #16 on: August 02, 2016, 06:19:52 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

  • Member
  • *****
  • Posts: 2284
Re: Does Masm compile under Wine
« Reply #17 on: August 02, 2016, 06:27:54 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

  • Member
  • ***
  • Posts: 450
Re: Does Masm compile under Wine
« Reply #18 on: August 02, 2016, 07:08:05 AM »
fireworks works here too.
Nice example per see.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Does Masm compile under Wine
« Reply #19 on: August 02, 2016, 10:41:08 PM »
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

  • Member
  • ****
  • Posts: 748

jj2007

  • Member
  • *****
  • Posts: 8826
  • Assembler is fun ;-)
    • MasmBasic
Re: Does Masm compile under Wine
« Reply #21 on: August 03, 2016, 02:47:55 AM »
I 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

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Does Masm compile under Wine
« Reply #22 on: August 03, 2016, 02:54:06 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

  • Member
  • *****
  • Posts: 1045
Re: Does Masm compile under Wine
« Reply #23 on: August 03, 2016, 05:38:17 AM »
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

  • Member
  • ****
  • Posts: 839
  • <AMD>< 7-32>
Re: Does Masm compile under Wine
« Reply #24 on: November 06, 2018, 09:03:45 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