News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Macro lodsc missing

Started by a1sbofo, January 09, 2023, 10:33:08 PM

Previous topic - Next topic

a1sbofo

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?


Biterider

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