| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | two.asm |
Hello Paul!
Thus quoth Paul Edwards to All:
PE> ; two.asm - gets called from one.asm
PE> .386p
.model flat ; don't forget !!!!!!!!!!!!!!!!!!!!!
PE> _DATA segment dword public use32 'DATA'
PE> _DATA ends
PE> _BSS segment dword public use32 'BSS'
PE> ggg dd ?
PE> _BSS ends
PE> DGROUP group _DATA,_BSS
correct! Don't put STACK in here as in ONE.ASM
PE> assume cs:_TEXT,ds:DGROUP
I use CS:FLAT, DS:FLAT, SS:FLAT, ES:FLAT. That will give you the proper
(omitted) DS segment prefix on the ggg access below instead of the improper
SS segment override as in your code example (verified using IPMD).
PE> _TEXT segment dword public use32 'CODE'
PE> public ggg
PE> public bar
PE> bar proc
PE> mov ggg, eax
PE> ret
PE> bar endp
PE> _TEXT ends
PE>
PE> end
*** eMail: engert{at}ibm.net, 2:2490/2576.1{at}fidonet, 2:2490/2575.2{at}fidonet ***
--- Sqed/32 0.98/r00108
* Origin: Nachtigall/2 - ich hoer dich trappen (2:2490/2575.2)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 2490/2575 2501 1001 3001 240/5500 396/1 3615/50 229/2 12/2442 711/409 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.