Note: I've just migrated to a different physical server to run Spivey's Corner,
with a new architecture, a new operating system, a new version of PHP, and an updated version of MediaWiki.
Please let me know if anything needs adjustment! – Mike

Keiko assembly language

From Compilers
Revision as of 18:05, 11 May 2022 by Mike (talk | contribs) (→‎Files)
Jump to navigation Jump to search

Syntax

Files

file:
    heading body_opt
heading:
    module-dir imports_opt endhdr-dir
module-dir:
    MODULE ident checksum linecnt
imports:
    import-dir
    import-dir imports
import-dir:
    IMPORT ident checksum
endhdr-dir:
    ENDHDR     
body:
    phrase
    phrase body
phrase:
    directive
    procedure

Directives

directive:
    DEFINE
    WORD
    LONG
    FLOAT
    DOUBLE
    STRING
    GLOVAR
    PRIMDEF

Procedures

procedure:
    proc-directive body_opt end-directive
proc-directive:
    PROC ident 0 0 0
end-directive:
    END

LABEL CONST GLOBAL FCONST DCONST QCONST STKMAP LINE