Allow JR between sections

Previously, JR was only allowed if the destination label was in the same
section as the JR. This patch removes this restriction. The check to see
if the relative value overflows is now done when linking the ROM.

Signed-off-by: Antonio Niño Díaz <[email protected]>
This commit is contained in:
Antonio Niño Díaz committed 2018-02-23 19:21:44 +00:00
1 parent d243bd04ef
commit 2ed937db2c
6 files changed
+48 -23

No files matched your search

+2 -1
View File
@@ -66,7 +66,8 @@ enum eSymbolType {
enum ePatchType {
PATCH_BYTE = 0x00,
PATCH_WORD_L = 0x01,
PATCH_LONG_L = 0x02
PATCH_LONG_L = 0x02,
PATCH_BYTE_JR = 0x03
};
#endif /* RGBDS_LINKDEFS_H */