RE: HLA 2.10.5 The stdout.putiXSize Routines.

From: CleoN (spamtrap_at_crayne.org)
Date: 07/13/04

  • Next message: Charles A. Crayne: "Re: HLA 2.10.5 The stdout.putiXSize Routines."
    Date: Tue, 13 Jul 2004 06:18:35 +0000 (UTC)
    
    

    Since I am new to assembly language, this error is one that I do not
    understand how to resolve. I am currently working through the Art of
    Assembly "cfm" file in section 2.10.5 The stdout.putiXSize Routines.

    The program is designed to print to the console columns of numbers while i32
    is greater than zero. The trouble is that line 41 contains two empty ` '
    symbols that my HLA / masm32 compiler does not like.

    I am not just looking for someone to "debug my code". I am hoping that you
    can point me in the right direction to start debugging my own code.

    The line that reads stdout.puti32Size( i32, 5, ` ` ); in the following block

        while( i32 > 0 ) do

            if( ColCnt = 8 ) then

                stdout.newln();

                mov( 0, ColCnt );

            endif;

            stdout.puti32Size( i32, 5, ` ` );

            sub( 1, i32 );

            add( 1, ColCnt );

        endwhile;

    generates the following error:

    HLA (High Level Assembler)
    Released to the public domain by Randall Hyde.
    Version Version 1.67 build 8940 (prototype)
    Win32 COFF output
    Using MASM assembler
    MASM output
    -test active

    HLA Lib Path: c:\hla\hlalib\hlalib.lib
    HLA include path:
    ;c:\hla\include;c:\hla;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb
    em;C:\WINDOWS\masm32;c:\hla;c:\masm32\bin
    HLA temp path:
    Linker Lib Path:
    c:\masm32\lib;c:\hla\hlalib;c:\masm32\lib;c:\hla\hlalib;c:\masm32\lib;c:\hla
    \hlalib;%lib%;C:\hla\hlalib

    Files:
    1: NumsInColumns.hla

    Compiling 'NumsInColumns.hla' to 'NumsInColumns.asm'
    using command line [hlaparse -v -sm -test "NumsInColumns.hla"]
    HLA (High Level Assembler) Parser
    Released to the public domain by Randall Hyde.
    Version Version 1.67 build 8939 (prototype)
    -t active
    File: NumsInColumns.hla
    Output Path: ""

    Compiling "NumsInColumns.hla" to "NumsInColumns.asm"
    Error in file "NumsInColumns.hla" at line 41 [errid:7876/hla.flx]:
    Illegal character in file: <`>(96/$60).
    Near: << ` >>

    Error in file "NumsInColumns.hla" at line 41 [errid:7876/hla.flx]:
    Illegal character in file: <`>(96/$60).
    Near: << ` >>

    Error in file "NumsInColumns.hla" at line 41 [errid:97937/hlaparse.c]:
    syntax error, unexpected ')'.
    Near: << ) >>

    Compilation complete, 5126 lines, 0.094 seconds, 54532 lines/second


  • Next message: Charles A. Crayne: "Re: HLA 2.10.5 The stdout.putiXSize Routines."

    Relevant Pages

    • Re: Rocket Science
      ... >> Also, logically, if MASM is the underlying assembler being used by ... then MASM must always be being run in addition to HLA so ... the MASM or FASM or whatever underlying assembler's speed into its own ...
      (alt.lang.asm)
    • Re: .EXE -> .ASM -> .EXE
      ... HLA, why would they even come you your forum? ... becoming RosAsm users). ... needs to learn assembly language. ... I do think it would be much more an improvement you write an assembler, ...
      (alt.lang.asm)
    • Re: Questions about the HLA installation...
      ... > HLA, assembler and linker in order - depending on your command line ... Windows98 is probably the 'stablest' Windows ... *and* maintain in bare bones assembler. ... all of it pales in comparsion to his 'adventure' with Iraq. ...
      (alt.lang.asm)
    • Re: HLA StdLib2 criticism
      ... HLC.EXE with an already existing C compiler and calls it HLC system. ... Suppose someone creates a new language and calls it "High Level ... Assembler" (HLA). ...
      (alt.lang.asm)
    • Re: Question regarding "HLA" and its validity.
      ... Though I would agree that HLA is not a good ... > as internals of the Assembler, it is no longer an Assembler, ... when a RosAsm user says: ... directly to machine language instructions. ...
      (alt.lang.asm)