줄바꿈을 LF로 통일
서버에서 바로 빌드하고 고칠 수 있게 저장소 줄바꿈을 LF로 맞췄습니다. CRLF로 들어가 있던 sh 빌드 스크립트도 이제 리눅스에서 그대로 돌아갑니다. 내용은 바뀌지 않았습니다.
This commit is contained in:
1 parent
40615838ac
commit
2d48091205
623 files changed
+501372
-501365
No files matched your search
+42
-42
@@ -1,42 +1,42 @@
|
||||
# More fields on Tropical, Glacier and Jade Forest
|
||||
|
||||
`six.bin` is one page of helper code that the Studio writes to flash 0x10F000
|
||||
(XIP 0x100FE000) for "All 6 fields" (Tropical, Glacier) or "Sky as 4th field"
|
||||
(Jade Forest). Source: `src/six.s`.
|
||||
|
||||
Build:
|
||||
|
||||
```
|
||||
sh src/build.sh # clang and ld.lld (LLVM), writes six.bin
|
||||
```
|
||||
|
||||
The firmware keeps the active field slot as 0, 1 or 2 in the settings block
|
||||
(byte 499 on Tropical/Glacier, 443 on Jade Forest). The Studio adds a set byte
|
||||
(offset 0xF04): 0 means the original fields, 1 means the alternative ones
|
||||
(Land, Water, Sky in the three slots on Tropical/Glacier; Sky in slot 1 on
|
||||
Jade Forest). The firmware is changed in these places (offsets in the
|
||||
firmware window, flash = offset + 0x11000):
|
||||
|
||||
- the function that returns the background composites of a field
|
||||
(Tropical 0xAEAC, Jade 0x966C): jumps to `six_bg`,
|
||||
- the child list in the code (Tropical 0xFD62, Jade 0xE1DA): `six_child`,
|
||||
- every movw/movt pair that loads a per field table (teens, adults, travel
|
||||
backgrounds, field eggs, scenes, wagon): `six_tab_r0` / `six_tab_r1`. The
|
||||
site list at 0x380 (return address, original table, alternative table)
|
||||
picks the table by the set byte.
|
||||
|
||||
All addresses and the alternative tables are filled in by the Studio
|
||||
(`src/six.js`). On Tropical/Glacier the Land, Water and Sky field pictures
|
||||
and scenes are copied from the user's own Land, Water or Sky ROM; the cells
|
||||
of the rain pictures that the clear ones do not share lie from 0xF00000
|
||||
(header "SIXB"). Jade Forest already holds Sky and gets only the tables.
|
||||
Nothing of any ROM is part of this repository.
|
||||
|
||||
Game field menu (version 6, option bit 1 at 0x20): the firmware's own menu
|
||||
(planet, zoom in, A, "Fields") lists every field of both sets from planet
|
||||
level 4 and keeps the Tama. Hooks at 0x830 (`six_fbuild`, `six_fcmp`,
|
||||
`six_fset`, `six_fprev`); the Studio fills the addresses at 0x800 and
|
||||
patches the list builder call, the reads of the list, the preview loader
|
||||
calls and three immediates (count and index moved in the menu object).
|
||||
An adult gets the three slots of its own set.
|
||||
|
||||
# More fields on Tropical, Glacier and Jade Forest
|
||||
|
||||
`six.bin` is one page of helper code that the Studio writes to flash 0x10F000
|
||||
(XIP 0x100FE000) for "All 6 fields" (Tropical, Glacier) or "Sky as 4th field"
|
||||
(Jade Forest). Source: `src/six.s`.
|
||||
|
||||
Build:
|
||||
|
||||
```
|
||||
sh src/build.sh # clang and ld.lld (LLVM), writes six.bin
|
||||
```
|
||||
|
||||
The firmware keeps the active field slot as 0, 1 or 2 in the settings block
|
||||
(byte 499 on Tropical/Glacier, 443 on Jade Forest). The Studio adds a set byte
|
||||
(offset 0xF04): 0 means the original fields, 1 means the alternative ones
|
||||
(Land, Water, Sky in the three slots on Tropical/Glacier; Sky in slot 1 on
|
||||
Jade Forest). The firmware is changed in these places (offsets in the
|
||||
firmware window, flash = offset + 0x11000):
|
||||
|
||||
- the function that returns the background composites of a field
|
||||
(Tropical 0xAEAC, Jade 0x966C): jumps to `six_bg`,
|
||||
- the child list in the code (Tropical 0xFD62, Jade 0xE1DA): `six_child`,
|
||||
- every movw/movt pair that loads a per field table (teens, adults, travel
|
||||
backgrounds, field eggs, scenes, wagon): `six_tab_r0` / `six_tab_r1`. The
|
||||
site list at 0x380 (return address, original table, alternative table)
|
||||
picks the table by the set byte.
|
||||
|
||||
All addresses and the alternative tables are filled in by the Studio
|
||||
(`src/six.js`). On Tropical/Glacier the Land, Water and Sky field pictures
|
||||
and scenes are copied from the user's own Land, Water or Sky ROM; the cells
|
||||
of the rain pictures that the clear ones do not share lie from 0xF00000
|
||||
(header "SIXB"). Jade Forest already holds Sky and gets only the tables.
|
||||
Nothing of any ROM is part of this repository.
|
||||
|
||||
Game field menu (version 6, option bit 1 at 0x20): the firmware's own menu
|
||||
(planet, zoom in, A, "Fields") lists every field of both sets from planet
|
||||
level 4 and keeps the Tama. Hooks at 0x830 (`six_fbuild`, `six_fcmp`,
|
||||
`six_fset`, `six_fprev`); the Studio fills the addresses at 0x800 and
|
||||
patches the list builder call, the reads of the list, the preview loader
|
||||
calls and three immediates (count and index moved in the menu object).
|
||||
An adult gets the three slots of its own set.
|
||||
|
||||
+9
-9
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Build six.bin (one 4 KB page, linked for XIP 0x100FE000 = flash 0x10F000)
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
clang --target=thumbv7m-none-eabi -mcpu=cortex-m3 -c six.s -o six.o
|
||||
ld.lld -Ttext=0x100FE000 -e _start six.o -o six.elf
|
||||
llvm-objcopy -O binary -j .text six.elf ../six.bin
|
||||
llvm-objdump -d six.elf | head -80
|
||||
ls -l ../six.bin
|
||||
#!/bin/sh
|
||||
# Build six.bin (one 4 KB page, linked for XIP 0x100FE000 = flash 0x10F000)
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
clang --target=thumbv7m-none-eabi -mcpu=cortex-m3 -c six.s -o six.o
|
||||
ld.lld -Ttext=0x100FE000 -e _start six.o -o six.elf
|
||||
llvm-objcopy -O binary -j .text six.elf ../six.bin
|
||||
llvm-objdump -d six.elf | head -80
|
||||
ls -l ../six.bin
|
||||
+872
-872
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user