flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > Prorgramming in another language?

Author
Thread Post new topic Reply to topic
excaliber



Joined: 24 Feb 2004
Posts: 2
excaliber 13 Jul 2004, 15:12
Hi all. I really want to help MenuetOS, but am still learning ASM (ie. no where near the level of skill needed to help.).

But I know C++ fairly well. Can C++ be used on MenuetOS right now? What special things would I have to do to get a C++ compiled app working?
Post 13 Jul 2004, 15:12
View user's profile Send private message Reply with quote
Barak



Joined: 25 Jul 2003
Posts: 22
Location: Nesher, Israel
Barak 13 Jul 2004, 16:22
Hi, I know just a little C++ so I can just advise you, ASM is the only language which will be used for MenuetOS official release so I advise you to code a little game, afterwards you can upgrade the game if possible or create a new game with the new skills you learned. games will always be welcome i guess.
Post 13 Jul 2004, 16:22
View user's profile Send private message ICQ Number Reply with quote
ShortCoder



Joined: 07 May 2004
Posts: 105
ShortCoder 13 Jul 2004, 20:51
It's not gonna work because MenuetOS does not have a C++ compiler at present date. Plus, you can no more compile a C++ program on a compiler for some other OS and then slap that program in Menuet, expecting it to work, than can you write a program in C++ on Windows, compile it using MSVC++, then slap it on a Macintosh and expect it to work---ain't gonna happen.

If you want to code for MenuetOS at present, your choices are either program in fasm for it or...see if, by some stroke fortune, someone, somewhere has made a compiler or interpreter for some other language for it and learn and use that. You really just should be using asm on it though.

_________________
Boycott Symantec/Norton/PowerQuest whenever possible
Post 13 Jul 2004, 20:51
View user's profile Send private message Reply with quote
daneel



Joined: 19 May 2004
Posts: 56
daneel 13 Jul 2004, 22:58
You can program whit ASM BASIC a very powerfull languaje. See this example program:

asmbegin
include 'libc.asm'
asmend

rem comentario
rem Variables

s#=0
v#=0

rem Ciclo Principal
rem Primero dibuja la ventana y los botones

paint(0)
label lp1
eventloop(0)
delay{50}
goto lp1

function paint(1)
begin_draw{}

rem Dibujando la Ventana

draw_window{200,200,20+(80*5),30+(25*Cool,0x03000080,0x800000FF,0x000080}
draw_button{15,200,80,15,0xCC0000,2}
print_text{20,206,0xFFFFFF,"Recalcular"}

rem Coordenadas X e Y

rem Contador
a!=1
b!=1
rem Pedazo de ASM
label lop

a!=a!+1
b!=b!+1

putpixel(a!,190,0xE7E6A0)
putpixel(10,b!,0xE7E6A0)

if a!<200 then goto lop : endif

end_draw{}
end

function eventloop(1)
a!=^get_event{}
if a!=1 then paint(0) : exit : endif
if a!<>3 then exit : endif
a!=^get_button{}
if a!=1 then stop : endif
if a!=2 then print_text{20,60,0xFFFFFF,"Recalculando"}

(...)

Im programing a mini API , so will be more easy .... Smile
Post 13 Jul 2004, 22:58
View user's profile Send private message Reply with quote
Sniper



Joined: 30 Nov 2003
Posts: 64
Location: Russia
Sniper 14 Jul 2004, 13:20
You CAN program in C for Menuet! You should go to Jarek homepage (I forget his url... sorry) or write directly to him (spideros1 'at' wp 'dot' pl)! Wink
Post 14 Jul 2004, 13:20
View user's profile Send private message Reply with quote
compilax



Joined: 18 Feb 2004
Posts: 56
compilax 02 Aug 2004, 12:01
I don't know of any C++ compilers, sorry, but I've used sphinx C-- (if you know C you will feel at home with it) to make some menuet stuff. google it, the website has info about how to make meos apps.

Idea If ld lets you make flat binaries, it may be possible to use GCC - but thats just an idea, not backed up by any information =).

PS: if Sniper was refering to C--, sorry =).
Post 02 Aug 2004, 12:01
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
spideros1



Joined: 17 Jan 2004
Posts: 77
Location: Poland
spideros1 02 Aug 2004, 19:48
compilax wrote:
I don't know of any C++ compilers, sorry, but I've used sphinx C-- (if you know C you will feel at home with it) to make some menuet stuff. google it, the website has info about how to make meos apps.

Idea If ld lets you make flat binaries, it may be possible to use GCC - but thats just an idea, not backed up by any information =).

PS: if Sniper was refering to C--, sorry =).


LD can produce flat binary ! And I use GCC+Binutils Wink This is how I make MENUET01 executables
in my C library. I've just written crt0.0 stub which is linker by gcc in this order:
/menuetos/lib/crt0.o appfiles /menuetos/lib/libc.a somepath/libgcc.a
so I get flat binary (/menuetos/lib/app.mld script describes format).
Post 02 Aug 2004, 19:48
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.