Menu

Tree [f987d3] master /
 History

HTTPS access


File Date Author Commit
 Makefile 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 README 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 gawk.sh 2015-11-09 jpelletier jpelletier [b6c85a] Initial commit
 main.asm 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 main.lnk 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 struct_cond.awk 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 struct_macros.awk 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 struct_pgm_z80.awk 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...
 struct_tests.awk 2019-08-14 physnoct physnoct [f987d3] Added some macros, GNU copyrights, modified EQU...

Read Me

The preprocessor program is struct_pgm_z80.awk and it's an executable script.

It expects to find its includes in the same directory. Usually, the files would be all
installed in /usr/local/share/awk.

When installing, it will add the AWKPATH in the environment variable.
You will have to logout and login again (or set it manually for the current session:
export AWKPATH=/usr/local/share/awk)

Install at the unix prompt:
    sudo make install

Available structure types
IF THEN ELSE
    _if_TEST
        A
    _elseif_TEST
        B
    _else
        C
    _endif

DO WHILE
    _do
        U
        _do_break
        V
        _do_break_nz
        W
        _do_break_z
        X
        _redo
        Y
    _do_while_TEST | _do_loop

WHILE END
    _while_TEST
        U
        _wh_break
        V
    _wh_end

SWITCH
    _sw_case
        U
    _case
        V
        _sw_break
    _case_TEST
        V2
        _sw_break
    _case
        W
        ;support fall through
    _sw_default
        Z
    _sw_end

TEST types
    z/nz            flag Z
    bit/not_bit     test bit n,reg
    equ/neq         test if register ==/!= value
    equm/neqm       test if register & mask ==/!= value
    cmp             test if register1 condition register2
    dnz             decrement register and test != 0
    range           test if between [value1 and value2[
    equ_orN         test if equals 2,3 or 4 specified values


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.