• Help with an opcode

    From Michael Preslar@1:275/112 to All on Mon Nov 7 19:33:44 2005
    Hi.

    As I work my way through some older code, Im converting inline() statements
    to assembler. I've found one that I dont quite understand.

    inline($06/$1f) (* mov ds, es *)

    Now.. Ive tried the "mov ds, es" bit (And after being reminded that es is the way to access variables) I see that the "mov" is incorrect.

    Does anyone know what the proper asm code would be?
    --- SBBSecho 2.10-Win32
    * Origin: mount_z.synchro.net - Home of Lord/* (1:275/112)
  • From Roelof Beverdam@2:280/5218 to Michael Preslar on Wed Nov 9 23:48:24 2005
    Hello Michael,

    As I work my way through some older code, Im converting inline() statements to assembler. I've found one that I dont quite understand.

    inline($06/$1f) (* mov ds, es *)

    Now.. Ive tried the "mov ds, es" bit (And after being reminded that es is the way to access variables) I see that the "mov" is incorrect.

    Yep.

    Although effectively the same as suggested by the comment, the actaul instructions are different.

    $06 = push es
    $1F = pop ds

    Grasp the trick? ;-)

    Use these 2 instructions and your assembler will be happy.

    Cheers,
    Roelof Beverdam

    --- Dutchie V3.10.11
    * Origin: The Beaver's Nest (2:280/5218)