-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathload-chat.mu4
More file actions
32 lines (27 loc) · 884 Bytes
/
Copy pathload-chat.mu4
File metadata and controls
32 lines (27 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| This file is part of muforth: https://muforth.dev/
|
| Copyright (c) 2002-2026 David Frech. (Read the LICENSE for details.)
| This file loads the byteloader "chat" code. Defining the symbol "in-ram"
| will load the chat code into RAM instead. This is very useful for
| re-flashing the byteloader code!
ld! target/MSP430/build.mu4 ( sets radix to hex!)
.ifdef in-ram
ram @ram "20 + region! ( skip the BSL stack)
.else .ifdef bsl-ram-chat
-d in-ram
ram @ram #ram 3 4 */ + region!
.else
vectors #vectors allot ( aka "1_0000 goto)
boot
.then .then
.ndef chat2 .ndef chat4 .ndef chat5 .and .and .if
| If no override, set version based on chip.
.ifdef g2553 -d chat2 .else -d chat4 .then
.then
.ifdef chat2
ld target/MSP430/chat2.mu4
.else .ifdef chat5
error" chat5 not implemented yet"
.else ( default)
ld target/MSP430/chat4.mu4
.then