Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 1, 2011 20:01:07 GMT -5
Ah, so using EVEN wouldn't work on real hardware, or are you saying that it would have to be wired that way? I know nothing about the cart constructions yet, so I'm kind of clueless at that. Would it be possible to wire it to use both odd and even? In case you're designing your own PCB, I'm pretty sure you can go either way. Although you might need to use two SRAM chips if you want 16-bit access. I'm not a hardware guy though, so others will probably have a more definite answer.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 1, 2011 21:46:57 GMT -5
Yeah, designing my own PCB (well, some friends of mine are doing it for me). I guess it's all about testing it out once the boards are made. Thanks moon!
|
|
|
Post by jlf65 on Sept 1, 2011 23:59:31 GMT -5
All flash carts only have sram on the ODD bytes. Setting the option to EVEN would merely result in it not working on the flash cart. It MUST be set to ODD, and you must use odd addresses.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 2, 2011 4:50:40 GMT -5
@moon: I'll run through your code and figure out how it works. Thanks again! Er, am I off your ignore/block list? It may be a proboards bug since you usually don't have problems telling people off. Let me put that in another way: I know you're mature enough to tell people what your problem is and not just block them. If it's a proboards bug: fair enough. If you have a problem with me then please let me know.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 2, 2011 4:59:01 GMT -5
Er, am I off your ignore/block list? It may be a proboards bug since you usually don't have problems telling people off. Just didn't expect to be blocked without warning. No, I still have you blocked If you have a question, just post it on the forum ( instead of PM-ing ) so everybody can have a stab at it .. not just me
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 2, 2011 5:18:52 GMT -5
Er, am I off your ignore/block list? It may be a proboards bug since you usually don't have problems telling people off. Just didn't expect to be blocked without warning. No, I still have you blocked If you have a question, just post it on the forum ( instead of PM-ing ) so everybody can have a stab at it .. not just me @moon: Your communication skills need improving man. But fair enough.
|
|
|
Post by Tiido on Sept 3, 2011 15:19:04 GMT -5
no flashcart supports even bytes only because no game ever used 16bit SRAM or SRAM on even bytes. EDIT: stupid 2nd pages, and impatience
|
|
|
Post by essexboyracer on Mar 15, 2012 15:30:45 GMT -5
I changed the example moon posted to the following, which now displays odd numbers 1-31 on the screen of my megadrive 2 with everdrive. The original example just wrote 76 for each location. I just changed the 0 to 30 to 1 to 31, which I think means I'm now using the lsb rather than msb, but I could have that backwards. If there is a better way, I'm happy to learn dim foo(7) as integer ' Fill SRAM with numbers for i = 1 to 31 step 2 poke &h200000 + i, i next ' Copy SRAM to RAM dataptr& = varptr&(foo) for i = 1 to 31 step 2 write peek(&h200000 + i) next ' Print RAM p& = varptr&(foo) for i = 0 to 15 print peek(p& + i) next
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 15, 2012 17:11:34 GMT -5
.. displays odd numbers 1-31 on the screen of my megadrive 2 with everdrive. Good, that means that it's working I just changed the 0 to 30 to 1 to 31 Correct, that's all you needed to do to change the example from EVEN to ODD bytes.
|
|