-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #500
- Loading branch information
Showing
19 changed files
with
243 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
ERROR: code-after-endm-endr-endc.asm(6): | ||
syntax error, unexpected PRINTLN, expecting newline or end of buffer | ||
syntax error, unexpected PRINTLN, expecting newline or end of line or end of buffer | ||
ERROR: code-after-endm-endr-endc.asm(7): | ||
Macro "mac" not defined | ||
ERROR: code-after-endm-endr-endc.asm(12): | ||
syntax error, unexpected PRINTLN, expecting newline or end of buffer | ||
syntax error, unexpected PRINTLN, expecting newline or end of line or end of buffer | ||
ERROR: code-after-endm-endr-endc.asm(17): | ||
syntax error, unexpected PRINTLN, expecting newline | ||
ERROR: code-after-endm-endr-endc.asm(19): | ||
syntax error, unexpected PRINTLN, expecting newline or end of buffer | ||
syntax error, unexpected PRINTLN, expecting newline or end of line or end of buffer | ||
ERROR: code-after-endm-endr-endc.asm(23): | ||
syntax error, unexpected PRINTLN, expecting newline | ||
ERROR: code-after-endm-endr-endc.asm(25): | ||
syntax error, unexpected PRINTLN, expecting newline or end of buffer | ||
syntax error, unexpected PRINTLN, expecting newline or end of line or end of buffer | ||
error: Assembly aborted (7 errors)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SECTION "OAMDMACode", ROM0 | ||
OAMDMACode: | ||
LOAD "hOAMDMA", HRAM | ||
hOAMDMA:: | ||
ldh [$ff46], a | ||
ld a, 40 | ||
jp [[ | ||
: dec a | ||
jr nz, :- | ||
ret | ||
]] | ||
.end | ||
ENDL | ||
OAMDMACodeEnd: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FATAL: inline-fragment-in-load.asm(7): | ||
`LOAD` blocks cannot contain inline fragments |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SECTION "RAM", WRAM0 | ||
|
||
wFoo:: db | ||
wBar:: ds 3 | ||
println "ok" | ||
wQux:: dw [[ | ||
ds 4 | ||
println "inline" | ||
]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ERROR: inline-fragment-in-ram.asm(6): | ||
Section 'RAM' cannot contain code or data (not ROM0 or ROMX) | ||
FATAL: inline-fragment-in-ram.asm(9): | ||
No entries in the section stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ok | ||
inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SECTION UNION "U", ROM0 | ||
db $11 | ||
dw [[ db $22 ]] | ||
SECTION UNION "U", ROM0 | ||
db $33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FATAL: inline-fragment-in-union.asm(3): | ||
`SECTION UNION` cannot contain inline fragments |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
SECTION "1", ROM0[0] | ||
|
||
VERSION EQU $11 | ||
GetVersion:: | ||
ld a, [ [[db VERSION]] ] | ||
ret | ||
|
||
SECTION "2", ROM0, ALIGN[4] | ||
|
||
text: MACRO | ||
db \1, 0 | ||
ENDM | ||
|
||
text_pointer: MACRO | ||
dw [[ text \1 ]] | ||
ENDM | ||
|
||
GetText:: | ||
ld hl, [[ | ||
dw [[ db "Alpha", 0 ]] | ||
dw [[ text "Beta" ]] | ||
text_pointer "Gamma" | ||
dw 0 | ||
]] | ||
ld c, a | ||
ld b, 0 | ||
add hl, bc | ||
add hl, bc | ||
ld a, [hli] | ||
ld h, [hl] | ||
ld l, a | ||
ret | ||
|
||
SECTION "C", ROM0 | ||
|
||
Foo:: | ||
call [[ jp [[ jp [[ ret ]] ]] ]] | ||
call [[ | ||
Label:: | ||
call GetVersion | ||
MYTEXT EQU 3 | ||
ld a, MYTEXT | ||
call GetText | ||
ld b, h | ||
ld c, l | ||
ret | ||
]] | ||
jp [[ | ||
Bar: | ||
inc hl | ||
.loop | ||
halt | ||
: dec l | ||
jr nz, :- | ||
dec h | ||
jr nz, .loop | ||
ret | ||
]] |
Empty file.
Empty file.
Binary file not shown.