News:

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

Main Menu

MasmBasic

Started by jj2007, May 23, 2012, 10:16:07 PM

Previous topic - Next topic

vvanag

#615
Is Masmbasic open source? My AV on the corporate laptop complains. Can I download it and build it from source?

Also I see mentioned that it is a library of Macros, why not just include the source?

jj2007

Hi vvanag,

No, I'm afraid it's not open source. You can find bits and pieces all over the place, mainly in the Laboratory, but the whole thing is a >48,000 lines mess that I am not going to publish ever.

About half of it is macros (and you can see them all in \Masm32\MasmBasic\MasmBasic.inc), the other half is procs. Both are so complex that I have trouble understanding them myself. For example, Str$() alone is 457 lines long - see attachment :cool:

Re AV: a known problem for Assembly code. Heuristic scanners see "wow, not written in C or Python - very suspicious!" - and flag it as malware. There is a dedicated board for this :cool:

LordAdef

Hi JJ,

I downloaded the latest version. Question from a lazy searcher: whats is JBasic?

zedd

Quote from: LordAdef on April 19, 2025, 08:31:01 AMHi JJ,

I downloaded the latest version. Question from a lazy searcher: whats is JBasic?
MasmBasics' long lost big brother?  :tongue: jk
I believe it is like MasmBasic but specifically for 64 bit programming.
While GOOGLE is not always your friend, Google Search is very useful sometimes.  :cool:

jj2007

#619
Quote from: LordAdef on April 19, 2025, 08:31:01 AMwhat is JBasic?

Indeed, Zedd is right: it's a minimum environment for 64-bit programming. More precisely, dual programming: sources that do not use R9...R15 assemble most of the time both in 64- or 32-bit mode, with UAsm or ML alike.

include \Masm32\MasmBasic\Res\JBasic.inc ; ## console demo, builds in 32- or 64-bit mode with UAsm, ML, AsmC ##
Init ; OPT_64 1 ; put 0 for 32 bit, 1 for 64 bit assembly
  Open "I", #1, "SkelDualConsole.asc"
  Print Str$("The source is %i bytes short\n", rv(GetFileSize, rax, 0))
  Close #1
  jinvoke MessageBox, 0, Chr$("JBasic is fantastic"), Chr$("Hello"), MB_OK or MB_SETFOREGROUND
EndOfCode

LordAdef

Thanks both!

I think Masmbasic is a great project. People under evaluate it due to the extra size. BUT, for large projects this extra size is null. Take the smallest GUI Frameworks around... They size to a minimal of 6mb

jj2007