The MASM Forum

Projects => ObjAsm => Topic started by: a1sbofo on January 09, 2023, 10:33:08 PM

Title: Macro lodsc missing
Post by: a1sbofo on January 09, 2023, 10:33:08 PM
Hello,
In System.in file:
I agree with the movsc/stosc/scasc instructions according to the TARGET_STR_TYPE,
but why not lodsc for lodsb/lodsw?

Title: Re: Macro lodsc missing
Post by: Biterider on January 10, 2023, 02:41:18 AM
Hi a1sbofo
This macro is simply missing because I just never needed it.
It is more or less "copy & paste" from the other macros:

; ——————————————————————————————————————————————————————————————————————————————————————————————————
; Macro:      lodsc
; Purpose:    Compile lodsb or lodsw according to TARGET_STR_TYPE.
; Arguments:  None.

if TARGET_STR_TYPE eq STR_TYPE_ANSI
  lodsc equ <lodsb>
else
  lodsc equ <lodsw>
endif


I'll add it to system.inc

Thanks!  :thumbsup:

Biterider