C compiler
Re: C compiler
Brag time once more, this code: http://pastebin.com/ryZttMW2 produces the attached result.
- Attachments
-
- PutPixel.min
- the binary
- (12.2 KiB) Downloaded 1613 times
-
- screen shot
- screen.png (7.77 KiB) Viewed 23353 times
- YasaSheep
- Posts: 205
- Joined: November 20th, 2005, 04:04
- Location: Portland (Also the discord)
- Contact:
Re: C compiler
Looks great! Seems like a pretty complex test too. :]
Re: C compiler
The very first pre-pre alpha version (V0.004) is here for your viewing pleasure. There are many things missing (take a look at the TODO.txt) and most likely there are many bugs too. I believe there are no viruses inside, but to be sure please check it yourself. 
Enjoy!

Enjoy!

- Attachments
-
- vbccpm_0004.zip
- Version 0.004 of the vbccpm C compiler
- (287.28 KiB) Downloaded 1686 times
Re: C compiler
Very nice, Zoranc!
This will probably lower the threshold for people to starting deving on PM.
This will probably lower the threshold for people to starting deving on PM.

Re: C compiler
I hope so, Agilo, I hope so. Such a nice device deserves bigger audience.
Thanks to Lupin we got now div/mod and slightly improved mul routines. One Item from the TO-DO list is removed.
As before no guaranties, hope you like it... etc. etc. Ver. 0.006 of the vbccpm C compiler freshly baked and served.
Thanks to Lupin we got now div/mod and slightly improved mul routines. One Item from the TO-DO list is removed.

As before no guaranties, hope you like it... etc. etc. Ver. 0.006 of the vbccpm C compiler freshly baked and served.

- Attachments
-
- vbccpm_0006.zip
- Version 0.006 of the vbccpm C compiler
- (287.99 KiB) Downloaded 1678 times
Re: C compiler
really nice progress... First thing on my personal wishlist is interrupt support and support for linking (vasm and vlink) to have external function libraries.
Re: C compiler
inline assembly supported now. look at the demo inside for an example how to do it.
interrupts should be rather easy i'd be able to do it in a few hours, but now i'm dead tired.
vasm/vlink that's another story any volunteers for that one?
@lupin: i hope you are motivated enough to finish my carts, thought soldering and testing is probably less fun than writing libraries in C.
interrupts should be rather easy i'd be able to do it in a few hours, but now i'm dead tired.
vasm/vlink that's another story any volunteers for that one?
@lupin: i hope you are motivated enough to finish my carts, thought soldering and testing is probably less fun than writing libraries in C.
- Attachments
-
- vbccpm_0007.zip
- (287.86 KiB) Downloaded 1641 times
Re: C compiler
fixed bug in the inline assembler handling. now frame pointer is unwinded by the compiler.
- Attachments
-
- vbccpm_0008.zip
- (288.02 KiB) Downloaded 1651 times
Re: C compiler
added interrupt support with a small demo how to use it.
- Attachments
-
- vbccpm_0009.zip
- (289.14 KiB) Downloaded 1719 times
Re: C compiler
Hey zoranc,
Will you add // comments?
compiles to:
... interesting, isn't it? 
Code: Select all
// Comment does not work
/* Comment does work */
Code: Select all
*((char *)(0x2029)) = 0x01;
Code: Select all
mov a,1
mov hl,8233
mov 8233,a
