hello.abi

Sapphire/src/emi/test/hello.abi · 1.2 KB

From the archive sapphire_0.3.zip

Download the archive   « Back to the archive contents

;
; hello.abi
;
; Copyright (C) 1996 Christopher D. Granz
; All rights reserved
;
; Compiles to .emo file.  7th format.
;
; The famous "Hello World!" program for the Emerald Interpreter.
;

int4 8061981                 ; Magic number.

int1 8                       ; File format version.

int2 39
string "Copyright (C) 1996 Christopher D. Granz"

int2 2                       ; Number of entries in the symbol table.
;
; Symbol Table
;
int2 4
string "main"
int2 3
string "out"

int2 1                       ; Number of functions.

;
; Function: main()
;
int4 0                       ; Function flags.
int1 0                       ; Number of arguments.
int1 0                       ; Number of return values.
int2 0                       ; Symbol table reference.
int4 25                      ; Code size.
; Function code.
int1 7                       ; PUSH_ONE
int1 13                      ; PUSH_STRING
int2 13
string "Hello World!\n"
int1 76                      ; TRANS_BUILTIN_FUNC
int2 1
int1 38                      ; CALL_BUILTIN_FUNC
int1 1
int1 5                   ; TYPE_STRING
int1 0
int1 0                       ; END
; Function code end.

;
; End of hello.abi
;

Site Stats

Snippets: 1791
Codebases: 571