0

In my masm project there is one line of code as given below

LDS SI,[SS:BX]

When i try to execute above line of code then MASM gives following error:

ERROR: invalid use of 
register

Please guide me.

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
godmahakal
  • 57
  • 3
  • 1
    MASM might want the segment override outside the square brackets? That syntax assembles fine with NASM, but that's a different assembler with significant syntax differences. – Peter Cordes Aug 08 '20 at 05:49
  • 3
    `SS:[BX]` should work; [Assembly Segments in opcodes](https://stackoverflow.com/q/10820836) shows that's where MASM-style disassembly puts the ss prefix. – Peter Cordes Aug 08 '20 at 05:54

0 Answers0