•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  STG Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : GFA-Basic Editor
Author      : Lonny Pursell
Version     : GBE.HYP v3.74 (12/31/2023)
Subject     : Programming/Documentation
Nodes       : 171
Index Size  : 4296
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Default
@help       : STG Help
@options    : +g -i -s +z
@width      : 75
@hostname   : THING   
@hostname   : STRNGSRV
@hostname   : HIGHWIRE
@hostname   : CAB     
View Ref-FileCursor must be sitting on an INLINE or #ASM command when clicked.

For INLINE the assembler is called to to compile *.s into *.inl and load the
result.

Example: INLINE test%,1024 (project path contains the file 'test.s')
         The result from the assembler must be file 'test.inl'.
         Code used this way must be 100% PC relative!

Compiles 'test.s' and outputs 'test.inl' in the project path.
Also loads 'test.inl' into the inline buffer if the assembler returns a status
of 0 (ok).

For #ASM the specified file is compiled and that's all, nothing is loaded.
This could be used to generate an object file (*.o) which is linked using
the #LNK command.

Example: REM #ASM test.s (project path contains the file 'test.s')

Notes: GBE assumes the assembler will be found in the \system folder.
       If you want to use GEN030.PRG for example, see the 'Paths' dialog.


Default for INLINE:

        comment HEAD=-1         ;tells GBE to remove the 28 byte header
        opt     chkpc           ;throw an err if code is not pc relative!
        opt     c+              ;case matters
        opt     o+              ;optimize all
        output  test.inl        ;force output name so GBE can find it

        text

start:  blah...
        blah...
        rts

        end


Default for #ASM:

        opt     dri  ;create a dri format object file (*.o)
        opt     c+              ;case matters
        opt     o+              ;optimize all

        text

start:  blah...
        blah...

        end


Devpac error codes:
  100+ initialisation failure
  20   fatal error
  10   error(s)
  5    warning(s)
  0    ok