mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow 'dw' and 'dl' to apply to characters of strings
Fixes #568 The old behavior of `dw "string"` can be replicated with `dw ("string")`; likewise for dl
This commit is contained in:
@@ -506,6 +506,24 @@ void out_AbsByteGroup(uint8_t const *s, int32_t length)
|
||||
writebyte(*s++);
|
||||
}
|
||||
|
||||
void out_AbsWordGroup(uint8_t const *s, int32_t length)
|
||||
{
|
||||
checkcodesection();
|
||||
reserveSpace(length * 2);
|
||||
|
||||
while (length--)
|
||||
writeword(*s++);
|
||||
}
|
||||
|
||||
void out_AbsLongGroup(uint8_t const *s, int32_t length)
|
||||
{
|
||||
checkcodesection();
|
||||
reserveSpace(length * 4);
|
||||
|
||||
while (length--)
|
||||
writelong(*s++);
|
||||
}
|
||||
|
||||
/*
|
||||
* Skip this many bytes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user