<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Vax to Alphaserver Macro Conversion in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vax-to-alphaserver-macro-conversion/m-p/4251654#M90780</link>
    <description>&lt;!--!*#--&gt;No 'port' needed. &lt;BR /&gt;Just general and recommended cleanups.&lt;BR /&gt;It works for me, in exactly 1 test.&lt;BR /&gt;It might just work for you...&lt;BR /&gt;&lt;BR /&gt;$create tmp.mar&lt;BR /&gt;.psect data     wrt,noexe&lt;BR /&gt;&lt;BR /&gt;INFAB:  $FAB    NAM=NAMBLK&lt;BR /&gt;INRAB:  $RAB    FAB=INFAB&lt;BR /&gt;NAMBLK: $NAM&lt;BR /&gt;&lt;BR /&gt;.psect code     nowrt,exe&lt;BR /&gt;&lt;BR /&gt;                .entry  GETFID,^M&amp;lt;&amp;gt;&lt;BR /&gt;                MOVL    4(AP),R0&lt;BR /&gt;                MOVB    (R0),W^INFAB+FAB$B_FNS&lt;BR /&gt;                MOVL    4(R0),INFAB + FAB$L_FNA&lt;BR /&gt;                $OPEN   FAB=W^INFAB&lt;BR /&gt;                BLBC    R0,EXIT&lt;BR /&gt;                MOVL    8(AP),R0&lt;BR /&gt;                MOVAL   NAMBLK,R1&lt;BR /&gt;                MOVW    NAM$W_FID_NUM(R1),(R0)+&lt;BR /&gt;                MOVW    NAM$W_FID_SEQ(R1),(R0)+&lt;BR /&gt;                MOVW    NAM$W_FID_RVN(R1),(R0)&lt;BR /&gt;                $CLOSE  FAB=W^INFAB&lt;BR /&gt;EXIT:           RET&lt;BR /&gt;                .END&lt;BR /&gt;&lt;BR /&gt;$create test.bas&lt;BR /&gt;        map (x) word a,b,c&lt;BR /&gt;        call getfid ("login.com",a)&lt;BR /&gt;        print a,b,c&lt;BR /&gt;        end&lt;BR /&gt;$macro tmp&lt;BR /&gt;$basic test&lt;BR /&gt;$link test,tmp&lt;BR /&gt;$run test&lt;BR /&gt;$ run test&lt;BR /&gt;-5439          4890          256&lt;BR /&gt;$ write sys$output f$file("login.com","FID")&lt;BR /&gt;(125633,4890,0)&lt;BR /&gt;$ fid1 = -5439&lt;BR /&gt;$ fid2 = 125633&lt;BR /&gt;$ shwo symb fid*&lt;BR /&gt;  FID1 = -5439   Hex = FFFFEAC1  Octal = 37777765301&lt;BR /&gt;  FID2 = 125633   Hex = 0001EAC1  Octal = 00000365301&lt;BR /&gt;&lt;BR /&gt;So the -5439 is really %xEAC1&lt;BR /&gt;And the 256 is really the lower bit for %x0001&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Aug 2008 18:25:53 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-08-13T18:25:53Z</dc:date>
    <item>
      <title>Vax to Alphaserver Macro Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vax-to-alphaserver-macro-conversion/m-p/4251653#M90779</link>
      <description>I have a Vax macro that needs to be converted so it will work on an alphaserver.  I don't know assembler.  It's really short.  Will someone please help me.</description>
      <pubDate>Wed, 13 Aug 2008 17:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vax-to-alphaserver-macro-conversion/m-p/4251653#M90779</guid>
      <dc:creator>Remona Munson</dc:creator>
      <dc:date>2008-08-13T17:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Vax to Alphaserver Macro Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vax-to-alphaserver-macro-conversion/m-p/4251654#M90780</link>
      <description>&lt;!--!*#--&gt;No 'port' needed. &lt;BR /&gt;Just general and recommended cleanups.&lt;BR /&gt;It works for me, in exactly 1 test.&lt;BR /&gt;It might just work for you...&lt;BR /&gt;&lt;BR /&gt;$create tmp.mar&lt;BR /&gt;.psect data     wrt,noexe&lt;BR /&gt;&lt;BR /&gt;INFAB:  $FAB    NAM=NAMBLK&lt;BR /&gt;INRAB:  $RAB    FAB=INFAB&lt;BR /&gt;NAMBLK: $NAM&lt;BR /&gt;&lt;BR /&gt;.psect code     nowrt,exe&lt;BR /&gt;&lt;BR /&gt;                .entry  GETFID,^M&amp;lt;&amp;gt;&lt;BR /&gt;                MOVL    4(AP),R0&lt;BR /&gt;                MOVB    (R0),W^INFAB+FAB$B_FNS&lt;BR /&gt;                MOVL    4(R0),INFAB + FAB$L_FNA&lt;BR /&gt;                $OPEN   FAB=W^INFAB&lt;BR /&gt;                BLBC    R0,EXIT&lt;BR /&gt;                MOVL    8(AP),R0&lt;BR /&gt;                MOVAL   NAMBLK,R1&lt;BR /&gt;                MOVW    NAM$W_FID_NUM(R1),(R0)+&lt;BR /&gt;                MOVW    NAM$W_FID_SEQ(R1),(R0)+&lt;BR /&gt;                MOVW    NAM$W_FID_RVN(R1),(R0)&lt;BR /&gt;                $CLOSE  FAB=W^INFAB&lt;BR /&gt;EXIT:           RET&lt;BR /&gt;                .END&lt;BR /&gt;&lt;BR /&gt;$create test.bas&lt;BR /&gt;        map (x) word a,b,c&lt;BR /&gt;        call getfid ("login.com",a)&lt;BR /&gt;        print a,b,c&lt;BR /&gt;        end&lt;BR /&gt;$macro tmp&lt;BR /&gt;$basic test&lt;BR /&gt;$link test,tmp&lt;BR /&gt;$run test&lt;BR /&gt;$ run test&lt;BR /&gt;-5439          4890          256&lt;BR /&gt;$ write sys$output f$file("login.com","FID")&lt;BR /&gt;(125633,4890,0)&lt;BR /&gt;$ fid1 = -5439&lt;BR /&gt;$ fid2 = 125633&lt;BR /&gt;$ shwo symb fid*&lt;BR /&gt;  FID1 = -5439   Hex = FFFFEAC1  Octal = 37777765301&lt;BR /&gt;  FID2 = 125633   Hex = 0001EAC1  Octal = 00000365301&lt;BR /&gt;&lt;BR /&gt;So the -5439 is really %xEAC1&lt;BR /&gt;And the 256 is really the lower bit for %x0001&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2008 18:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vax-to-alphaserver-macro-conversion/m-p/4251654#M90780</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-08-13T18:25:53Z</dc:date>
    </item>
  </channel>
</rss>

