program M (page 145)

"Daniel C. Bastos" <[email protected]> Sun, 16 Jan 2005 05:01:53 +0000
Newsgroups gmane.comp.gnu.mdk.bugs
Message-ID <[email protected]>
I could not get the ``Program M'' page 145 Vol 1 ``The Art of
Assembly Programming'' to work. I got the ``Program P'' to work,
though: ``Program P'' is on page 148.

%mixasm --version
mixasm, MIX assembler (GNU MDK 1.1)

%mixasm max.mixal 
max.mixal:13: error: unexpected end of file
(0 warning(s), 1 error(s))

%cat max.mixal 
X       EQU     1000
        ORIG    3000
MAXIMUM STJ     EXIT
INIT    ENT3    0,1
        JMP     CHANGEM
LOOP    CMPA    X,3
        JGE     *+3
CHANGEM ENT2    0,3
        LDA     X,3
        DEC3    1
        J3P     LOOP
EXIT    JMP     *

Has anyone ever written program M successfully? Do I have a
mistake anywhere in the program?

%/tmp/mixasm --version
mixasm, MIX assembler (GNU MDK 1.2)

Copyright (C) 2001 Free Software Foundation, Inc.
There is NO warranty.  You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files named
COPYING.

%/tmp/mixasm max.mixal 
max.mixal:13: error: unexpected end of file
(0 warning(s), 1 error(s))

``Program P'' on page 148 compiled and ran fine with version 1.1
and version 1.2. 

Thank you.