|
|
|
#401 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
All this is looking great guys! Once I feel better from being sick I will get back to my programming too
|
|
|
|
| Advertisement | [Remove Advertisement] |
|
|
|
|
|
#402 |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
New version of CHIP-16 debugger: v0.2 alpha 09.06.2012 + Added Step Over debugging mode ~ Update README.TXT file New versions of CHIP-16 debugger now avalible on google code: http://code.google.com/p/chip16debugger/ Please submit any issues here.
__________________
|
|
|
|
|
|
#403 |
|
Registered User
![]() Join Date: Sep 2011
Location: Australia
Posts: 89
|
Little progress with my chip16 compiler. Added Graphics and input capabilities. Here's a small demo I made, it's called 'Pikachu'. :P Use your controller 1 direction button to move pikachu on screen. Code:
Image pikachu = "pikachu.bin", 42, 46;
ConstString title = "Pikachu by Prads";
ConstString demo = "Chip16 Compiler Demo";
void main() {
var x;
var y;
x = 0;
y = 0;
while (1) {
ClearScreen;
if (GetController1 & 1) {
y = y - 1;
} else if (GetController1 & 2) {
y = y + 1;
} else if (GetController1 & 4) {
x = x - 1;
} else if (GetController1 & 8) {
x = x + 1;
}
Print(demo, 50, 220);
Print(title, 60, 200);
Draw(pikachu, x, y);
WaitScreenRefresh;
}
}
|
|
|
|
|
|
#404 |
|
Registered User
Join Date: Jul 2011
Posts: 14
|
|
|
|
|
|
|
#405 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
That's awesome! Well done! That'll make life easier
__________________
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/
|
|
|
|
|
|
#406 |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 434
|
Prads: Look in the "Sources" folder of the program pack... some games have "font.bin" files, just steal those (and check the source code on how to use them) :P
__________________
|
|
|
|
|
|
#407 |
|
Registered User
Join Date: Jun 2012
Location: United States
Posts: 2
|
I really like the chip-16 documentation then the chip-8 one that I've been using (got about halfway finished) so I'm going to work on making this one, challenge accepted!
|
|
|
|
|
|
#408 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
In my Chip16 emulator, I have a question about the instruction below: Code:
C4 00 00 00 PUSHF Store flags register on stack. Increase SP by 2. Why is it increased by 2 bytes (word)? |
|
|
|
|
|
#409 | |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Quote:
__________________
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/
|
|
|
|
|
|
|
#410 | |
|
Registered User
Join Date: Aug 2010
Location: Russia, Moscow
Posts: 48
|
Quote:
Code:
pushf ; Store flags on stack.SP increase by 2
pop r1 ; load flags from stack to register R1
shl r1,13
shr r1,15
; in R1 i have 1 or 0, depending on carry flag state
http://code.google.com/p/chip16debugger/
__________________
|
|
|
|
|
|
|
#411 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Thanks for the info tronix286 ![]() I will look at the new debugger version...I will find it most helpful as I am having trouble with my emulator and decoding op codes! LOL |
|
|
|
|
|
#412 |
|
Sober coder
![]() ![]() ![]() Join Date: Aug 2010
Location: London, UK
Posts: 434
|
I have a suggestion to amend the spec: The CLS instruction is currently supposed to reset the background colour to 0. I'm not sure this is what people want when they clear the screen... And I don't think any roms make use of this. Does anybody abide by this in their emulator? If not, I suggest we change its behaviour to simply clear the screen with the current bgc. Also, I will have something interesting to show quite soon!
__________________
|
|
|
|
|
|
#413 |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,605
|
I don't know for others but my software relies on the current way the CLS is processed. As for surprise, can't wait. You always have some cool stuff to show
__________________
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. |
|
|
|
|
|
#414 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Woo hoo! I finally got my Chip16 emulator to run a ROM sucessfully!! It works on the Palette test one ATM... ![]() That was thanks to the Chip16 debugger by tronix286 ![]() Now for the rest of the opcodes <G> EDIT: it took me a while to realize that I needed to process twice the horizontal pixels that were passed in using the SPR command when drawing sprites! It came out all wrong until I figured out that LOL |
|
|
|
|
|
#415 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Well done mate! glad you got it 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/
|
|
|
|
|
|
#416 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Awesomesauce! I have managed to get my emulator to work on every ROM I have thrown at it now and it seems to work. The only things I haven't implemented are sound and sprite flipping ![]()
|
|
|
|
|
|
#417 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Well done Paul I'm sure you'll have no problem with either of them
__________________
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/
|
|
|
|
|
|
#418 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Thanks ![]() The funny thing is that I am having trouble finding the source code for my Chip16 audio stuff that I posted here a little while back! Would you happen to have it handy? |
|
|
|
|
|
#419 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
Afraid not, I made it up myself when I did mine
__________________
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/
|
|
|
|
|
|
#420 |
|
Registered User
![]() ![]() Join Date: Sep 2011
Location: Australia, Tasmania
Posts: 180
|
Nevermind...I just found my Chip16 SID sound source code LOL Thanks mate
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|