Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FABS - Qbasic
#26
Hi
about using a 16bit program (FABS.COM  tsr program) and machine code calls

I think your solution in Windows 64bit is only to use DosBox or similar emulator of 16bit machine...

You cannot get work QB64 and FABS, IMHO, you must access to memory by Call Absolute instructions

Code: (Select All)
The FABS routine would be this:

SUB fabs (cmnd$, recno, fseg, errf%, adrkey%)
    '------------------------------------ FABSP ROUTINE ---------------- ----------------
    DEF SEG = fseg
    offset% = &H8
    CALL ABSOLUTE(cmnd$, errf%, recno%, adrkey%, offset%)
    rnlo = recno%: IF rnlo < 0 THEN rnlo = rnlo + 65536
    cmnd$ = "X"
    CALL ABSOLUTE(cmnd$, dum%, recno%, dum%, offset%)
    rnhi = recno%: IF rnhi < 0 THEN rnhi = rnhi + 65536
    recno = rnlo + rnhi * 65536
    DEF SEG
END SUB

that in QB64 are emulated (?) or forbidden for incompatibility with 64bit OS.

A workaround can be using  _MEM to access memory for reading and for writing, but it lasts that FABS.COM is a 16bit program TSR of DOS era.

It needs to be rewritten in QB64, if it is possible or with reverse engineering.

Good Luck
Reply


Messages In This Thread
FABS - Qbasic - by G43 - 05-25-2022, 01:47 PM
RE: FABS - Qbasic - by JuanjoGomez - 05-26-2022, 12:01 PM
RE: FABS - Qbasic - by G43 - 06-14-2022, 04:50 PM
RE: FABS - Qbasic - by G43 - 06-14-2022, 04:52 PM
RE: FABS - Qbasic - by Pete - 06-14-2022, 05:04 PM
RE: FABS - Qbasic - by G43 - 06-15-2022, 06:47 PM
RE: FABS - Qbasic - by Pete - 06-15-2022, 07:07 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-15-2022, 08:09 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-15-2022, 08:14 PM
RE: FABS - Qbasic - by mnrvovrfc - 08-12-2022, 08:29 AM
RE: FABS - Qbasic - by bplus - 06-15-2022, 08:45 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-16-2022, 10:56 AM
RE: FABS - Qbasic - by JuanjoGomez - 06-16-2022, 07:19 PM
RE: FABS - Qbasic - by G43 - 06-17-2022, 06:18 PM
RE: FABS - Qbasic - by G43 - 08-11-2022, 05:31 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 06:08 PM
RE: FABS - Qbasic - by G43 - 08-11-2022, 05:43 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:58 AM
RE: FABS - Qbasic - by mnrvovrfc - 08-12-2022, 08:41 AM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:49 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:52 PM
RE: FABS - Qbasic - by G43 - 08-15-2022, 01:25 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-17-2022, 07:07 AM
RE: FABS - Qbasic - by G43 - 08-17-2022, 01:51 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-17-2022, 02:29 PM
RE: FABS - Qbasic - by TempodiBasic - 10-10-2022, 11:06 AM



Users browsing this thread: 2 Guest(s)