forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
258 additions
and
180 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
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,3 +1,35 @@ | ||
error: def.asm(23): | ||
'constant' already defined at def.asm(10) | ||
warning: def.asm(32): [-Wobsolete] | ||
`old_constant EQU` is deprecated; use `DEF old_constant EQU` | ||
warning: def.asm(33): [-Wobsolete] | ||
`old_string EQUS` is deprecated; use `DEF old_string EQUS` | ||
warning: def.asm(35): [-Wobsolete] | ||
`old_variable =` is deprecated; use `DEF old_variable =` | ||
warning: def.asm(36): [-Wobsolete] | ||
`old_variable +=` is deprecated; use `DEF old_variable +=` | ||
warning: def.asm(37): [-Wobsolete] | ||
`old_variable *=` is deprecated; use `DEF old_variable *=` | ||
warning: def.asm(38): [-Wobsolete] | ||
`old_variable -=` is deprecated; use `DEF old_variable -=` | ||
warning: def.asm(39): [-Wobsolete] | ||
`old_variable /=` is deprecated; use `DEF old_variable /=` | ||
warning: def.asm(40): [-Wobsolete] | ||
`old_variable %=` is deprecated; use `DEF old_variable %=` | ||
warning: def.asm(41): [-Wobsolete] | ||
`old_variable &=` is deprecated; use `DEF old_variable &=` | ||
warning: def.asm(42): [-Wobsolete] | ||
`old_variable |=` is deprecated; use `DEF old_variable |=` | ||
warning: def.asm(43): [-Wobsolete] | ||
`old_variable ^=` is deprecated; use `DEF old_variable ^=` | ||
warning: def.asm(44): [-Wobsolete] | ||
`old_variable <<=` is deprecated; use `DEF old_variable <<=` | ||
warning: def.asm(45): [-Wobsolete] | ||
`old_variable >>=` is deprecated; use `DEF old_variable >>=` | ||
warning: def.asm(47): [-Wobsolete] | ||
`old_byte RB` is deprecated; use `DEF old_byte RB` | ||
warning: def.asm(48): [-Wobsolete] | ||
`old_word RW` is deprecated; use `DEF old_word RW` | ||
warning: def.asm(49): [-Wobsolete] | ||
`old_long RL` is deprecated; use `DEF old_long RL` | ||
error: Assembly aborted (1 error)! |
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,8 +1,8 @@ | ||
IF 1 | ||
X = 0 | ||
DEF X = 0 | ||
INCLUDE "endc-eof-newline.inc" | ||
INCLUDE "endc-eof-newline-else.inc" | ||
X = 1 | ||
DEF X = 1 | ||
INCLUDE "endc-eof-newline.inc" | ||
INCLUDE "endc-eof-newline-else.inc" | ||
ENDC | ||
ENDC |
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,4 +1,4 @@ | ||
charmap "A", 1 | ||
SECTION "sec", ROM0[0] | ||
_A_ EQU "A" | ||
DEF _A_ EQU "A" | ||
db _A_ |
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,3 +1,3 @@ | ||
DEFINE equs "MACRO mac\nPRINTLN \"Hello :D\"\nENDM" | ||
def DEFINE equs "MACRO mac\nPRINTLN \"Hello :D\"\nENDM" | ||
DEFINE | ||
mac |
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,4 +1,4 @@ | ||
X1 equs "Y1 equs \"\\\"Success!\\\\n\\\"\"" | ||
Y1 equs "Z1" | ||
def X1 equs "Y1 equs \"\\\"Success!\\\\n\\\"\"" | ||
def Y1 equs "Z1" | ||
X1 | ||
PRINT Z1 |
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,4 +1,4 @@ | ||
|
||
ACT equs "WARN \"First\"\nWARN \"Second\"" | ||
def ACT equs "WARN \"First\"\nWARN \"Second\"" | ||
ACT | ||
WARN "Third" |
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,2 +1,2 @@ | ||
BYE equs "PURGE BYE\nWARN \"Crash?\"\n \n" | ||
def BYE equs "PURGE BYE\nWARN \"Crash?\"\n \n" | ||
BYE |
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,2 +1,2 @@ | ||
recurse EQUS "recurse" | ||
DEF recurse EQUS "recurse" | ||
recurse |
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,6 +1,6 @@ | ||
MACRO test | ||
v equs "X" | ||
X equs "" ; should not be expanded | ||
def v equs "X" | ||
def X equs "" ; should not be expanded | ||
\1 | ||
ENDM | ||
test v 0 |
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,4 +1,4 @@ | ||
CONSTANT equ 42 | ||
def CONSTANT equ 42 | ||
PRINTLN $ff00 + CONSTANT | ||
|
||
SECTION "Overreading much?", ROM0[0] | ||
|
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,22 +1,22 @@ | ||
f1 = 3.1 | ||
f2 = 5.2 | ||
pm = MUL(f1, f2) | ||
pr = 16.12 | ||
def f1 = 3.1 | ||
def f2 = 5.2 | ||
def pm = MUL(f1, f2) | ||
def pr = 16.12 | ||
println "`3.1`: {9.6f:f1} -> ${08x:f1}" | ||
println "`5.2`: {9.6f:f2} -> ${08x:f2}" | ||
println "`MUL`: {9.6f:pm} -> ${08x:pm}" | ||
println "`16.12`: {9.6f:pr} -> ${08x:pr}" | ||
|
||
fl = 6.283185 | ||
def fl = 6.283185 | ||
println "`6.283185`: {.6f:fl} -> ${08x:fl}" | ||
|
||
fr = MUL(20.0, 0.32) | ||
def fr = MUL(20.0, 0.32) | ||
println "32% of 20 = {f:fr} (~{.2f:fr}) (~~{.0f:fr})" | ||
|
||
q8 = 1.25q8 | ||
q16 = 1.25Q16 | ||
q24 = 1.25q.24 | ||
def q8 = 1.25q8 | ||
def q16 = 1.25Q16 | ||
def q24 = 1.25q.24 | ||
println "Q8 ${x:q8} Q16 ${x:q16} Q24 ${x:q24}" | ||
|
||
qerr = 1.25q32 | ||
def qerr = 1.25q32 | ||
println qerr |
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,4 +1,4 @@ | ||
; It seems that \1 was the easiest way to notice the memory corruption that | ||
; resulted from this overflow | ||
x = 0 | ||
def x = 0 | ||
{.99999999f:x}\1 |
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,2 +1,2 @@ | ||
recurse EQUS "\{recurse\}" | ||
DEF recurse EQUS "\{recurse\}" | ||
{recurse} |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ SECTION "Test", ROM0 | |
|
||
Label: | ||
jr Label | ||
DIFF equ Label - @ | ||
def DIFF equ Label - @ | ||
PRINTLN "{DIFF}" |
Oops, something went wrong.