Menu

#30 Level 1 GrfDrv not getting loaded by VTIO or if GrfDrv is loaded system locks up calling GrfDrv related graphics

v3.3.1
open
None
5
2018-02-11
2018-02-05
David Ladd
No

Level1:
GrfDrv is not being loaded automatically by VTIO.
If you merge GrfDrv into the OS9Boot file so it is in memory when using graphic calls system locks up.

Discussion

  • David Ladd

    David Ladd - 2018-02-06

    Ok after using MAME debugger to see if I could trace the problem down I believe the issue might be in the level1/modules/VTIO.ASM file:
    Closest thing I see is it is stuck in a loop that never ends.
    Here is the code that seems to be looping without end:

    AddrFind
             bita  #$01       ; Done all shifts ?
             bne   AddrDone
             addb  #$2        ; increment addr offset ptr
             lsra
             bra   AddrFind   ; Test again
    

    So far I am not up to par to understand what is going on here yet for me to fix it, but I thought I would share what I have found thus far. At least for the locking up part.

     
  • David Ladd

    David Ladd - 2018-02-07

    Ok so a quick update. L. Curtis Boyle and I have been working on VTIO for level1 to squash some of the issues.

    So far we now have the endless loop taken care of thus far.
    A updated VTIO.ASM for level1 has been submitted that will now properly load GrfDrv for level1 if it wasn't previously loaded.

    Some of the other issues that were described that are still lurking in GrfDrv have yet to be taken care of. So far it is just display codes $18 and $19 that aren't working as of yet.

     
  • Tormod Volden

    Tormod Volden - 2018-02-11

    Great debugging and fixes! What would be a small "hello world" to test the GrfDrv on Level1?

     
  • Rogelio Perea

    Rogelio Perea - 2018-02-11

    This is the script I was using when first facing the graphics issue on NitrOS9, all commands can be put into a single line, I was just seeting them one to a line to keep each step in sequence:

    display 0F 00 05
    display 13
    display 15 80 60
    display 1A 14
    prompt
    display 12

    This will select 256x192 buff on white (h0F), clear the screen (h13), center the graphics cursor at decimal 128,96 (h15) and draw a buff colored circle in the center of the screen radius decimal 20 (h1A), the last DISPLAY statement ends the graphics and releases the RAM back to the system.

    PROMPT holds the graphics screen until a key is pressed.

    Away from my CoCo setup so I can't try assembling the updated VTIO and try it on my system, maybe later today...

     

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo