flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > Prorgramming in another language? |
Author |
|
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.
|
|||
13 Jul 2004, 16:22 |
|
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 |
|||
13 Jul 2004, 20:51 |
|
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*,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 .... |
|||
13 Jul 2004, 22:58 |
|
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)!
|
|||
14 Jul 2004, 13:20 |
|
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.
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 =). |
|||
02 Aug 2004, 12:01 |
|
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. LD can produce flat binary ! And I use GCC+Binutils 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). |
|||
02 Aug 2004, 19:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.