|
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging
![]() |
|
|
Thread Tools | Display Modes |
|
|
#321 | |
|
Registered User
![]() Join Date: Sep 2011
Location: Australia
Posts: 89
|
Quote:
This is experimental project and we weren't sure if we would be able to complete it when we started it but last couple of days we are getting some great results and compiler is already able to compile some syntax into chip16 binary. |
|
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
#322 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Nice! So can you parse expressions yet and produce code from them? They can be 'fun' to get working correctly
|
|
|
|
|
|
#323 | |
|
Registered User
![]() Join Date: Sep 2011
Location: Australia
Posts: 89
|
Quote:
Code:
void main() {
var a;
a = 20;
if (a > 30) {
SetBackground(5);
}
if (a < 30) {
SetBackground(10);
}
}
Here's the source code repo for the compiler: http://code.google.com/p/chip16-dev-kit/ EDIT: Oh and the binary it compiles to is spec 1.0. That is the one without the header... |
|
|
|
|
|
|
#324 |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Hi, another my small chip16 intro: sinedots. Very flicked, but we haven't free memory for double buffer. |
|
|
|
|
|
#325 | |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Quote:
|
|
|
|
|
|
|
#326 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
|
|
|
|
|
|
#327 | |
|
Registered User
![]() Join Date: Sep 2011
Location: Australia
Posts: 89
|
Quote:
|
|
|
|
|
|
|
#328 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
![]() I'll see if there's room for any optimisation in the code... but THAT's what I call a demo! @Prads: if you can't be arsed to do the header generation, you can just call my cmd line utility in your IDE if you want.
__________________
|
|
|
|
|
|
|
#329 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Thats awesome! looks even more wicked (and less flickery) with vsync off lol
__________________
http://www.pcsx2.net Intel i7 920 @ 3.4Ghz, POV GTX 570 1.3Gb, 1.8Tb HD space, 6Gb OCZ Reaper PC3-14400 Triple Channel Dont PM me for help, use the forums, thats what its for! My Chip16 Emulator RefChip16 http://code.google.com/p/refchip16/
|
|
|
|
|
|
#330 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
|
|
|
|
|
|
#331 | |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
@tykel: I have a question about your tchip16 assembler ![]() Quote:
Why the offset and the label? Couldn't one just do this sort of thing? inport a file at label "MySprite" in the assembly Code:
MySprite: importbin myfile.bin |
|
|
|
|
|
|
#332 | |
|
Registered User
![]() Join Date: Sep 2011
Location: Australia
Posts: 89
|
Quote:
|
|
|
|
|
|
|
#333 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
The label simply means, "import all this at label MySprite". Now, your syntax also makes sense. The reason I have it the way it is: - It's simpler to code - It means all the imports are grouped together at the top of the file, facilitating readability. However, I guess if you want to import something and have more code afterwards, or some db's, then you currently hit a rock. I'll probably add it to the next release (next week).
__________________
|
|
|
|
|
|
|
#334 | |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Quote:
![]() If you could add it whenever, that would be great. Well, I am going to have a play with the assembler and see what I can come up with (I'm not too familiar with chip16 asm yet! haha)
|
|
|
|
|
|
|
#335 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
![]() You should start with simple ones, like Maze, Anim, Pong, PaletteFlip, GB16. Then you can move on to less trivial ones, like AdsrDemo, Herdle, Reflection, or SineDots. Shendo's are well commented. Most of the assembly syntax should be explained in the README anyway
__________________
|
|
|
|
|
|
|
#336 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Yeah, I will have a closer look at the demos
|
|
|
|
|
|
#337 | |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Quote:
Maybe we should think about addressing more than 64K? For examlple, two video layers - current frame buffer and second "hidden" double buffer... Or, just another 64K for data and switch between them. So, something like this: Code:
bnk 0 ; select first mem bank, it's "code" section . By default. ldm r0, X ; load X in r0 register bnk 1 ; select "second" mem bank, it's "data" section stm r0, #0001 ; store r0 at 64K+#0001; PS: Sorry for my terrible english (( |
|
|
|
|
|
|
#338 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
BUT, the priorities right now are: 1) get people emulating spec 1.1, with full support for everything, and 2) make more games/demos which make use of the current instruction set. So no more instructions for a little while. ![]() BTW, nice demos Tronix, mostly Pascal or Assembler? How difficult to port are they? EDIT: Actually, a number of things still need to be done: - Make a Wikipedia page for Chip16 - Possibly a forum with separate threads for emu's, games, ideas and stuff. I think visibility is still a problem here. I mean, Chip16 was mentioned on a french tutorial website, and that gave us a whole load of hits (including BestCoder I think). We need some page in English that's easy to find.
__________________
Last edited by tykel; March 23rd, 2012 at 23:57.. |
|
|
|
|
|
|
#339 |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,547
|
As everyone said already, amazing demo Tronix286. I've checked the Youtube video also and I really like it. Would be cool to see those demos on Chip16
__________________
Shendo's software blog Core i5 2400 3.1 Ghz | ASRock H67M | GTX460 768Mb | 8GB DDR3 1333 | 1500 Gb HDD Grundig VLC 7121 C (1080p) 32" | Razer DeathAdder | Logitech G110 | Windows 7 x64 Don't PM or ask me about VMP-MCR conversions. I will ignore you if you do. |
|
|
|
|
|
#340 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Very nice demo Tronix286! ![]() I know that the spec is fixed, but I think one little thing would make demos/games much easier to program with the Chip16 - being able to access the video buffer as direct memory accessing, and not just sprites. Just my $0.02
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|