mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Rename pokecrystal.link to layout.link
This is independent of the project name, and clearly applies to pokecrystal11, pokecrystal-au, etc.
This commit is contained in:
parent
bfc6612cbf
commit
164e1b89af
2
FAQ.md
2
FAQ.md
@ -58,7 +58,7 @@ If you are using 64-bit Windows, download [**64-bit Cygwin**][cygwin] and [**64-
|
|||||||
|
|
||||||
If you have not changed any of the asm, make sure you have the latest version of pokecrystal and the correct version of rgbds (see [INSTALL.md](INSTALL.md)).
|
If you have not changed any of the asm, make sure you have the latest version of pokecrystal and the correct version of rgbds (see [INSTALL.md](INSTALL.md)).
|
||||||
|
|
||||||
If you added or changed any code, it has to fit in the **memory banks**. The 2MB ROM is divided into 128 banks of 4KB ($4000 bytes) each, numbered $00 to $7F. The linkerscript [pokecrystal.link](pokecrystal.link) lists which `SECTION`s go in which banks. Try moving some code into a new section.
|
If you added or changed any code, it has to fit in the **memory banks**. The 2MB ROM is divided into 128 banks of 4KB ($4000 bytes) each, numbered $00 to $7F. The linkerscript [layout.link](layout.link) lists which `SECTION`s go in which banks. Try moving some code into a new section.
|
||||||
|
|
||||||
### "Invalid file or object file version"
|
### "Invalid file or object file version"
|
||||||
|
|
||||||
|
12
Makefile
12
Makefile
@ -95,16 +95,16 @@ $(foreach obj, $(crystal_obj), $(eval $(call DEP,$(obj),$(obj:.o=.asm))))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
pokecrystal.gbc: $(crystal_obj) pokecrystal.link
|
pokecrystal.gbc: $(crystal_obj) layout.link
|
||||||
$(RGBLINK) -n pokecrystal.sym -m pokecrystal.map -l pokecrystal.link -p 0 -o $@ $(crystal_obj)
|
$(RGBLINK) -n pokecrystal.sym -m pokecrystal.map -l layout.link -p 0 -o $@ $(crystal_obj)
|
||||||
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTE -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTE -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
||||||
|
|
||||||
pokecrystal11.gbc: $(crystal11_obj) pokecrystal.link
|
pokecrystal11.gbc: $(crystal11_obj) layout.link
|
||||||
$(RGBLINK) -n pokecrystal11.sym -m pokecrystal11.map -l pokecrystal.link -p 0 -o $@ $(crystal11_obj)
|
$(RGBLINK) -n pokecrystal11.sym -m pokecrystal11.map -l layout.link -p 0 -o $@ $(crystal11_obj)
|
||||||
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTE -n 1 -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTE -n 1 -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
||||||
|
|
||||||
pokecrystal-au.gbc: $(crystal_au_obj) pokecrystal.link
|
pokecrystal-au.gbc: $(crystal_au_obj) layout.link
|
||||||
$(RGBLINK) -n pokecrystal-au.sym -m pokecrystal-au.map -l pokecrystal.link -p 0 -o $@ $(crystal_au_obj)
|
$(RGBLINK) -n pokecrystal-au.sym -m pokecrystal-au.map -l layout.link -p 0 -o $@ $(crystal_au_obj)
|
||||||
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTU -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTU -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ In [gfx/pics.asm](https://github.com/pret/pokecrystal/blob/master/gfx/pics.asm):
|
|||||||
|
|
||||||
```asm
|
```asm
|
||||||
; PokemonPicPointers and UnownPicPointers are assumed to start at the same
|
; PokemonPicPointers and UnownPicPointers are assumed to start at the same
|
||||||
; address, but in different banks. This is enforced in pokecrystal.link.
|
; address, but in different banks. This is enforced in layout.link.
|
||||||
|
|
||||||
|
|
||||||
SECTION "Pic Pointers", ROMX
|
SECTION "Pic Pointers", ROMX
|
||||||
@ -98,7 +98,7 @@ SECTION "Unown Pic Pointers", ROMX
|
|||||||
INCLUDE "data/pokemon/unown_pic_pointers.asm"
|
INCLUDE "data/pokemon/unown_pic_pointers.asm"
|
||||||
```
|
```
|
||||||
|
|
||||||
In [pokecrystal.link](https://github.com/pret/pokecrystal/blob/master/pokecrystal.link):
|
In [layout.link](https://github.com/pret/pokecrystal/blob/master/layout.link):
|
||||||
|
|
||||||
```
|
```
|
||||||
ROMX $48
|
ROMX $48
|
||||||
@ -113,7 +113,7 @@ ROMX $49
|
|||||||
|
|
||||||
**Fix:**
|
**Fix:**
|
||||||
|
|
||||||
Don't enforce `org $4000` in [pokecrystal.link](https://github.com/pret/pokecrystal/blob/master/pokecrystal.link).
|
Don't enforce `org $4000` in [layout.link](https://github.com/pret/pokecrystal/blob/master/layout.link).
|
||||||
|
|
||||||
Edit `GetFrontpicPointer`:
|
Edit `GetFrontpicPointer`:
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ INCLUDE "constants.asm"
|
|||||||
|
|
||||||
|
|
||||||
; PokemonPicPointers and UnownPicPointers are assumed to start at the same
|
; PokemonPicPointers and UnownPicPointers are assumed to start at the same
|
||||||
; address, but in different banks. This is enforced in pokecrystal.link.
|
; address, but in different banks. This is enforced in layout.link.
|
||||||
|
|
||||||
|
|
||||||
SECTION "Pic Pointers", ROMX
|
SECTION "Pic Pointers", ROMX
|
||||||
|
Loading…
Reference in New Issue
Block a user