News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Recent posts

#1
MasmBasic & the RichMasm IDE / Re: Silly question
Last post by NoCforMe - Today at 03:23:11 PM
Quote from: daydreamer on Today at 04:43:42 AMExcept ,one of my friends bought ABC 802 for his student room
Hmm, cute li'l computers.
(Z80-based, no less)
#2
GoAsm / Re: Implementation of WebView2
Last post by jj2007 - Today at 03:10:01 PM
The exe works fine, compliments :thumbsup:

Timo had something similar some time ago.
#3
GoAsm / Implementation of WebView2
Last post by jorgon - Today at 03:01:02 PM
Hi All

WebView2 allows you to embed a modern (Chromium/Edge) browser in an ordinary Window.
The SDK is mostly .net, but there are some C++ examples.
However, how it works is exceptionally obscure - until now!
Here is an implementation of WebView2 in one file using GoAsm (no includes - hurrah!).

The code relies on one Windows redistributable DLL - WebView2Loader.dll (in this case the 32 bit version).  The call to that DLL kicks everything off as can be seen from the code.

Cheers

Jeremy
#4
Pelle's C compiler and tools / Re: WebView2 test
Last post by jorgon - Today at 02:33:48 PM
Hi All

Many thanks TimoVJL for the files showing how you implemented WebView2 in C, and in particular the header files and the exe.  Prior to seeing these files, I had got very bogged down trying to decipher the .net stuff.  I was getting quite frustrated because I like to know how things work which is why I like assembler, but I find that stuff quite incomprehensible.  The code is further obscured by the multitude of header files, includes and static libs with no way of knowing which are being used by the code in question.

The exe that you posted allowed me to see how the implementation looks in assembler, and so I was able to create the attached sample, which I note is actually a lot simpler than the old WebBrowser2 implementation.

The attached files create an ordinary window and displays the MASM forum inside.  It relies on one Windows redistributable DLL - WebView2Loader.dll (in this case the 32 bit version).  The call to that DLL kicks everything off as can be seen from the code.

All the code is all in one file (no includes) which makes it easier to follow.

Sorry, it's in GoAsm but obviously could be converted to your favourite assembler.

Cheers

Jeremy
#5
The Laboratory / Re: DBScan, Homogeneity and Co...
Last post by guga - Today at 11:14:32 AM
New version

A bit faster, but i´m not quite sure about the results. ´ll make a double check later.
#6
16 bit DOS Programming / Re: Line Drawing
Last post by tda0626 - Today at 08:05:31 AM
Don't think it will be an issue.
#7
16 bit DOS Programming / Re: Line Drawing
Last post by NoCforMe - Today at 05:59:29 AM
Can your plotLineXXX() routines handle horizontal and vertical lines? Those would be the other two cases to check for, I would think. (If the plot routine can handle horiz. & vert., no need to check for them.)

Remember: horizontal: slope = 0. Vertical: slope =
#8
16 bit DOS Programming / Re: Line Drawing
Last post by tda0626 - Today at 05:30:12 AM
I was going to implement this from the Bresenham Algo wiki. Looks like it checks for 4 cases. What other cases would there be?



plotLine(x0, y0, x1, y1)
    if abs(y1 - y0) < abs(x1 - x0)
        if x0 > x1
            plotLineLow(x1, y1, x0, y0)
        else
            plotLineLow(x0, y0, x1, y1)
        end if
    else
        if y0 > y1
            plotLineHigh(x1, y1, x0, y0)
        else
            plotLineHigh(x0, y0, x1, y1)
        end if
    end if

#9
The Workshop / Re: Line-drawing routine
Last post by NoCforMe - Today at 04:44:50 AM
Well, to my chagrin I realize my routine will never be a speed contender. I had forgotten about this:
; Calculate slope (y1-y0/x1-x0):
MOV EDX, $slopeFactor
IMUL EDX
IDIV xDist
MOV deltaY, EAX ;This is amount (fractional) to add to Y each time.
Very un-Bresenham (which only uses adds and shifts).
Oh well.
#10
MasmBasic & the RichMasm IDE / Re: Silly question
Last post by daydreamer - Today at 04:43:42 AM
Thanks timo, David for showing interesting photos

While most friends got foreign gaming computers,Atari,Amiga etc
Except ,one of my friends bought ABC 802 for his student room