TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: HANS LUNSING
from: THOMAS MATYSIK
date: 1998-04-17 13:51:00
subject: QLB problem

  -=| Quoting HANS LUNSING to THOMAS MATYSIK on 04-15-98 (19:05) |=-
HL>I don't know TASM, but in MASM you have a .model directive to define the
HL>memory model. For basic it has to be the medium memory model. All data
HL>in the default data segment are near, that is accessible with an 16-bits
HL>offset only. In the compact and large memory models data memory is far,
HL>that is, to access it you have to provide an offset as well as a
HL>segment (together 32-bits). Maybe you use the wrong memory model.
Here's part of the .ASM file:
.386
.model medium,basic
vgroup  Group   _vesa
assume  ds:_vesa
_vesa   Segment
Vesa            label
  Attr                  DW 0
  WinAAttr              DB 0
___------------------------------------------
  Lines removed
___------------------------------------------
  VideoBuffer           DD 0
  OffscreenMemory       DD 0
  KBOffscreenMemory     DW 0
  Reserved2             DB 206 DUP (0)
Bank                    DD ?
MySize                  DW ?
Gran                    DW ?
Temp                    DD ?
_vesa   ends
.code
public  GetVesaInfo
GetVesaInfo     proc    uses eax cx es di
  mov   ax,DGROUP
  mov   es,ax
  lea   di,Vesa
___--------------------------------------
  Rest of code cut
___--------------------------------------
        __________________________________________________
   ____|  -+-      |\/|                                   |____
   \   |   |HOMAS  |  |ATYSIK     Auckland, New Zealand   |   /
    \  |                                                  |  /
     > |        Email: thomas.matysik@softhome.net        | <
    /  |__________________________________________________|  \
   /______)                                           (_______\
-=| SLMRQuote v2.0   Copyright (C) 1997 by Thomas Matysik |=-
___
 X SLMR 2.1a X We all live in a yellow subroutine.
--- Maximus/2 3.01
---------------
* Origin: === NZMC Maxie BBS. Ak, NZ +64 9 444-0989 === (3:772/1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.