🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm370
Article #683

Re: memo on my structure assembler macros

#683
From: Werner Icking
Date: Mon, 15 Apr 1991 07:36
31 lines
1618 bytes
phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes:
[...]
>                STRUCTURED ASSEMBLER PROGRAMMING MACROS
> 
>         $IF   condition-1
>           .     \
[...]
Using a good Assembler (like ASM-H with SLAC extensions) there is no need to
code such programmer-unfriendly code like
R0        EQU   0
HWORD     DS    H
          LH    R0,HWORD
          $IF   ZERO
          LTR   R0,R0
          $THEN

If your Assembler supports type- and length attributes in outer and inner
macros, if you add some own types like "Register" you can code the same
similar to "high level languages" like FORTRAN:
R0       #EQUR  0
HWORD    DS     H
         IF     HWORD,EQ,0,THEN

We started this type of programming in the late 60-th -- and stopped it
some years ago. If anybody is interested I will look for a description
and the corresponding macro-library.
-- 
Werner Icking          icking@gmdzi.gmd.de          (+49 2241) 14-2443
Gesellschaft fuer Mathematik und Datenverarbeitung mbH (GMD)
Schloss Birlinghoven, P.O.Box 1240, D-5205 Sankt Augustin 1, FRGermany
                                  "Der Dativ ist dem Genitiv sein Tod."
Technical Details
Message-ID: <4532@gmdzi.gmd.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!unidui!unido!gmdzi!icking
References: <1991Apr12.053317.2473@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!unidui!unido!gmdzi!icking
From: icking@gmdzi.gmd.de (Werner Icking)
Newsgroups: comp.lang.asm370
Subject: Re: memo on my structure assembler macros
Message-ID: <4532@gmdzi.gmd.de>
Date: 15 Apr 91 07:36:55 GMT
References: <1991Apr12.053317.2473@ux1.cso.uiuc.edu>
Organization: GMD, St. Augustin, F.R. Germany
Lines: 31