Thread: Feature request
View Single Post
Old 21 February 2019, 23:04   #5
Going nowhere

Galahad/FLT's Avatar
Join Date: Oct 2001
Location: United Kingdom
Age: 47
Posts: 8,046
Originally Posted by Hewitson View Post
The only issue I can see with this is it could potentially lead to software which only works with WinUAE.

First it's cycle exact, then we'll end up being able to switch between OCS/ECS and AGA, change CPU speeds, etc. Who knows where this would end?
No, you don't understand my point at all.

Use WinUAE in non-cycle exact mode, which makes Devpac MUCH faster to assemble, however, if in the code i'm assembling it has a special WinUAE parameter, it can trigger WinUAE to activate cycle exact to accurately replicate an Amiga running the assembled code I just made, and similarly cycle exact could be turned off again within my assembled code.

Something like this:

start: movem.l d0-d7/a0-a6,-(a7)
bsr killamigados
move.l #$12345678,$e00000 ;Tell WinUAE to activate cycle exact
bsr do_intro
bsr restore_amigados
clr.l $e00000 ; Tell WinUAE to disable cycle exact mode
movem.l (a7)+,d0-d7/a0-a6
moveq #0,d0

Address $e00000 can be whatever Toni reserves.

On a real Amiga if that code was accidentally left in (not likely), it wouldn't do anything.

Doing something like this means I wouldn't have to swap config files or anything, it would all be transparent during the emulation and would make for faster development.
Galahad/FLT is offline  
Page generated in 0.04713 seconds with 11 queries