home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
READ_ME.TOO
< prev
next >
Wrap
Text File
|
1990-09-16
|
630b
|
24 lines
A CORRECTION CONCERNING ASSEMBLY MODULE SETUP
Depending on the documentation version, you may find in Chapter 10 that it is
recommended that segments be given the name "CODE" when writing your own
assembly language routines. This works fine in Turbo C, but not in certain
memory models with the Microsoft compilers. Instead, name the segment
"_TEXT", as in:
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _draw_box
_draw_box proc near
.
.
.
.
.
_draw_box endp
_TEXT ENDS
END
This approach works in all memory models for all compilers, Borland and
Microsoft alike.