[zxspectrum] Re: R: Re: Amstrad CPC

  • From: Massimo Raffaele <massimo.raffaele@xxxxxxxxx>
  • To: "zxspectrum@xxxxxxxxxxxxx" <zxspectrum@xxxxxxxxxxxxx>
  • Date: Mon, 13 Mar 2017 12:05:19 +0100

Ah... una procedura non banale :-(.
Dovremmo preparare un certo numero di programmi e salvarli in un modo già
caricabile direttamente dallo Spectrum. Così faciliteremmo la cosa agli
appassionati che vogliono provare l'emulazione :-).

Max


2017-03-13 11:56 GMT+01:00 Stefano <flydreamf@xxxxxxxxx>:

Per caricarli c'è scritto come fare:

A lot of commercial software does work. Any software which depends on the
VIA timers will fail to work - Wacky Waiters is an example



3.2) Loading games



As the tape and IEE488 devices are not emulated an alternative method is
required to load in games. The following example allows you to play
"Blitzkreig" written by Llamasoft. It is perfectly legal to download and
play this game as Jeff Minter has given full permission. The game can be
obtained from http://www.llamasoft.co.uk/lc-8bit.php



i) Download the Blitzkreig game from the website. It comes as a .TAP
(tape) file. Or if you're Argentinian, you'll probably want to try another
game (read Mr. Minter's blog for an explanation) - Gridrunner works fine on
the emulator and comes as a .PRG file. However, the PRG file only seems to
load if you have a completely unexpanded VIC (ie: not even the 3K RAM
expansion).



ii) Launch the VICE (versatile Commodore emulator) VIC 20 emulator.



iii) Configure the VIC20 to match the emulators specification. Select
Settings -> VIC settings and make sure the 3K RAM (block 0) expansion
option is selected.



iv) Attach the .TAP file and let it load.



v) Once the game has started press ALT+M to enter the monitor



vi) Save the 8K RAM of the VIC by typing in SAVE "filename.bin" 0 $0000
$1FFF



vii) Unfortunately VICE saves the block of memory with a 2 byte header.
This needs to be removed. I use Filetweak as it's free and is a very good
hex viewer / editor. If you haven't got such a tool you could try loading
the memory block two bytes lower (ie: $7FFE instead of $8000), but bear in
mind you will corrupt the kernal by doing this. As of V1.90 a routine can
undo the corruption after loading in the binary block by setting PC to
$B3F8. This will reset the memory contents and start executing regardless
of what the machine was doing prior to being interrupted.



viii) Load the .bin file (which should be exactly 8192 bytes long) at
$8000 into your Spectrum (easier to do this on an emulator...)



ix) The emulator might lockup and will usually make the border go red. Try
pressing BREAK to force an NMI. This will usually work. If it does work,
then you'll be returned to the READY prompt. Just type in RUN and this
should start the game. If you want to avoid this hit and miss approach then
you have to do the following :



Load the memory block in at $8000 (first 8K RAM only!! - remainder of RAM
needs to be loaded in at $0200, then $5E00, then $2000)

Set DE to equal the 6502 PC

Set E' to equal the 6502 S(tack) register

Set IYH to equal the 6502 Y register

Set IYL to equal the 6502 X register

Set A' to equal the 6502 A register

Set F' to equal the 6502 F register (not quite accurate as only the Z80
C,S and Z flags are used by the 6502 core)

Jump to the address in IX (eg: JP (IX) ) to start decoding the next 6502
instruction.







3.3) Saving games



It's probably easiest to save the Spectrum's memory as a snapshot if you
want to play a VIC20 game at a later date. The VIC20 8K RAM ($0000-$1FFF)
is held at $8000-$9FFF in the Sinclair memory map. VIC memory beyond $2000
is held in the ZX 64K RAM bank at $0200-$3FFF and $5E00-$5FFF. See section
4 for the complete memory map. You could export the memory out of the
emulator and import back into VICE, which then allows you to save in "real"
disk and tape formats.



Il 13/03/2017 10:40, Enrico Maria Giordano ha scritto:



Il 13/03/2017 10:26, Stefano ha scritto:

ma gli emulatori non vanno in errore se si mette in ingresso un tap che
non è per quella piattaforma?


In effetti, sì. Allora un WAV. Me lo puoi indicare?

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg




Other related posts: