Post by expertsetup on Oct 31, 2006 14:05:24 GMT -5
I thinkn so but am not sure, I will have to do some more reading. Since the kernal does all the CBM80 boot strap it would stand to reason that the DTV kernal is different here. I do need to confirm this.
Post by expertsetup on Oct 31, 2006 15:51:11 GMT -5
The DTV2 Kernal document from tlr describes the changes to the Kernal Reset code, it starts at $F8F1 in the document. Now the hummer Kernal document has no reference to the DTV80 code and at location $F8F1 there is a DMA code section.
I'm afraid this generates more questions than it answers. I will take a look at my kernal ROM and see what I have. That might clear things up.
Well after hitting the books last night I came to terms with some of the problems I was having converting 16K carts. This last cart took a bit of effort but also enlightened my view of cart simulation. Now I can put this outstanding request to rest!
Here you go David, and thanks for the challenge, it was worth it. Now for this to work here is what I did:
Extract original prg from T64 image acquired from the web. After extracting prg file, execute and save decrunched data from native ram location to file. Modify CBM80 to DTV80, locate and modify joystick code to read UJS. Save modified data to file. Write snippet of code @ $0820-$083F in DTVMON. Load modified 16K data file with relocate (thanks tlr!) to $0840. Exit to basic and Enter one line of basic stub code: 10 SYS2080 enter DTVMON and save ram from $0801-$4860.
Now the snippet of code from $0820-083F does one task, it relocates data from $0840-XXXX to $8000-XXXX. The CPX command at $83C controls how many pages are to be relocated. After relocation code now at $C000 is executed. The snippet from $C000 is what allows the cart image to work. It copies Kernal ($E000-$FFFF) to ram and banks out the kernal by by setting $01 to $3D  and then jumps to the start of the cart.
After all this I then transfered the file to PC and ran exomizer on it, tested it again and now here is: Ms. Pacman
Post by David Murray on Nov 2, 2006 9:25:43 GMT -5
Awesome! My most favorite arcade game in the whole world. Do you know how many times I've seen that Ms.Pacman game by Jakk's in Toy's R. Us and Wal-Mart and wanted to buy it? But I always knew I'd eventually get it working on one of my DTV units, and now I do!
Unfortunatly, I haven't been able to even test the last 5 or so games you've patched. The last 2 and a half weeks I've basically been unable to do much of anything. My Wife was very sick for 10 days with fever and some kind of rash. She essentially laid in bed the whole time. So besides working full time, I had to be nurse-maid and take care of our 3-year old child. Well, she got better but now she is having to work late everyday to catch up for the nearly 2 weeks she missed from work. So it has been like I'm a single father for nearly 3 weeks. I had planned to spend the last two weeks building onto my shuttlecraft and hacking my PAL DTV and my ZipIt. But none of those has really happened. Anyway, not really on-topic, but there is my life for the recent few weeks. Hopefully soon I'll get some time for my hobbies again.
Oh one other thing. MsPacman was already hacked for the regular DTV (I think to change the joystick to port 2) but I don't know who did it. I wonder if they had to go through all the things you did?
Anyone having any trouble with any of these games? Maybe it's because my joystick mod is not fully functional (button isn't being read) but several of these games are not working on my hummer. Mspacman and Pitfall go to the intro screen and are non-responsive, also Ghosts & Goblins goes for a few minutes and then the screen goes all garbled.
On the other hand Commando looks like it's going to work and the music plays well and Krackout works fine except that I can't make changes to the default settings without the button apparently.
Tomorrow after work I'll have another go at the button wire.
I changed the title screen references so it was accurate to the DTV's button layout, and changed both 1 and 2 player mode to always use port 2 (2 player normally alternated between port 1 and port 2).
I failed to notice that multi player mode swapped controllers. Consider two player broken in my recent Hummer conversion of Ms. Pac Man until I can account for this.
I hope some additional Hummer users are also able to enjoy these games.
I seem to have taken a liking to patching the games. It's rather fun for me to view all the methods the programmers used to interface with the joysticks. I even like to sneak a peek at the games code and the music driver.
Post by David Murray on Nov 7, 2006 19:30:16 GMT -5
Expertsetup - International Karate seems to have lots of problems. First, the music seems really fast. I'll need to compare with the music on my version 1 DTV, but I a pretty sure it is too fast (like a PAL version running on NTSC) and the entire screen flickers with garbage randomly when playing.
Post by expertsetup on Nov 7, 2006 23:31:30 GMT -5
Hmmm. didn't notice the music as I didn't have this game in the 80's. . However I did notice the problems with the players flickering a bit as well as sections of the player getting mapped to wrong locations on screen. However I did not have any of these issues with my real C=64 when I did the conversion in the first place.
Perhaps I can try another version of the game. I also had an interesting problem with raster interrupts on Jumpman Jr., a green/black $D020 color split crawls across screen in random intervals in game play. So it's clear the raster timing is broken, whats not clear is the reason.
I cant think of a reason why this would happen offhand except that to read from $DD01 rather than $DC01 would cross an additional 256byte page in ram and perhaps add time to the read of the joystick and perhaps cause the timing problem (is this way out thinking)? I think that this might be the problem but can't be sure without looking into it further. IF thats the case I might have to do more to the games than 'just' hack which CIA gets read . I have done raster code in the past so I might be able to get some traction there if thats the problem. But keep in mind that I'm no raster killer I can just wing it a bit at best. Lots for me to learn here to be sure.
Also to be honest I have to say that a lot of the games I had as a kid were imports from boards and had lots of issues, pal speed music, glitch in graphics and so on and so on. I guess to a degree I am over tolerant to these kinds of errors. I will address that. ;D
I will give an alternate known NTSC version a try (if I can find it). I only changed six bytes in this game and with a HEX editor to the original file at that. Is it possible that this is a DTV issue? I have not even looked at my hardcopy of the VIC section in DTVPG.