Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VASYL & access to system bus
#6
(2020-10-01, 05:45 PM)laubzega Wrote:
Quote:Anyway, now I have I doubt about BADLINE. 
Below what I understood so far (wihout AEC handling):
  1. it doesn't wait for condition, after the beam check the VASYL will execute the next instruction


  2. if the target raster is reached that raster line becomes a badline


  3. Otherwise, all the other rasters between become non-badline. So, for example: VIC is on raster 100, VASYL executes BADLINE 2 => raster 100 and 101 become non-badline while raster 102 becomes a badline.
Now, if the execution continues with the next instruction, does it mean that VASYL remembers that it has to force a badline or a non-badline according to raster line target (as I do in the emulator) ?
Where, in this process, AEC signal is checked ?

BADLINE is actually very simple to implement:

BADLINE ARG

is equivalent to

R = PEEK($D012) ; RASTER
C = PEEK($D011) ; CR1
MOV $D011, (C & $f8) | ((R & $07) + ARG) & $07)

(I hope this mix of BASIC, C and Vasylese is not too eye-searing Wink).


That is, it changes VIC-II YSCROLL to a value that will cause the badline to occur after ARG rasterlines. This also means that all earlier lines (if there are any), will be non-badlines.

There is no extra waiting or anything else happening, beyond what is needed to execute a successful MOV.
Thank you very much. I don't know why but at the beginning of this new emulation I decided to "force" the badline commands from VASYL with a stupid flag...
Of course, modifying yscroll (BeamRacer does exactly this) is the simplest and natural way.
Ok, the AEC signal is of course checked while writing to $D011.
Now, fld & fli demo seems to work properly.

Thanks to laubzega & silverdr for your support.
Reply


Messages In This Thread
VASYL & access to system bus - by abbruzze - 2020-09-30, 09:03 AM
RE: VASYL & access to system bus - by laubzega - 2020-09-30, 09:05 PM
RE: VASYL & access to system bus - by abbruzze - 2020-10-01, 11:07 AM
RE: VASYL & access to system bus - by silverdr - 2020-10-01, 06:06 PM
RE: VASYL & access to system bus - by laubzega - 2020-10-01, 05:45 PM
RE: VASYL & access to system bus - by abbruzze - 2020-10-02, 11:13 AM
RE: VASYL & access to system bus - by laubzega - 2020-10-02, 07:25 PM
RE: VASYL & access to system bus - by shazz - 2020-10-03, 01:30 PM
RE: VASYL & access to system bus - by abbruzze - 2020-10-03, 05:24 PM
RE: VASYL & access to system bus - by laubzega - 2020-10-04, 08:11 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)