::> VO> mov di,0472h
::> VO> mov es:di,ax /* Error: Memory reference expected */
::> This needs to be:
::> mov [es:di], ax
::> instead. As-is, it makes no real sense. Overriding a segment only
::> makes sense when you're referring to memory, but without the brackets di
::> is simply a register; you need to refer to the memory whose address is
::> in di.
Hi Jerry,
Quickly, since I'm not very ASM literate, I was compiling an older Borland
3rd party library, and I came across 1 warning in the ASM modules that looks
quite similar to the above. The code is inlined in a .cpp file.
The code line is (from the intermediate ASM file, and the CPP source):
cmp BYTE PTR [ds:si-2],43
and the warning is:
*Warning* opstr034.ASM(107) ":" operator ignored
Is this something I can ignore or will it "byte" me later?
# Herbert Bushong harchon@centuryinter.net [TEAM OS/2]
- Blackbeard's BBS Intelec: 239:600/0
+ Fido: 1:19/19 http://www.intelec.com/software/
---
RM 1.31 2508 "Man, that bear stinks. No wonder they call him Pooh."
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
|