|
|
|||||||
| 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 |
|
|
#561 |
|
Registered User
Join Date: Feb 2009
Location: Italy
Posts: 27
|
Ok done
|
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
#562 |
|
Registered User
Join Date: Jun 2012
Location: Brazil/Paraná
Posts: 4
|
Hi everyone. I am going to try some modifications on the Chip8/Chip16 instruction set. I am interested in orthogonality, an uncommon topic perhaps by being a bit theoretic, but I dont know how to do it. I would like to know, if on the production of an instruction set, the arrangement of the opcodes is needed for the machine which its running (for dispatch optimization, etc). For example, I should order the opcodes in groups by operation (store, load...) or by operands (for example by argument count, to simplify argument decoding). To make it clear, see this where all opcodes FLIP are grouped by the last byte: Code:
08 00 00 00 FLIP 0, 0 Set flip orientation for sprites. horizontal flip = false; vertical flip = false 08 00 00 01 FLIP 0, 1 Set flip orientation for sprites. horizontal flip = false; vertical flip = true 08 00 00 02 FLIP 1, 0 Set flip orientation for sprites. horizontal flip = true; vertical flip = false 08 00 00 03 FLIP 1, 1 Set flip orientation for sprites. horizontal flip = true; vertical flip = true I hope this is not a uninteresting question...
Last edited by Leandro Jardim; July 17th, 2012 at 19:44.. |
|
|
|
|
|
#563 |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Hi all! There are final version of my little chip16 intro: sinedots
Enjoy!
__________________
Last edited by tronix286; July 26th, 2012 at 09:10.. |
|
|
|
|
|
#564 | |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Quote:
|
|
|
|
|
|
|
#565 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Nice one tronix! Now I'm back from my honeymoon I might work on finishing my crappy fighting game 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/
|
|
|
|
|
|
#566 |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Thanks refraction, paul_nicholls! Yet another sine-table demo caled sine flag -)) For best viewing enable "Recompiler" and disable "Vertical sync" options in Refchip emulator. Otherwise demo speed is very slow (many math calculations).
__________________
Last edited by tronix286; July 26th, 2012 at 09:11.. |
|
|
|
|
|
#567 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
![]() Haha kidding, very nice as usual
__________________
|
|
|
|
|
|
|
#568 |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Thanks tykel! BTW i found bug in your javascript emu. You shold declare registers array as unsigned int 16, not signed: Code:
r = new Uint16Array(reg),
__________________
|
|
|
|
|
|
#569 | |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
Quote:
May I ask why though? The spec does say registers are supposed to be signed no?
__________________
|
|
|
|
|
|
|
#570 | |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Quote:
Our chip16 processor uses Sign-and-magnitude method and we don't need control signed or unsigned numbers curently used. For example, at current emulator cycle we need addiction r0 and r1: r0 = 1001 (binary) r1 = 0001 (binary) 1001 add 0001 = 1010 What is 1010 (decimal) ? It's -2 or +10? At "hardware" level we don't know. It's controlled by application programmer, how interpreted this value.
__________________
Last edited by tronix286; July 26th, 2012 at 13:28.. |
|
|
|
|
|
|
#571 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
right guys im going on a refchip16 fixing spree tonight, so if you know of any bugs, let me know now and ill get them sorted. I know about not drawing the top line or the line down the left hand side, that's already fixed in the repo (altho im going to modify it again as its technically able to overflow the array atm). If you know of any others i will get them sorted
__________________
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/
|
|
|
|
|
|
#572 | |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Quote:
|
|
|
|
|
|
|
#573 | ||
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Quote:
Quote:
__________________
|
||
|
|
|
|
|
#574 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Cool cheers Guys ill do them ![]() Tronix: what I might do for that is add a developer output mode which has a console window displaying problems. Not sure what else to add at the moment but I don't really want popups as it might get annoying ![]() Edit: the "Boing" bug might already be fixed in the latest revision, but havent done a release yet (as i have these other little bits to do) also im going to write a small sprite flipping test which you can move a square around, i need to test sprites going off the edges of the screen, i dont think my code is working quite correctly.
__________________
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/
Last edited by refraction; July 27th, 2012 at 13:36.. |
|
|
|
|
|
#575 | |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Quote:
2all : new oldschool demo named twisting bar or simply twister ready. Still have speed issues. For best viewing enable "Recompiler" and disable "Vertical sync" options in Refchip emulator. Enjoy!
__________________
|
|
|
|
|
|
|
#576 |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 433
|
@tronix: Very nice as always I particularly like the palette shifting on the text!I might as well post something I made a little while ago, hoping I could optimise it further (didn't!). It's a classic oldschool plasma effect, and uses a lookup table for obvious reasons. Performance is acceptable at stock speed, but obviousdly looks better derestricted! plasma.png On that note, let's try to keep our demos running smoothly at 1 Mhz... there's a challenge :P
__________________
|
|
|
|
|
|
#577 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
These demos are very cool, but I'd like to see some more games come out ![]() Edit as to not double post: I've written a little test ROM which allows you to flip a sprite and move it around the screen, good for testing sprites going off the edge of the screen and again when they are flipped, i had a few bugs with this which is why i made it (one of them being i had unsigned GPR registers so X and Y co-ordinates were never less than zero) usual keys, A and B to flip (tells you onscreen) and d pad to move about refchip16 1.46 coming soon with all the fixes in, will let you know when.
__________________
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/
Last edited by refraction; July 28th, 2012 at 13:51.. |
|
|
|
|
|
#578 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
RefChip16 has been upgraded to 1.46! Should fix all known bugs plus a few i had issues with ;p tronix286: I haven't made a new developer window, truth be told i such at WinAPI but what i have done is made it so it logs it, also logging is enabled/disabled via the settings menu now so no need to recompile the emu at all. Grab from the usual googlecode place, enjoy ;p (sorry for double post but it was more important this didn't get lost in my wall of text! )
__________________
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/
|
|
|
|
|
|
#579 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
RefChip16 1.46 had gotten rid of the recompiler bug with my demo...yay!
|
|
|
|
|
|
#580 | |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Quote:
and your demo is very impressive! You have physics and everything xD
__________________
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/
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|