perry_m Posted November 14, 2009 Share Posted November 14, 2009 PETARI: Commdore PET emulator for Atari XL/XE Version 0.5 This is the first release, it has not been tested on a real machine yet. petari_0.5.zip Screenshots: PETARI 0.5 Documentation PETARI is a Commodore PET emulator for the Atari XL/XE. It emulates a 40-column PET. Joysticks and sound are supported. A mini-DOS supports limited disk access. INSTALLATION: For reasons of copyright, the official distribution of PETARI does not include the needed ROMs. The ROMs need to be appended to the end of the .XEX file. For example: copy /b petari1_stripped+chargen+basic1+edit1g+kernal1 petari1.xex copy /b petari2_stripped+chargen+basic2+edit2g+kernal2 petari2.xex copy /b petari4_stripped+chargen+basic4+edit4g40+kernal4 petari4.xex USAGE: Press START after loading a program to apply patches if necessary. For example, if the keyboard doesn't work. If the screen flashes after pressing START then a patch was applied. It is only necessary to press START once. If there was no flash, that program does not need a patch. The disk access is limited to loading, saving, and reading the directory. Deleting and overwriting files are not supported. Having more than one file open at once is not supported. 4 drives are supported (D1:-D4:) as drives 8, 9, 10 and 11. Wildcards are supported (* and ?). Only standard 90K Atari DOS2.0S disks are supported. Double and Extended density disks are not supported. Filenames are 11 characters long (8+3). The 8.3 format is not used, the extension becomes part of the filename. Saving files is not fully tested. Do not use PETARI to save to a disk containing important data. Examples: Load the directory of D1: and display it: LOAD "$",8 LIST Load the first file from D2: and run it LOAD "*",9 RUN Save a file named "FILE" to D4: SAVE "FILE",11 JOYSTICK: The joystick can be reprogrammed by using BASIC poke statements. fire button: poke 59600,X down-right poke 59605,X up-right poke 59606,X right poke 59607,X down-left poke 59609,X down-right poke 59610,X left poke 59611,X down poke 59613,X up poke 59614,X Replace X with the Atari scan-code for the key to be used. Default settings are the number pad and A for fire. CREDITS The IEEE-488 patch to BASIC 1 is from VICE. Atari800 was used to help develop PETARI. 1 Quote Link to comment Share on other sites More sharing options...
Beetle Posted November 14, 2009 Share Posted November 14, 2009 Awesome first release! Kinda interesting to emulate even older machines on our old machines 1 Quote Link to comment Share on other sites More sharing options...
Mr.Amiga500 Posted November 14, 2009 Share Posted November 14, 2009 Kinda interesting to emulate even older machines on our old machines I agree with that. I once used an Amiga 500 to emulate MS-DOS to run a DOS Atari 800 emulator. Now I can emulate a PET inside that Atari emulator and "quad-emulate" on my Amiga. (...or is that "tri-emulate"? I've lost count. ) No, now that I've got a real Atari, I'll just run it on that.... until I get a real PET. Thanks for the emulator, perry_m. The screenshots look great. Is there a way to make the PET emulator green on black? To me, a PET isn't a PET unless it's green-screen. Quote Link to comment Share on other sites More sharing options...
doctorclu Posted November 14, 2009 Share Posted November 14, 2009 Wow this is simply amazing. I was still amazed by the Apple 2 emulator a while back, but this is cool too. How is this even possible? Quote Link to comment Share on other sites More sharing options...
TimsterAA Posted November 14, 2009 Share Posted November 14, 2009 Kinda interesting to emulate even older machines on our old machines I agree with that. I once used an Amiga 500 to emulate MS-DOS to run a DOS Atari 800 emulator. Now I can emulate a PET inside that Atari emulator and "quad-emulate" on my Amiga. (...or is that "tri-emulate"? I've lost count. ) No, now that I've got a real Atari, I'll just run it on that.... until I get a real PET. Thanks for the emulator, perry_m. The screenshots look great. Is there a way to make the PET emulator green on black? To me, a PET isn't a PET unless it's green-screen. Now this would be interesting - and worth a video to see it happen! Boot up a Windows machine, and run an Amiga emulator. Within that, run the MS-DOS emulator. Within that, run your A800 emulator. And now, within that, run this Pet emulator. LOL...! Quote Link to comment Share on other sites More sharing options...
pps Posted November 14, 2009 Share Posted November 14, 2009 Now this would be interesting - and worth a video to see it happen! Boot up a Windows machine, and run an Amiga emulator. Within that, run the MS-DOS emulator. Within that, run your A800 emulator. And now, within that, run this Pet emulator. LOL...! Why not try this from a MAC or a Linux machine Start your machine, run the windows, then run the amiga... Or better... run your Nokia N95, start dosbox, start win95, start winuae... Quote Link to comment Share on other sites More sharing options...
Mr.Amiga500 Posted November 14, 2009 Share Posted November 14, 2009 I like it better when older machines emulate newer machines. On my 1987 A500, I emulated 1998 MacOS 8.1. (...and in that I emulated....) But emulation of anything on such an old computer as an Atari 8-bit is very impressive indeed. Quote Link to comment Share on other sites More sharing options...
miker Posted November 15, 2009 Share Posted November 15, 2009 Very interesting and promising project! I've merged the files as it was descibed in first post (and in doc-file as well). I took the ROM-files form latest VICE release and ran combine.bat from "your" petari archive. The only worked file I found is petari2.xex although it works only in emulator (I've tested it on PLus 4.0). On real machine I wasn't able to load anything from ATR. Strange thing is: the drives are shown with "offset" (ie. D1: is visible as 9, D2: as 10 etc.). What's more "joystick-patch" works - tested on Space Invaders and StarWars. Maybe add option to remap PET-joystick to atari-one. Overall - good job for a first release. Quote Link to comment Share on other sites More sharing options...
miker Posted November 15, 2009 Share Posted November 15, 2009 Oh, seems that PETARI1 works, too. Only PETARI4 seems to be "not so working". Quote Link to comment Share on other sites More sharing options...
miker Posted November 15, 2009 Share Posted November 15, 2009 One more note - when load/save produces "nothing", try turning off "SIO patch". Quote Link to comment Share on other sites More sharing options...
miker Posted November 17, 2009 Share Posted November 17, 2009 OK, did some test on PETari (using AtariWinPLus 4.0). 1. Killer poke test - turning off screen-update checking: http://www.youtube.com/watch?v=ZrFWboBhJEY 2. Listing and running programs (introducing Ouranos game): http://www.youtube.com/watch?v=r2iH5hn6m2E 3. Running Space Invaders (machine language program form BASIC): http://www.youtube.com/watch?v=dVHmYl10b8c. Have fun! Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 17, 2009 Share Posted November 17, 2009 Miker,great videos... Jesus... the cbm dos appeared very long on the cbm machines... I guess there is not much difference in the pet dos than in the c128 dos when looking at the LOAD"$",10... and the sound fx of the space invaders sound familiar... does the PET do not have any gfx mode instead of the text modes? anyway good work so far... any PET classic which we should test as game? Quote Link to comment Share on other sites More sharing options...
TMR Posted November 18, 2009 Share Posted November 18, 2009 Jesus... the cbm dos appeared very long on the cbm machines... I guess there is not much difference in the pet dos than in the c128 dos when looking at the LOAD"$",10... Yup, it all dates back to the PET including the variation of Commodore BASIC used in the C64, C16/Plus/4 and C128 - i think the default device number for the drive is 8 on the PET as well...? and the sound fx of the space invaders sound familiar... does the PET do not have any gfx mode instead of the text modes? Nope, regardless of model the PET only has a ROM font and some screen RAM - the resolution in use varies between machines (some later models have 80 column displays) and user-defined graphics have been produced by constantly changing the contents of the screen as the refresh goes past, but getting that to work on all models of PET is... well, challenging. Technically the machine doesn't have sound either (or at least the early models don't, the later ones have a "bell" but i'm not sure how flexible it actually is) - there was a quick flash at 48 seconds into the PET Invaders video where the wiring for the hardware used for the sound in game is displayed; my own PET game Blok Copy uses the same hardware to play music (a somewhat gleepy two channel rendition of a ProTracker module using a truly horrendous step time driver i coded) and handle in-game sound effects. Quote Link to comment Share on other sites More sharing options...
miker Posted November 18, 2009 Share Posted November 18, 2009 Yeah, CBM's device 8 should be read as D1:. Howewer, after (re)linking PETari files with PET roms when I ran them on PLus, I've encountered strange drive "offset" (told about it in one of earlier posts here in this thread). So, having petari.atr as D1: and games.atr as D2: I call device 10 (yeah, there should be 9, but it point to D1: and device 8 is unaccessible). Quote Link to comment Share on other sites More sharing options...
Shaun.Bebbington Posted November 18, 2009 Share Posted November 18, 2009 I can't get PETAri to work :-( Any help? Regards, Shaun. Quote Link to comment Share on other sites More sharing options...
mimo Posted November 19, 2009 Share Posted November 19, 2009 I can't get PETAri to work :-( Any help? Regards, Shaun. nor can I, can I have an idiots guide:dunce: Quote Link to comment Share on other sites More sharing options...
analmux Posted November 19, 2009 Share Posted November 19, 2009 Yeah, where can we download the PET ROM images? Anyway, may first question would be: Is this a realtime emulator? Or still 50% or 25% of original machine's speed? Just like the Spectrum emulator at 10%? Or realtime? Quote Link to comment Share on other sites More sharing options...
Rybags Posted November 19, 2009 Share Posted November 19, 2009 Practically all the C= 8-bit machine ROM images are in WinVICe. Quote Link to comment Share on other sites More sharing options...
perry_m Posted November 22, 2009 Author Share Posted November 22, 2009 PETARI 0.6 now available. Changes in version 0.6: * Fix drive numbers * Customize colours * PET user port joystick * SIO retry and some error handling INSTALLATION: For reasons of copyright, the official distribution of PETARI does not include the needed ROMs. The ROMs need to be appended to the end of the .XEX file. For example: copy /b petari1_stripped+white+chargen+basic1+edit1g+kernal1 petari1.xex copy /b petari2_stripped+white+chargen+basic2+edit2g+kernal2 petari2.xex copy /b petari4_stripped+white+chargen+basic4+edit4g40+kernal4 petari4.xex For a green coloured version, replace "white" above with "green" To customize the colours, create a 2 byte file with the foreground and background colours you want and use it in place of "white". User-port joysticks To replace the keyboard joystick with the PET's native user-port joysticks, use poke 59601,0 To revert back, use poke 59601,255 Two joysticks are supported this way. petari_0.6.zip Quote Link to comment Share on other sites More sharing options...
Mr.Amiga500 Posted November 22, 2009 Share Posted November 22, 2009 Oooh... "customize colours"... awesome. Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted November 22, 2009 Share Posted November 22, 2009 Impressive! Space Invaders brought back memories from 1980, freshman year of high school. The school I went to in McHenry, IL had a bunch of PETs and a hacked hamburger radio that plugged in for sound. I wrote a version of PacMan for it in BASIC. It was horrendously slow. We moved to Texas before I learned machine language on my VIC 20 so I never got a chance to speed it up. A friend told me that they later ran it through a basic compiler and it was very snappy after that. I was under the impression the Atari was limited to 24 lines of text, how do you handle the PET's 25 line display? Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 22, 2009 Share Posted November 22, 2009 SpiceWare... due to custom display list you can define more char lines... Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted November 22, 2009 Share Posted November 22, 2009 Thanks for the info! Quote Link to comment Share on other sites More sharing options...
miker Posted November 22, 2009 Share Posted November 22, 2009 (edited) OK, I'm now able to load and run programs using it on real Atari but it works only when QMEG OS (version 4.04) is turned on. Still can't load anything without that. Moreover - there's annoying constant noise after loadng petari1 or petari2, similar to the sound present during saving to tape (sometimes they run quietly but only sometimes). It happens also on real stuff, on emulators they seem to run quietly. Edited November 22, 2009 by miker Quote Link to comment Share on other sites More sharing options...
miker Posted March 17, 2010 Share Posted March 17, 2010 Any news on this great project? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.