freebasic / fbc

FreeBASIC is a completely free, open-source, multi-platform BASIC compiler, with syntax similar to MS-QuickBASIC, that adds new features such as pointers, object orientation, unsigned data types, inline assembly, and many others.
https://www.freebasic.net
877 stars 137 forks source link

MOVE TO DISCUSSIONS: hdpmi32 and cwsdpmi in dosbox #418

Open john-peterson opened 1 year ago

john-peterson commented 1 year ago

There are many critical isues that would benefit from you enabling the Discussions section on this project

Thank you


These are critical issues for writing unit tests for dos

i don't have dosemu natively in subsystem android (I'm in vacation) and need to run my test in dosbox

completely mysterious crashes led me to this

https://freebasic.net/forum/viewtopic.php?t=11845

https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/system/cwsdpmi/

https://www.japheth.de/Download/HX/hdpmivpc.zip

turns out a COMBINATION of protected mode works. one for compiling and another for runtime


dosbox -c "MOUNT c ." -c "c:" -c "fbc a.bas"

dosbox -c "MOUNT c ." -c "c:" -c "hdpmi32 -r" -c "a"
john-peterson commented 1 year ago

mode.bas


Dim As Integer i, j, k
Do
    Screen k
    Color 0, 7
    Print Using "Screen #"; k
    Do
        Do
            Color i, j
            Print Using "## ##"; i; j;
            j += 1
        Loop Until j > 7
    Print ""
    i += 1
    j = 0
Loop Until i > 15
k += 1
i = j = 0
Sleep 3000
Loop Until k > 7
Sleep
john-peterson commented 1 year ago

Screenshot_20230909-092726

Yellow text in a famous 81 game is absent from the only working TERMINAL emulator text mode emulator terminal.c in dosemu

I have two write unit tests from scratch since it's mostly ad hoc trial and error written

I still don't know if it can handle ANSI text as graphics modes at all or only ANSI mode 0