Do you have any idea how this error message can be eliminated?
This assembly code is just a set of macros. You need the right assembler to support these macros. They look like they're in Microsoft assembler syntax.
I don't know about TASM 1.02, that's a VERY old one. I use TASM 4.0, which can run in either Microsoft or its own 'IDEAL' mode. It should be able to assemble that code.
However, assembling that code doesn't do anything yet. It calls into an int 10h handler, which does the actual 'magic'. You need to have that int 10h handler installed first. From what I understood, you need to use something they call Graph X. Which I assume is a TSR that installs the int 10h functions. I don't have this software, have not been able to find it on the net so far.
Edit: I think I found it here:
http://www.pcorner.com/list/ASSEMBLY/GRAPHX11.ZIP/INFO/
It looks like it contains the graphics routines, but you call them directly, rather than via int 10h. Which leaves me wondering where the int 10h routines would come from. There's no BIOS ROM on a Hercules as far as I know, so it does not install them automatically.
Perhaps it's the HGC.COM file... or else, perhaps you can only call these when you're in HBASIC? No idea
In some sources it is also called "GRAFIX" instead of "GraphX"... and here it says "BIOS Interface":
https://www.google.nl/url?sa=t&rct=...nAjl9mPNQ3fnzKIOPUt-lg&bvm=bv.134495766,d.d2s
I'll check it out on my own card. Perhaps there's some BIOS functions in there after all, which would surprise me somewhat, since the INIT.ASM example I got from Hercules doesn't use BIOS, but pokes the CRTC values directly. Which afaik is what all software does.