Author Topic: Macro lodsc missing  (Read 318 times)

a1sbofo

  • Regular Member
  • *
  • Posts: 5
Macro lodsc missing
« 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?


Biterider

  • Moderator
  • Member
  • *****
  • Posts: 1082
  • ObjAsm Developer
    • ObjAsm
Re: Macro lodsc missing
« Reply #1 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:

Code: [Select]
; ——————————————————————————————————————————————————————————————————————————————————————————————————
; 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