aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/preamble.inc
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-19 12:15:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-19 12:15:28 +0200
commit67d25d837ac55f28a366c0a3b262e439a6e75fc3 (patch)
treedf7715c7724c5935ab87c807f3b8b4ef529315e3 /amforth-6.5/avr8/preamble.inc
parente0d6784e89dba33226c0edb815bb974486fa7c48 (diff)
Add AmForth
Diffstat (limited to 'amforth-6.5/avr8/preamble.inc')
-rw-r--r--amforth-6.5/avr8/preamble.inc50
1 files changed, 50 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/preamble.inc b/amforth-6.5/avr8/preamble.inc
new file mode 100644
index 0000000..8f141dc
--- /dev/null
+++ b/amforth-6.5/avr8/preamble.inc
@@ -0,0 +1,50 @@
+; generic macros and register definitions
+.include "macros.asm"
+
+; controller specific file selected via include
+; directory definition when calling the assembler (-I)
+.include "device.asm"
+
+; some defaults, change them in your application master file
+; see template.asm for an example
+
+; enabling Interrupts, disabling them affects
+; other settings as well.
+.set WANT_INTERRUPTS = 1
+
+; count the number of interrupts individually.
+; requires a lot of RAM (one byte per interrupt)
+; disabled by default.
+.set WANT_INTERRUPT_COUNTERS = 0
+
+; receiving is asynchronously, so an interrupt queue is useful.
+.set WANT_ISR_RX = 1
+
+; case insensitve dictionary lookup.
+.set WANT_IGNORECASE = 0
+
+; map all memories to one address space. Details in the
+; technical guide
+.set WANT_UNIFIED = 0
+
+; terminal input buffer
+.set TIB_SIZE = 90 ; ANS94 needs at least 80 characters per line
+
+; USER variables *in addition* to system ones
+.set APPUSERSIZE = 10 ; size of application specific user area in bytes
+
+; addresses of various data segments
+.set rstackstart = RAMEND ; start address of return stack, grows downward
+.set stackstart = RAMEND - 80 ; start address of data stack, grows downward
+; change only if you know what to you do
+.set NUMWORDLISTS = 8 ; number of word lists in the searh order, at least 8
+.set NUMRECOGNIZERS = 4 ; total number of recognizers, two are always used.
+
+; 10 per mille (1 per cent) is ok.
+.set BAUD = 38400
+.set BAUD_MAXERROR = 10
+
+; Dictionary setup
+.set VE_HEAD = $0000
+.set VE_ENVHEAD = $0000
+.set AMFORTH_RO_SEG = NRWW_START_ADDR \ No newline at end of file