mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-04 00:37:47 +00:00
Miscellaneous updates
This commit is contained in:
2
test/asm/error-limit.asm
Normal file
2
test/asm/error-limit.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
def x equ 1
|
||||
def x equ 2
|
||||
3
test/asm/error-limit.err
Normal file
3
test/asm/error-limit.err
Normal file
@@ -0,0 +1,3 @@
|
||||
error: error-limit.asm(2):
|
||||
'x' already defined at error-limit.asm(1)
|
||||
error: The maximum of 1 error was reached (configure with "-X/--max-errors"); assembly aborted!
|
||||
1
test/asm/error-limit.flags
Normal file
1
test/asm/error-limit.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Weverything -X 1
|
||||
@@ -1,6 +1,9 @@
|
||||
; no digits
|
||||
def x = $
|
||||
def x = `
|
||||
def x = 0b
|
||||
def x = 0o
|
||||
def x = 0x
|
||||
|
||||
; too large
|
||||
def x = 9_876_543_210
|
||||
|
||||
@@ -2,18 +2,24 @@ error: invalid-numbers.asm(2):
|
||||
Invalid integer constant, no digits after '$'
|
||||
error: invalid-numbers.asm(3):
|
||||
Invalid graphics constant, no digits after '`'
|
||||
warning: invalid-numbers.asm(6): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(7): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(8): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
error: invalid-numbers.asm(4):
|
||||
Invalid integer constant, no digits after '%'
|
||||
error: invalid-numbers.asm(5):
|
||||
Invalid integer constant, no digits after '&'
|
||||
error: invalid-numbers.asm(6):
|
||||
Invalid integer constant, no digits after '$'
|
||||
warning: invalid-numbers.asm(9): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(10): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(11): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(12): [-Wlarge-constant]
|
||||
Integer constant is too large
|
||||
warning: invalid-numbers.asm(13): [-Wlarge-constant]
|
||||
Magnitude of fixed-point constant is too large
|
||||
error: invalid-numbers.asm(13):
|
||||
Invalid fixed-point constant, no significant digits after 'q'
|
||||
error: invalid-numbers.asm(16):
|
||||
Invalid fixed-point constant, no significant digits after 'q'
|
||||
error: invalid-numbers.asm(19):
|
||||
Fixed-point constant precision must be between 1 and 31
|
||||
error: Assembly aborted (4 errors)!
|
||||
error: Assembly aborted (7 errors)!
|
||||
|
||||
3
test/asm/invalid-param.asm
Normal file
3
test/asm/invalid-param.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
section "test", rom0
|
||||
ld a, 256
|
||||
ld a, -129
|
||||
5
test/asm/invalid-param.err
Normal file
5
test/asm/invalid-param.err
Normal file
@@ -0,0 +1,5 @@
|
||||
warning: Invalid parameter 99 for warning flag "truncation"; capping at maximum 2
|
||||
warning: invalid-param.asm(2): [-Wtruncation]
|
||||
Expression must be 8-bit; use LOW() to force 8-bit
|
||||
warning: invalid-param.asm(3): [-Wtruncation]
|
||||
Expression must be 8-bit; use LOW() to force 8-bit
|
||||
1
test/asm/invalid-param.flags
Normal file
1
test/asm/invalid-param.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Weverything -Wtruncation=99
|
||||
Reference in New Issue
Block a user