home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
love
/
lovea86.cfg
< prev
next >
Wrap
Text File
|
1993-04-11
|
2KB
|
43 lines
((
LOVE Forth Assembly Language Configuration File.
This file must be named "ASSEMBLY.CFG" and must exist in the current directory.
Experienced programmers are encouraged to customize this file to suit their
own requirements.
Example: Change output directories or drives to ramdrives.
**** This file is for Isaacson's excellent A86 assembler. ****
))
( command" -- defines the command line used to execute your assembler. )
( -- always prefix this command line with /C and end it with \r )
command" /C A86 +X +S +D +C +E code4th.asm TO code4th.obj >nul\r"
( inputfile" -- defines the path and filename of the file to be assembled. )
inputfile" code4th.ASM\0"
( outputfile" -- defines the path and filename of the object file. )
outputfile" code4th.OBJ\0"
( listfile" -- defines the path and filename of the assembly listing [optional]. )
listfile" code4th.ASM\0"
( errorfile" -- defines the path and filename of the assembly errors if any. )
errorfile" code4th.ERR\0"
( next" -- defines the macro that expands any occurance on'next' in the )
( assembly code into the LOVE Forth inline inner interpreter. )
next" next\tmacro\r\n\tlodsw\r\n\tmov bx,ax\r\n\tjmp [bx]\r\n#em\r\n"
( codeheader" -- The string that contains the initial required segmentation )
( directive directives to begin assembly. )
codeheader" \r\ncode\tsegment byte public 'CODE'\r\n"
( The string that contains the required segmentation directives to end assembly. )
codefooter" \r\n\tends\r\n\tend"
cseg$" \r\ncode\tsegment byte public 'CODE'\r\ncode ends"
tseg$" \r\nthreads\tsegment word public 'THREADS'\r\nthreads ends"
dseg$" \r\ndata\tsegment byte public 'DATA'\r\ndata ends"
hseg$" \r\nheads\tsegment byte public 'HEADS'\r\nheads ends"
sseg$" \r\nstacks\tsegment byte public 'STACKS'\r\nstacks ends"
assume$" \r\n\tassume cs:code, ds:code, es:code\r\n\tpublic\r\n"