I have legacy (DOS era) code that used:
push cs
pop ds
and that assembled fine with TASM v1.01
Trying to assemble with TASM v5.4 I get 'illegal indexing mode' error for push cs
instruction.
How can I fix that?
(Searching for [tasm] illegal indexing mode
did not return any results for this particular issue.)
EDIT: Here's the code, reduced to minimum (nonsense) that still produces the error I'm talking about.
assume cs:code
code segment
main proc
push cs
main endp
code ends
end
and here's the assembler output:
Turbo Assembler Version 5.4 Copyright (c) 1988, 2010 Embarcadero Technologies, Inc.
Assembling file: sample.ASM
**Error** sample.ASM(4) Illegal indexing mode
Error messages: 1
Warning messages: None
Passes: 1