Author Topic: WinAPE enhancements  (Read 24867 times)

0 Members and 1 Guest are viewing this topic.

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE enhancements
« Reply #50 on: 01:32, 04 April 16 »
Anyone had the problem?

I've never had this problem, and have not been able to replicate it except with more than one instance of WinAPE running. If you open WinAPE once it will lock the DSK images. If you open a second copy of WinAPE it won't be able to open the DSK images and this will cause it to create empty images when it gets closed.

There is an option in WinAPE to prompt before saving changes to disc images. Turn it on.

The lock on the disc images is due to the old code which wrote directly back to the disc image when a sector was written, and to ensure the image isn't changed by something else while you're using WinAPE. The only real way to remove this requirement would be to read the entire disc image into memory when selected or at startup.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: WinAPE enhancements
« Reply #51 on: 02:18, 04 April 16 »
Get WinApe started
Insert an DSK
End WinApe
Start it again
DSK is down at 256 bytes (destructed)



TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE enhancements
« Reply #52 on: 02:22, 04 April 16 »
Get WinApe started
Insert an DSK
End WinApe
Start it again
DSK is down at 256 bytes (destructed)

I'd like to know how you do that, because I can't. How long do you wait between closing WinAPE and starting it again?

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: WinAPE enhancements
« Reply #53 on: 02:27, 04 April 16 »
I'd like to know how you do that, because I can't. How long do you wait between closing WinAPE and starting it again?


Sometimes the same day, sometimes an another day. I can't predict when it happens. Of course if happens not always, but too often. My solution is to get DSKs out before closing WinApe. That works at least for me.

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE enhancements
« Reply #54 on: 03:06, 04 April 16 »
Sometimes the same day, sometimes an another day.

Actually, under Windows 7, I just had two instances of WinAPE running, both using the same DSK image, but I didn't try and write to either of them, and when I closed them the DSK image remained intact. That said, I'm changing the code so that WinAPE tests for the existence of the file, and will only create a blank image if the file doesn't exist. If there is an error opening the file it should show an error message and make the disc read-only so you can't write to it at all.

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.764
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1011
  • Likes Given: 1723
Re: WinAPE enhancements
« Reply #55 on: 10:24, 04 April 16 »
Get WinApe started
Insert an DSK
End WinApe
Start it again
DSK is down at 256 bytes (destructed)


Mostly guessing here, but that sounds like the old DSC format which ties Winape in with RWCPC, but with that format there's 2 Files (DSC & HDR I think) and the 2nd file holds the Contents of the Disk which unlike the DSK format starts from 0 bytes upwards.


A couple of times I accidentally created Disk images of programs I typed in and when I saved, the file type box had DSK DSC and something else and made a DSC by mistake for that program just by entering that extension.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline CanonMan

  • CPC664
  • ***
  • Posts: 144
  • Liked: 18
  • Likes Given: 40
Re: WinAPE enhancements
« Reply #56 on: 11:15, 04 April 16 »
Get WinApe started
Insert an DSK
End WinApe
Start it again
DSK is down at 256 bytes (destructed)


That's never happened to me.

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 870
  • Liked: 410
  • Likes Given: 72
Re: WinAPE enhancements
« Reply #57 on: 14:17, 04 April 16 »
Given Executioner's description of how WinAPE works, I'd put money on it being something like a virus scanner locking the file for too long on opening.

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE enhancements
« Reply #58 on: 16:36, 04 April 16 »
I've changed the code to test for existence of the file, and only create a new image if it doesn't exist. If it fails to open the file for any other reason, it either warns you and opens it in read-only mode, or if that also fails it sets the image to read-only so you can't cause an update to write the file when it's closed.

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: WinAPE enhancements
« Reply #59 on: 10:08, 10 April 16 »
I may actually change the code again yet, and always open the file in read-only mode with no locks, then check the file modification date at the end when I close the image and warn if something else has modified it.

Offline SuTeKH/Epyteor

  • 6128 Plus
  • ******
  • Posts: 1.332
  • Country: 00
  • Liked: 1254
  • Likes Given: 1999
Re: WinAPE enhancements
« Reply #60 on: 12:07, 10 April 16 »
i lost two .DSK -> they fall down to 256 bytes (as far as i remember) with code and GFX :/
i switched back to Winape 2.0b1 and no problem since
anyway, i'm doing more backups now

The only way I've ever seen WinAPE create a 256 byte .dsk file is when you change the .dsk filename or move it to another folder in Windows without EJECTing or changing the active .dsk file!

eg;
Open WinAPE
Insert (or create) TEST1.dsk to Drive A
Close WinAPE
Rename TEST1.dsk to TEST2.dsk in Windows.
Open WinAPE
Close WinAPE
WinAPE creates test1.dsk of length 256 bytes, TEST2.dsk is not affected.

But this is not a new thing, WinAPE has ALWAYS done this.
« Last Edit: 12:47, 13 April 16 by Gryzor »

Offline Trebmint

  • 464 Plus
  • *****
  • Posts: 444
  • Country: zw
  • Liked: 297
  • Likes Given: 29
Re: WinAPE enhancements
« Reply #61 on: 11:04, 13 April 16 »
How about putting a few video filters in like 2xSal or EPX. Would be nice to see the CPC looking a little different.


Or even a palette changer which could physically alter the CPC palette colours to user settings. For instance the user could set symbos to be 4 colours #fff,#aaa,#555,#000 so you get a cool grayscale. You could even do splits like the plastice strips you used to find on breakout back in the day 

Offline trabitboy

  • Supporter
  • CPC664
  • *
  • Posts: 90
  • Country: be
  • Liked: 50
  • Likes Given: 74
Re: WinAPE enhancements
« Reply #62 on: 11:56, 13 April 16 »
Yes, this is probably it - when WinAPE is minimized, it crashes much less frequently.I don't know what is the required resolution, I use Lenovo W520 laptop with NVidia Quadro 1000M chipset and windows 8.1 Enterprise. I run it in 1920x1080 32bit but the chipset also supports other, lower resolutions, however it may not support the WinAPE fullscreen resolution.
An option to select the resolution for fullscreen would be great.
 

At the moment, I'm using a winape instance on my pc which I hibernate/wake up all the time,
so I got "reacquainted" with the problem  8) )

If winape is running, it will crash when pc comes back from hibernation ( fully powered off, memory written to disk );
but if it is paused it with F7 , it's ok; coming back from hibernation I can continue emulation without pb.

So I got REALLY used to F7 before putting my pc to sleep, but once in a while I miss  :picard:
Thanks for the great emulator by the way!

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 756
  • Country: fr
    • urban exploration
  • Liked: 1023
  • Likes Given: 637
Re: WinAPE enhancements
« Reply #63 on: 15:42, 13 April 16 »
i wrote a simple piece of code last week


Winape settings -> 6128 Plus


unlock ASIC
set raster interrupt to 1
halt
64 nop loop 200 times


then i saw unsynchronised effects...


with Winape debug, i used step by step execution then i saw sometimes it jumps to #38!


the raster interrupt is not supposed to disable classic interruptions?

use RASM, the best assembler ever made :p

I will survive

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: WinAPE enhancements
« Reply #64 on: 21:07, 13 April 16 »
Or even a palette changer which could physically alter the CPC palette colours to user settings. For instance the user could set symbos to be 4 colours #fff,#aaa,#555,#000 so you get a cool grayscale. You could even do splits like the plastice strips you used to find on breakout back in the day

Well, then it's definitely no CPC anymore. So why not just use Windows in gray scale? Or why not teach symbos to use the Plus colors, since WinApe is a Plus emulator?

IMHO it's a bad thing to add features to an emulator which don't exist in reality, because we end up having something virtual and nothing will run on real CPCs or Plusses any longer.

Of course everybody can have a different POV about that, just sharing my thoughts.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Trebmint

  • 464 Plus
  • *****
  • Posts: 444
  • Country: zw
  • Liked: 297
  • Likes Given: 29
Re: WinAPE enhancements
« Reply #65 on: 21:18, 13 April 16 »
Well, then it's definitely no CPC anymore. So why not just use Windows in gray scale? Or why not teach symbos to use the Plus colors, since WinApe is a Plus emulator?

IMHO it's a bad thing to add features to an emulator which don't exist in reality, because we end up having something virtual and nothing will run on real CPCs or Plusses any longer.

Of course everybody can have a different POV about that, just sharing my thoughts.  :)
Well most of the well respected emulators for NES, SNES, Megadrive, Master System, 2800/7800, long long list of machines from the 80's have these upscalers. I guess you're argument is true if you're into purely the machine, however if you want to play Roland on the Ropes or Sorcery and want better smoother less blocky graphics there is no way of doing so.
This doesn't change the code, speed or gameplay, just allows those that want to turn it on to have it look slightly better graphics

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.096
  • Country: fr
  • Liked: 400
  • Likes Given: 436
Re: WinAPE enhancements
« Reply #66 on: 22:13, 13 April 16 »
Well most of the well respected emulators for NES, SNES, Megadrive, Master System, 2800/7800, long long list of machines from the 80's have these upscalers. I guess you're argument is true if you're into purely the machine, however if you want to play Roland on the Ropes or Sorcery and want better smoother less blocky graphics there is no way of doing so.
This doesn't change the code, speed or gameplay, just allows those that want to turn it on to have it look slightly better graphics

For me if you want to play with less blocky graphics, play a more recent game... Just my humble opinion.

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 870
  • Liked: 410
  • Likes Given: 72
Re: WinAPE enhancements
« Reply #67 on: 22:19, 13 April 16 »
i wrote a simple piece of code last week


Winape settings -> 6128 Plus


unlock ASIC
set raster interrupt to 1
halt
64 nop loop 200 times


then i saw unsynchronised effects...


with Winape debug, i used step by step execution then i saw sometimes it jumps to #38!


the raster interrupt is not supposed to disable classic interruptions?

The PRI disables the standard gate array interrupts, but it doesn't change what the Z80 actually does when an interrupt occurs. If you're still in IM1, then it will still jump to #38 on each Raster Interrupt.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 756
  • Country: fr
    • urban exploration
  • Liked: 1023
  • Likes Given: 637
Re: WinAPE enhancements
« Reply #68 on: 22:51, 13 April 16 »
The PRI disables the standard gate array interrupts, but it doesn't change what the Z80 actually does when an interrupt occurs. If you're still in IM1, then it will still jump to #38 on each Raster Interrupt.


I mean, i have more than one interrupt per VBL with PRI enable!
use RASM, the best assembler ever made :p

I will survive

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 870
  • Liked: 410
  • Likes Given: 72
Re: WinAPE enhancements
« Reply #69 on: 23:42, 13 April 16 »

I mean, i have more than one interrupt per VBL with PRI enable!
Hmm, shouldn't happen and I've never seen WinAPE get that wrong, I think it'd be way too obvious if it did. Bug in your code, perhaps?

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 756
  • Country: fr
    • urban exploration
  • Liked: 1023
  • Likes Given: 637
Re: WinAPE enhancements
« Reply #70 on: 23:53, 13 April 16 »
Hmm, shouldn't happen and I've never seen WinAPE get that wrong, I think it'd be way too obvious if it did. Bug in your code, perhaps?


i solved the problem with a DI after the HALT and a EI when VBL occurs


i will simplify the code to isolate the problem (if it is not a bug in my code) and post here
use RASM, the best assembler ever made :p

I will survive

Offline Trebmint

  • 464 Plus
  • *****
  • Posts: 444
  • Country: zw
  • Liked: 297
  • Likes Given: 29
Re: WinAPE enhancements
« Reply #71 on: 23:54, 13 April 16 »
For me if you want to play with less blocky graphics, play a more recent game... Just my humble opinion.
I dont actually understand this really? If it doesnt change the software, just improves the imagery via the emulator then people who dont want to use it dont and people who do can!
Are you really saying I wont use it, so I dont think anyone should be allowed too? Most other system emulators employ it so I cant see why the CPC is so pure as not to allow it

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.096
  • Country: fr
  • Liked: 400
  • Likes Given: 436
Re: WinAPE enhancements
« Reply #72 on: 23:59, 13 April 16 »
I dont actually understand this really? If it doesnt change the software, just improves the imagery via the emulator then people who dont want to use it dont and people who do can!
Are you really saying I wont use it, so I dont think anyone should be allowed too? Most other system emulators employ it so I cant see why the CPC is so pure as not to allow it


You like to extrapolate don't you?  :D


All i said is i find strange to want to play again an old game, and at the same time wanting to butcher his look. For me, if you want smooth graphics, play a recent game.



But every one is entitled to his own opinion and rights to play how he wants.
« Last Edit: 00:01, 14 April 16 by remax »

Offline Trebmint

  • 464 Plus
  • *****
  • Posts: 444
  • Country: zw
  • Liked: 297
  • Likes Given: 29
Re: WinAPE enhancements
« Reply #73 on: 00:11, 14 April 16 »

You like to extrapolate don't you?  :D



Extrapolate not really. Interpolate hell yeah  ;D

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 756
  • Country: fr
    • urban exploration
  • Liked: 1023
  • Likes Given: 637
Re: WinAPE enhancements
« Reply #74 on: 00:23, 14 April 16 »
Here is a simple piece of code



Quote
call WaitVBL
call AsicON

MainLoop:
ld a,1
ld (#6800),a ; PRI line 1
ld b,199
ld de,#FF
ld hl,#6400
halt
loop64:
ld (hl),d ; split-raster
ld (hl),e
ld (hl),d
ld (hl),e
defs 64-4-8,0
djnz loop64
jp MainLoop


I have another INT 50 nops after the first INT. Cause of the extra-interrupt, split-rasters are delayed



[/size]
use RASM, the best assembler ever made :p

I will survive