├── .clang-format ├── .dockerignore ├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── scripts │ ├── build_libpng.sh │ ├── get_win_deps.ps1 │ ├── install.sh │ ├── install_deps.sh │ ├── mingw-w64-libpng-dev.sh │ └── mingw-w64-libpng-dev.sha256sums └── workflows │ ├── analysis.yml │ ├── build-container.yml │ ├── checkdiff.yml │ ├── checkformat.yml │ ├── create-release-artifacts.yml │ ├── create-release-docs.yml │ ├── testing.yml │ └── update-master-docs.yml ├── .gitignore ├── CMakeLists.txt ├── CONTRIBUTING.md ├── CONTRIBUTORS.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── RELEASE.md ├── contrib ├── bash_compl │ ├── _rgbasm.bash │ ├── _rgbfix.bash │ ├── _rgbgfx.bash │ └── _rgblink.bash ├── checkdiff.bash ├── checkformat.bash ├── coverage.bash ├── gbdiff.bash ├── view_palettes.sh └── zsh_compl │ ├── _rgbasm │ ├── _rgbfix │ ├── _rgbgfx │ └── _rgblink ├── include ├── asm │ ├── charmap.hpp │ ├── fixpoint.hpp │ ├── format.hpp │ ├── fstack.hpp │ ├── lexer.hpp │ ├── macro.hpp │ ├── main.hpp │ ├── opt.hpp │ ├── output.hpp │ ├── rpn.hpp │ ├── section.hpp │ ├── symbol.hpp │ └── warning.hpp ├── defaultinitvec.hpp ├── either.hpp ├── error.hpp ├── extern │ ├── getopt.hpp │ └── utf8decoder.hpp ├── file.hpp ├── gfx │ ├── main.hpp │ ├── pal_packing.hpp │ ├── pal_sorting.hpp │ ├── pal_spec.hpp │ ├── process.hpp │ ├── proto_palette.hpp │ ├── reverse.hpp │ └── rgba.hpp ├── helpers.hpp ├── itertools.hpp ├── link │ ├── assign.hpp │ ├── main.hpp │ ├── object.hpp │ ├── output.hpp │ ├── patch.hpp │ ├── sdas_obj.hpp │ ├── section.hpp │ └── symbol.hpp ├── linkdefs.hpp ├── opmath.hpp ├── platform.hpp ├── util.hpp └── version.hpp ├── man ├── gbz80.7 ├── rgbasm-old.5 ├── rgbasm.1 ├── rgbasm.5 ├── rgbds.5 ├── rgbds.7 ├── rgbfix.1 ├── rgbgfx.1 ├── rgblink.1 └── rgblink.5 ├── src ├── .gitignore ├── CMakeLists.txt ├── asm │ ├── .gitignore │ ├── charmap.cpp │ ├── fixpoint.cpp │ ├── format.cpp │ ├── fstack.cpp │ ├── lexer.cpp │ ├── macro.cpp │ ├── main.cpp │ ├── opt.cpp │ ├── output.cpp │ ├── parser.y │ ├── rpn.cpp │ ├── section.cpp │ ├── symbol.cpp │ └── warning.cpp ├── bison.sh ├── error.cpp ├── extern │ ├── getopt.cpp │ └── utf8decoder.cpp ├── fix │ └── main.cpp ├── gfx │ ├── main.cpp │ ├── pal_packing.cpp │ ├── pal_sorting.cpp │ ├── pal_spec.cpp │ ├── process.cpp │ ├── proto_palette.cpp │ ├── reverse.cpp │ └── rgba.cpp ├── link │ ├── .gitignore │ ├── assign.cpp │ ├── main.cpp │ ├── object.cpp │ ├── output.cpp │ ├── patch.cpp │ ├── script.y │ ├── sdas_obj.cpp │ ├── section.cpp │ └── symbol.cpp ├── linkdefs.cpp ├── opmath.cpp ├── util.cpp └── version.cpp └── test ├── .gitignore ├── CMakeLists.txt ├── CTestCustom.cmake.in ├── asm ├── .gitignore ├── align-16.asm ├── align-16.out ├── align-16.out.bin ├── align-large-ofs.asm ├── align-large-ofs.err ├── align-large.asm ├── align-large.err ├── align-offset.asm ├── align-offset.err ├── align-pc-outside-section.asm ├── align-pc-outside-section.err ├── align-pc.asm ├── align-pc.out.bin ├── align-unattainable.asm ├── align-unattainable.err ├── anon-label-bad.asm ├── anon-label-bad.err ├── anon-label.asm ├── anon-label.out.bin ├── arg-shift.asm ├── arg-shift.out ├── assert-const.asm ├── assert-const.out.bin ├── assert-fatal.asm ├── assert-fatal.err ├── assert-nosect-bank.asm ├── assert-nosect-bank.err ├── assert-nosect.asm ├── assert-nosect.out.bin ├── assert.asm ├── assert.err ├── assert@-no-sect.asm ├── assert@-no-sect.err ├── bank-noexist.asm ├── bank.asm ├── bank.err ├── bank.out ├── bit-functions.asm ├── block-comment-contents-error.asm ├── block-comment-contents-error.err ├── block-comment-contents-error.out ├── block-comment-termination-error.asm ├── block-comment-termination-error.err ├── block-comment.asm ├── block-comment.out ├── bracketed-macro-args.asm ├── bracketed-macro-args.err ├── bracketed-macro-args.out ├── bracketed-symbols.asm ├── bracketed-symbols.err ├── bracketed-symbols.out ├── break.asm ├── break.err ├── break.out ├── builtin-overwrite.asm ├── builtin-overwrite.err ├── builtin-overwrite.out ├── builtin-reserved.asm ├── builtin-reserved.err ├── ccode.asm ├── ccode.out.bin ├── character-escape-at-end.asm ├── character-escape-at-end.err ├── character-escape-at-end.out ├── character-escapes.asm ├── character-escapes.err ├── character-escapes.out ├── charcmp.asm ├── charcmp.out ├── charlen-strchar.asm ├── charlen-strchar.out ├── charlen-strchar.out.bin ├── charmap-empty.asm ├── charmap-empty.err ├── charmap-inheritance.asm ├── charmap-inheritance.err ├── charmap-unicode.asm ├── charsize.asm ├── charsize.err ├── code-after-endm-endr-endc.asm ├── code-after-endm-endr-endc.err ├── code-after-endm-endr-endc.out ├── command-line-symbols.asm ├── command-line-symbols.err ├── command-line-symbols.flags ├── compound-assignment.asm ├── compound-assignment.err ├── compound-assignment.out ├── const-and.asm ├── const-and.err ├── const-and.out ├── const-not.asm ├── const-not.err ├── const-unknown.asm ├── const-zero.asm ├── const-zero.err ├── const-zero.out ├── correct-line-number.asm ├── correct-line-number.err ├── crlf.asm ├── data-in-ram.asm ├── data-in-ram.err ├── data.bin ├── db-dw-dl-string.asm ├── db-dw-dl-string.err ├── db-dw-dl-string.out.bin ├── def-scoped.asm ├── def-scoped.err ├── def.asm ├── def.err ├── def.out ├── deprecated-ldio.asm ├── deprecated-ldio.err ├── deprecated-ldio.out.bin ├── destination-a.asm ├── destination-a.out.bin ├── diff-marks.asm ├── diff-marks.err ├── div-mod.asm ├── div-mod.out.bin ├── divzero-instr.asm ├── divzero-instr.err ├── divzero-section-bank.asm ├── divzero-section-bank.err ├── double-purge.asm ├── double-purge.err ├── ds-@.asm ├── ds-@.out.bin ├── ds-align-min.asm ├── ds-align-min.out.bin ├── ds-align-offset.asm ├── ds-align-offset.out.bin ├── ds-align.asm ├── ds-align.out.bin ├── ds-bad.asm ├── ds-bad.err ├── ds-byte.asm ├── ds-byte.out.bin ├── duplicate-section.asm ├── duplicate-section.err ├── elif-after-else.asm ├── elif-after-else.err ├── elif-after-else.out ├── elif-after-taken-if.asm ├── elif-after-taken-if.err ├── elif-after-taken-if.out ├── empty-data-directive.asm ├── empty-data-directive.err ├── empty-local-purged.asm ├── empty-local-purged.err ├── empty-local-referenced.asm ├── empty-local-referenced.err ├── empty-local-used.asm ├── empty-local-used.err ├── empty-local.asm ├── empty-local.err ├── empty-raw-identifier.asm ├── empty-raw-identifier.err ├── empty-raw-identifier.out ├── empty-strings.asm ├── empty-strings.err ├── empty.bin ├── endc-eof-newline-else.inc ├── endc-eof-newline.asm ├── endc-eof-newline.inc ├── endc-eof-newline.out ├── endc-outside-if.asm ├── endc-outside-if.err ├── endl-local-scope.asm ├── endsection-in-load.asm ├── endsection-in-load.err ├── endsection-in-union.asm ├── endsection-in-union.err ├── endsection-outside-section.asm ├── endsection-outside-section.err ├── endsection.asm ├── endsection.err ├── equ-charmap.asm ├── equ-charmap.out.bin ├── equs-macrodef.asm ├── equs-macrodef.out ├── equs-nest.asm ├── equs-nest.out ├── equs-newline.asm ├── equs-newline.err ├── equs-purge.asm ├── equs-purge.err ├── equs-recursion.asm ├── equs-recursion.err ├── error-recovery.asm ├── error-recovery.err ├── error-recovery.out ├── errors-after-missing-include.asm ├── errors-after-missing-include.flags ├── expand-empty-string.asm ├── expand-empty-string.err ├── expansions-change-context.asm ├── expansions-change-context.out ├── export.asm ├── export.err ├── fail.asm ├── fail.err ├── ff00+c-bad.asm ├── ff00+c-bad.err ├── ff00+c-label.asm ├── ff00+c-label.out ├── ff00+c-label.out.bin ├── ff00+c.asm ├── ff00+c.out.bin ├── fixed-oob.asm ├── fixed-oob.err ├── fixed-point-magnitude.asm ├── fixed-point-magnitude.err ├── fixed-point-magnitude.out ├── fixed-point-precision.asm ├── fixed-point-precision.err ├── fixed-point-precision.out ├── fixed-point-specific.asm ├── fixed-point-specific.out ├── for-loop-count.asm ├── for-loop-count.err ├── for-loop-count.out ├── for-loop-variable.asm ├── for-loop-variable.err ├── for-loop-variable.out ├── for.asm ├── for.err ├── for.out ├── format-extremes.asm ├── format-extremes.out ├── format-truncation.asm ├── format-truncation.err ├── format-truncation.out ├── fragment-align-org-rev.asm ├── fragment-align-org-rev.out.bin ├── fragment-align-org.asm ├── fragment-align-org.out.bin ├── fragment-align.asm ├── fragment-align.err ├── fragment-mismatch.asm ├── fragment-mismatch.err ├── garbage_char.asm ├── garbage_char.err ├── garbage_sequence.asm ├── garbage_sequence.err ├── if-macro.asm ├── if-macro.err ├── impossible-bank.asm ├── impossible-bank.err ├── incbin-empty-bad.asm ├── incbin-empty-bad.err ├── incbin-empty.asm ├── incbin-end-0.asm ├── incbin-end-0.err ├── incbin-end-bad.asm ├── incbin-end-bad.err ├── incbin-end.asm ├── incharmap.asm ├── include-eof-newline.asm ├── include-eof-newline.inc ├── include-eof-newline.out ├── include-recursion.asm ├── include-recursion.err ├── include-unique-id.asm ├── include-unique-id.inc ├── include-unique-id.out ├── incompatible-alignment.asm ├── incompatible-alignment.err ├── interpolation-overflow.asm ├── interpolation-overflow.err ├── interpolation-recursion.asm ├── interpolation-recursion.err ├── interpolation.asm ├── interpolation.err ├── interpolation.out ├── invalid-alignment.asm ├── invalid-alignment.err ├── invalid-bank.asm ├── invalid-bank.err ├── invalid-empty-macro-arg.asm ├── invalid-empty-macro-arg.err ├── invalid-format.asm ├── invalid-format.err ├── invalid-format.out ├── invalid-instructions.asm ├── invalid-instructions.err ├── invalid-jr.asm ├── invalid-jr.err ├── invalid-macro-arg-character.asm ├── invalid-macro-arg-character.err ├── invalid-macro-arg-symbol.asm ├── invalid-macro-arg-symbol.err ├── invalid-numbers.asm ├── invalid-numbers.err ├── invalid-opt.asm ├── invalid-opt.err ├── invalid-strchar-charsub.asm ├── invalid-strchar-charsub.err ├── invalid-union.asm ├── invalid-union.err ├── invalid-utf-8-strings.asm ├── invalid-utf-8-strings.err ├── invalid-utf-8-strings.out ├── invalid-utf-8.asm ├── invalid-utf-8.err ├── isconst.asm ├── isconst.err ├── isconst.out ├── jr-@.asm ├── jr-@.out.bin ├── jr-section.asm ├── jr-section.out ├── jr-section.out.bin ├── label-diff.asm ├── label-diff.err ├── label-diff.out ├── label-indent.asm ├── label-indent.out ├── label-macro-arg.asm ├── label-macro-arg.err ├── label-macro-arg.out ├── label-outside-section.asm ├── label-outside-section.err ├── label-outside-section.out ├── label-redefinition.asm ├── label-redefinition.err ├── label-scope.asm ├── label-scope.err ├── label-scope.out ├── lexer-hack.asm ├── lexer-hack.err ├── lexer-hack.out ├── line-continuation-macro.asm ├── line-continuation-rept.asm ├── line-continuation-string.asm ├── line-continuation-string.out ├── line-continuation-whitespace.asm ├── line-continuation-whitespace.err ├── line-continuation.asm ├── line-continuation.err ├── load-begin.asm ├── load-begin.out.bin ├── load-endings.asm ├── load-endings.err ├── load-endings.out.bin ├── load-fragment.asm ├── load-fragment.out.bin ├── load-in-load.asm ├── load-in-load.err ├── load-overflow.asm ├── load-overflow.err ├── load-pushs-load.asm ├── load-pushs-load.out.bin ├── load-pushs.asm ├── load-pushs.out.bin ├── load-rom.asm ├── load-rom.err ├── load-trail.asm ├── load-trail.out.bin ├── load-union.asm ├── load-union.out.bin ├── local-purge.asm ├── local-purge.err ├── local-purge.out ├── local-ref-without-parent.asm ├── local-ref-without-parent.err ├── local-without-parent.asm ├── local-without-parent.err ├── long-format-spec.asm ├── long-format-spec.out ├── long-local.asm ├── long-rpn-expression.asm ├── long-section-name.asm ├── long-section-name.out ├── long-section-name.out.bin ├── long-string-constant.asm ├── long-string-constant.out ├── macro-#.asm ├── macro-#.out ├── macro-#.out.bin ├── macro-@.asm ├── macro-@.err ├── macro-arg-0.asm ├── macro-arg-0.err ├── macro-arg-escape-chars.asm ├── macro-arg-escape-chars.out ├── macro-arg-illegal-escape.asm ├── macro-arg-illegal-escape.err ├── macro-arg-illegal-escape.out ├── macro-arg-in-string.asm ├── macro-arg-in-string.err ├── macro-arg-in-string.out ├── macro-arg-parentheses.asm ├── macro-arg-parentheses.out ├── macro-args-outside-macro.asm ├── macro-args-outside-macro.err ├── macro-args-outside-macro.out ├── macro-argument-limit.asm ├── macro-argument-limit.out.bin ├── macro-arguments.asm ├── macro-arguments.err ├── macro-arguments.out ├── macro-eof.asm ├── macro-eof.out ├── macro-line-no.asm ├── macro-line-no.err ├── macro-purge.asm ├── macro-purge.err ├── macro-recursion.asm ├── macro-recursion.err ├── macro-syntax.asm ├── macro-syntax.err ├── macro-syntax.out ├── math.asm ├── math.out.bin ├── max-errors.asm ├── max-errors.err ├── max-errors.flags ├── minimum-int.asm ├── minimum-int.out ├── modzero-instr.asm ├── modzero-instr.err ├── multi-line-strings.asm ├── multi-line-strings.err ├── multi-line-strings.out ├── multiple-charmaps.asm ├── multiple-charmaps.err ├── multiple-charmaps.out ├── multiple-dots-local.asm ├── multiple-dots-local.err ├── multiple-else.asm ├── multiple-else.err ├── multiple-else.out ├── multiple-instructions.asm ├── multiple-instructions.out.bin ├── multivalue-charmap.asm ├── multivalue-charmap.err ├── multivalue-charmap.out.bin ├── narg-decreases-after-shift.asm ├── narg-decreases-after-shift.err ├── narg-decreases-after-shift.out.bin ├── negative-ds.asm ├── negative-ds.err ├── negative-exponent.asm ├── negative-exponent.err ├── negative-macro-args.asm ├── negative-macro-args.err ├── negative-macro-args.out ├── nested-bad-interpolation.asm ├── nested-bad-interpolation.err ├── nested-brackets.asm ├── nested-brackets.err ├── nested-brackets.out ├── nested-break.asm ├── nested-break.out ├── nested-expansions.asm ├── nested-expansions.err ├── nested-if.asm ├── nested-interpolation-recursion.asm ├── nested-interpolation-recursion.err ├── nested-local-reference.asm ├── nested-local-reference.err ├── nested-local.asm ├── nested-local.err ├── nested-macrodef.asm ├── nested-macrodef.err ├── nested-macrodef.out ├── new-pushed-section.asm ├── new-pushed-section.err ├── non-numeric-symbol.asm ├── non-numeric-symbol.err ├── nonexist-include.asm ├── nonexist-include.err ├── notexist.err ├── null-character.asm ├── null-character.err ├── null-character.out ├── null-character.out.bin ├── null-in-macro.asm ├── null-in-macro.err ├── null-outside-string.asm ├── null-outside-string.err ├── number-prefixes.asm ├── operator-associativity.asm ├── operator-precedence.asm ├── operator-precedence.out ├── opt-Q.asm ├── opt-Q.err ├── opt-Q.out ├── opt-b.asm ├── opt-b.flags ├── opt-b.out ├── opt-g.asm ├── opt-g.flags ├── opt-g.out ├── opt-r-decrease.asm ├── opt-r-decrease.err ├── opt-r-decrease.out ├── opt-r.asm ├── opt-r.err ├── opt.asm ├── opt.err ├── opt.out ├── opt.out.bin ├── overflow.asm ├── overflow.err ├── overflow.out ├── pc-bank.asm ├── pc-bank.err ├── pc-bank.out ├── pc-operand.asm ├── pc-operand.out.bin ├── pc.asm ├── pc.out ├── pc.out.bin ├── period.asm ├── pops-no-pushed-sections.asm ├── pops-no-pushed-sections.err ├── pops-restore-no-section.asm ├── pops-restore-no-section.err ├── preinclude.asm ├── preinclude.err ├── preinclude.flags ├── preinclude.inc ├── preinclude.out ├── purge-deferred.asm ├── purge-multiple.asm ├── purge-multiple.err ├── purge-ref.asm ├── purge-ref.err ├── purge-refs.asm ├── purge-refs.err ├── purge.asm ├── purge.err ├── pushc-without-switch.asm ├── pushs-outside-section.asm ├── pushs.asm ├── pushs.err ├── quine.asm ├── quine.out ├── quine2.asm ├── quine2.out ├── ram-code.asm ├── ram-code.out ├── ram-code.out.bin ├── raw-identifiers.asm ├── raw-identifiers.out ├── raw-identifiers.out.bin ├── raw-macro-args.asm ├── raw-macro-args.err ├── raw-macro-args.out ├── raw-string-symbol-errors.asm ├── raw-string-symbol-errors.err ├── raw-string-symbols.asm ├── raw-string-symbols.out ├── raw-string-symbols.out.bin ├── raw-strings.asm ├── raw-strings.out ├── redef-equ.asm ├── redef-equ.err ├── redef-equ.out ├── redef-equs.asm ├── redef-equs.err ├── redef-equs.out ├── ref-override-bad.asm ├── ref-override-bad.err ├── ref-override.asm ├── ref-override.out.bin ├── reference-undefined-equs.asm ├── reference-undefined-equs.err ├── reference-undefined-sym.asm ├── reference-undefined-sym.out.bin ├── remote-local-explicit.asm ├── remote-local-noexist.asm ├── remote-local.asm ├── rept-0.asm ├── rept-line-no.asm ├── rept-line-no.err ├── rept-macro-fstack-trace.asm ├── rept-macro-fstack-trace.err ├── rept-shift.asm ├── rept-shift.err ├── rept-shift.out ├── revchar.asm ├── revchar.err ├── rs-overwrite.asm ├── rs-overwrite.err ├── rs-overwrite.out ├── rs.asm ├── rs.out ├── rst.asm ├── section-in-load.asm ├── section-in-load.err ├── section-in-union.asm ├── section-in-union.err ├── section-name-invalid.asm ├── section-name-invalid.err ├── section-name-invalid.out ├── section-name-undefined.asm ├── section-name-undefined.err ├── section-name.asm ├── section-name.out ├── section-name.out.bin ├── section-sizeof-startof.asm ├── section-sizeof-startof.err ├── section-sizeof-startof.out ├── section-union-mismatch.asm ├── section-union-mismatch.err ├── section-union.asm ├── section-union.err ├── section-union.out ├── section-unsigned-overflow.asm ├── section-unsigned-overflow.err ├── shift-negative.asm ├── shift-negative.err ├── shift-negative.out ├── shift-outside-macro.asm ├── shift-outside-macro.err ├── shift.asm ├── shift.err ├── shift.out ├── shift.out.bin ├── skip-elif-condition.asm ├── skip-elif-condition.err ├── skip-elif-condition.out ├── skip-expansions.asm ├── skip-expansions.err ├── skip-expansions.out ├── sort-algorithms.asm ├── sort-algorithms.out ├── state-file │ ├── a.asm │ └── a.dump.asm ├── strcat.asm ├── strcat.out ├── strfind-strin.asm ├── strfmt.asm ├── strfmt.err ├── strfmt.out ├── string-formatting.asm ├── string-formatting.out ├── string-literal-macro-arg.asm ├── string-literal-macro-arg.err ├── string-literal-macro-arg.out ├── strlen.asm ├── strlen.out ├── strrpl.asm ├── strrpl.err ├── strrpl.out ├── strslice-strsub.asm ├── strslice-strsub.err ├── strslice-strsub.out ├── strupr-strlwr.asm ├── strupr-strlwr.out ├── sym-collision.asm ├── sym-collision.err ├── sym-collision.out ├── sym-scope.asm ├── symbol-invalid-macro-arg.asm ├── symbol-invalid-macro-arg.err ├── symbol-invalid-macro-arg.out ├── symbol-names.asm ├── symbol-override.asm ├── symbol-override.err ├── symbol-override.out ├── syntax-error-after-syntax-error.asm ├── syntax-error-after-syntax-error.err ├── syntax-error-after-syntax-error.out ├── syntax-error-eof-newline.asm ├── syntax-error-eof-newline.err ├── syntax-error-eof-newline.inc ├── syntax-error-eof-newline.out ├── syntax-error-lexer-mode.asm ├── syntax-error-lexer-mode.err ├── syntax-error-lexer-mode.out ├── syntax-error.asm ├── syntax-error.err ├── test.sh ├── trailing-commas.asm ├── trailing-commas.err ├── trailing-commas.out ├── trailing-commas.out.bin ├── trigonometry.asm ├── trigonometry.out.bin ├── trimmed-macro-args.asm ├── trimmed-macro-args.out ├── undefined-builtins.asm ├── undefined-builtins.err ├── undefined-builtins.out ├── undefined-local.asm ├── undefined-opt.asm ├── undefined-opt.err ├── underscore-in-numeric-literal.asm ├── underscore-in-numeric-literal.out.bin ├── union-in-rom.asm ├── union-in-rom.err ├── union-in-union.asm ├── union-pushs.asm ├── union-pushs.out.bin ├── unique-id-include.asm ├── unique-id-include.inc ├── unique-id-include.out ├── unique-id-nested.asm ├── unique-id-nested.out ├── unique-id-values.asm ├── unique-id-values.out ├── unique-id.asm ├── unique-id.err ├── unmapped-char.asm ├── unmapped-char.err ├── unmapped-char.out ├── unmapped-char.out.bin ├── unmatched-directive.asm ├── unmatched-directive.err ├── unterminated-if-eof.asm ├── unterminated-if-eof.err ├── unterminated-if-include.inc ├── unterminated-if.asm ├── unterminated-if.err ├── unterminated-if.out ├── unterminated-load.asm ├── unterminated-load.err ├── unterminated-rept.asm ├── unterminated-rept.err ├── update-refs.sh ├── use-label-outside-section.asm ├── use-label-outside-section.err ├── use-label-outside-section.out ├── use-purged-symbol.asm ├── use-purged-symbol.err ├── use-purged-symbol.out ├── utc-time.asm ├── utf-8.asm ├── utf-8.out.bin ├── warn-numeric-string.asm ├── warn-numeric-string.err ├── warn-truncation.asm ├── warn-truncation.err ├── weird-comments.asm ├── weird-comments.err ├── weird-comments.out └── zero-byte-file.asm ├── fetch-test-deps.sh ├── fix ├── .gitignore ├── README.md ├── bad-fix-char.bin ├── bad-fix-char.err ├── bad-fix-char.flags ├── color.bin ├── color.err ├── color.flags ├── color.gb ├── compatible.bin ├── compatible.err ├── compatible.flags ├── compatible.gb ├── custom-logo.1bpp ├── custom-logo.bin ├── custom-logo.err ├── custom-logo.flags ├── custom-logo.gb ├── default-input.bin ├── dollar-hex.bin ├── dollar-hex.err ├── dollar-hex.flags ├── dollar-hex.gb ├── empty.bin ├── empty.err ├── empty.flags ├── empty.gb ├── fix-override.bin ├── fix-override.err ├── fix-override.flags ├── fix-override.gb ├── gameid-trunc.bin ├── gameid-trunc.err ├── gameid-trunc.flags ├── gameid-trunc.gb ├── gameid.bin ├── gameid.err ├── gameid.flags ├── gameid.gb ├── global-large.bin ├── global-large.err ├── global-large.flags ├── global-large.gb ├── global-larger.bin ├── global-larger.err ├── global-larger.flags ├── global-larger.gb ├── global-trash.bin ├── global-trash.err ├── global-trash.flags ├── global-trash.gb ├── global.bin ├── global.err ├── global.flags ├── global.gb ├── header-edit.bin ├── header-edit.err ├── header-edit.flags ├── header-edit.gb ├── header-trash.bin ├── header-trash.err ├── header-trash.flags ├── header-trash.gb ├── header.bin ├── header.err ├── header.flags ├── header.gb ├── incompatible-features.err ├── incompatible-features.flags ├── jp.bin ├── jp.err ├── jp.flags ├── jp.gb ├── list-mbcs.err ├── list-mbcs.flags ├── logo-trash.bin ├── logo-trash.err ├── logo-trash.flags ├── logo-trash.gb ├── logo.bin ├── logo.err ├── logo.flags ├── logo.gb ├── mbc-bandai-tama5.flags ├── mbc-bandai-tama5.gb ├── mbc-huc1-ram-battery.flags ├── mbc-huc1-ram-battery.gb ├── mbc-huc3.flags ├── mbc-huc3.gb ├── mbc-mbc1-ram-battery.flags ├── mbc-mbc1-ram-battery.gb ├── mbc-mbc1-ram.flags ├── mbc-mbc1-ram.gb ├── mbc-mbc1.flags ├── mbc-mbc1.gb ├── mbc-mbc2-battery.flags ├── mbc-mbc2-battery.gb ├── mbc-mbc2.flags ├── mbc-mbc2.gb ├── mbc-mbc3-ram-battery.flags ├── mbc-mbc3-ram-battery.gb ├── mbc-mbc3-ram.flags ├── mbc-mbc3-ram.gb ├── mbc-mbc3-timer-battery.flags ├── mbc-mbc3-timer-battery.gb ├── mbc-mbc3-timer-ram-battery.flags ├── mbc-mbc3-timer-ram-battery.gb ├── mbc-mbc3.flags ├── mbc-mbc3.gb ├── mbc-mbc5-ram-battery.flags ├── mbc-mbc5-ram-battery.gb ├── mbc-mbc5-ram.flags ├── mbc-mbc5-ram.gb ├── mbc-mbc5-rumble-ram-battery.flags ├── mbc-mbc5-rumble-ram-battery.gb ├── mbc-mbc5-rumble-ram.flags ├── mbc-mbc5-rumble-ram.gb ├── mbc-mbc5-rumble.flags ├── mbc-mbc5-rumble.gb ├── mbc-mbc5.flags ├── mbc-mbc5.gb ├── mbc-mbc6.flags ├── mbc-mbc6.gb ├── mbc-mbc7-sensor-rumble-ram-battery.flags ├── mbc-mbc7-sensor-rumble-ram-battery.gb ├── mbc-mmm01-ram-battery.flags ├── mbc-mmm01-ram-battery.gb ├── mbc-mmm01-ram.flags ├── mbc-mmm01-ram.gb ├── mbc-mmm01.flags ├── mbc-mmm01.gb ├── mbc-pocket-camera.flags ├── mbc-pocket-camera.gb ├── mbc-rom-only.flags ├── mbc-rom-only.gb ├── mbc-rom-ram-battery.err ├── mbc-rom-ram-battery.flags ├── mbc-rom-ram-battery.gb ├── mbc-rom-ram.err ├── mbc-rom-ram.flags ├── mbc-rom-ram.gb ├── mbc-rom.flags ├── mbc-rom.gb ├── mbc-tama5.flags ├── mbc-tama5.gb ├── mbc.bin ├── mbc.err ├── mbc.flags ├── mbc.gb ├── mbcless-ram.bin ├── mbcless-ram.err ├── mbcless-ram.flags ├── mbcless-ram.gb ├── new-lic-trunc.bin ├── new-lic-trunc.err ├── new-lic-trunc.flags ├── new-lic-trunc.gb ├── new-lic.bin ├── new-lic.err ├── new-lic.flags ├── new-lic.gb ├── noexist.err ├── noop.bin ├── noop.flags ├── noop.gb ├── old-lic-hex.bin ├── old-lic-hex.err ├── old-lic-hex.flags ├── old-lic-hex.gb ├── old-lic.bin ├── old-lic.err ├── old-lic.flags ├── old-lic.gb ├── overwrite.bin ├── overwrite.flags ├── padding-bigperfect.bin ├── padding-bigperfect.flags ├── padding-bigperfect.gb ├── padding-imperfect.bin ├── padding-imperfect.flags ├── padding-imperfect.gb ├── padding-large.bin ├── padding-large.flags ├── padding-large.gb ├── padding-larger.bin ├── padding-larger.flags ├── padding-larger.gb ├── padding-perfect.bin ├── padding-perfect.flags ├── padding-perfect.gb ├── padding-rom0.bin ├── padding-rom0.flags ├── padding-rom0.gb ├── padding.bin ├── padding.flags ├── padding.gb ├── ram.bin ├── ram.err ├── ram.flags ├── ram.gb ├── ramful-mbc-no-ram.bin ├── ramful-mbc-no-ram.err ├── ramful-mbc-no-ram.flags ├── ramful-mbc-no-ram.gb ├── ramful-mbc.bin ├── ramful-mbc.err ├── ramful-mbc.flags ├── ramful-mbc.gb ├── ramless-mbc.bin ├── ramless-mbc.err ├── ramless-mbc.flags ├── ramless-mbc.gb ├── sgb-licensee.bin ├── sgb-licensee.err ├── sgb-licensee.flags ├── sgb-old-licensee.bin ├── sgb-old-licensee.err ├── sgb-old-licensee.flags ├── sgb.bin ├── sgb.err ├── sgb.flags ├── sgb.gb ├── test.sh ├── title-color-trunc-rev.bin ├── title-color-trunc-rev.err ├── title-color-trunc-rev.flags ├── title-color-trunc-rev.gb ├── title-color-trunc.bin ├── title-color-trunc.err ├── title-color-trunc.flags ├── title-color-trunc.gb ├── title-compat-trunc-rev.bin ├── title-compat-trunc-rev.err ├── title-compat-trunc-rev.flags ├── title-compat-trunc-rev.gb ├── title-compat-trunc.bin ├── title-compat-trunc.err ├── title-compat-trunc.flags ├── title-compat-trunc.gb ├── title-gameid-trunc-rev.bin ├── title-gameid-trunc-rev.err ├── title-gameid-trunc-rev.flags ├── title-gameid-trunc-rev.gb ├── title-gameid-trunc.bin ├── title-gameid-trunc.err ├── title-gameid-trunc.flags ├── title-gameid-trunc.gb ├── title-pad.bin ├── title-pad.err ├── title-pad.flags ├── title-pad.gb ├── title-trunc.bin ├── title-trunc.err ├── title-trunc.flags ├── title-trunc.gb ├── title.bin ├── title.err ├── title.flags ├── title.gb ├── tooshort.bin ├── tooshort.err ├── tooshort.flags ├── tpp1-bad-major.bin ├── tpp1-bad-major.err ├── tpp1-bad-major.flags ├── tpp1-bad-minor.bin ├── tpp1-bad-minor.err ├── tpp1-bad-minor.flags ├── tpp1-features.bin ├── tpp1-features.err ├── tpp1-features.flags ├── tpp1-features.gb ├── tpp1-nonjap.bin ├── tpp1-nonjap.err ├── tpp1-nonjap.flags ├── tpp1-nonjap.gb ├── tpp1-too-short.bin ├── tpp1-too-short.err ├── tpp1-too-short.flags ├── tpp1-unk-major.bin ├── tpp1-unk-major.err ├── tpp1-unk-major.flags ├── tpp1-unk-minor.bin ├── tpp1-unk-minor.err ├── tpp1-unk-minor.flags ├── unknown-mbc.err ├── unknown-mbc.flags ├── verify-pad.bin ├── verify-pad.err ├── verify-pad.flags ├── verify-pad.gb ├── verify-trash.bin ├── verify-trash.err ├── verify-trash.flags ├── verify-trash.gb ├── verify.bin ├── verify.err ├── verify.flags ├── verify.gb ├── version.bin ├── version.err ├── version.flags └── version.gb ├── gfx ├── .gitignore ├── alpha_embedded.err ├── alpha_embedded.flags ├── alpha_embedded.png ├── alpha_grayscale.out.2bpp ├── alpha_grayscale.out.pal ├── alpha_grayscale.out.palmap ├── alpha_grayscale.out.tilemap ├── alpha_grayscale.png ├── alpha_rgb.out.2bpp ├── alpha_rgb.out.pal ├── alpha_rgb.out.palmap ├── alpha_rgb.out.tilemap ├── alpha_rgb.png ├── at-file-ref.err ├── at-file-ref.flags ├── at-file-ref.pal ├── at-file-ref.png ├── bad_manual_pals.err ├── bad_manual_pals.flags ├── bad_manual_pals.png ├── bg_fuse.err ├── bg_fuse.flags ├── bg_fuse.png ├── bg_in_tile.err ├── bg_in_tile.flags ├── bg_in_tile.png ├── bg_oval.flags ├── bg_oval.out.2bpp ├── bg_oval.out.attrmap ├── bg_oval.out.pal ├── bg_oval.out.tilemap ├── bg_oval.png ├── color_curve.flags ├── color_curve.out.2bpp ├── color_curve.out.pal ├── color_curve.png ├── crop.flags ├── crop.out.2bpp ├── crop.out.pal ├── crop.png ├── damaged1.err ├── damaged1.png ├── damaged2.err ├── damaged2.png ├── damaged9.err ├── damaged9.png ├── empty_lines.flags ├── empty_lines.hex ├── empty_lines.out.2bpp ├── empty_lines.out.pal ├── empty_lines.png ├── font_nums.out.2bpp ├── font_nums.out.pal ├── font_nums.png ├── full_aco.aco ├── full_aco.flags ├── full_aco.out.2bpp ├── full_aco.out.attrmap ├── full_aco.out.pal ├── full_aco.out.tilemap ├── full_aco.png ├── full_act.act ├── full_act.flags ├── full_act.out.2bpp ├── full_act.out.attrmap ├── full_act.out.pal ├── full_act.out.tilemap ├── full_act.png ├── full_gbc.flags ├── full_gbc.out.2bpp ├── full_gbc.out.attrmap ├── full_gbc.out.pal ├── full_gbc.out.tilemap ├── full_gbc.pal ├── full_gbc.png ├── full_gpl.flags ├── full_gpl.gpl ├── full_gpl.out.2bpp ├── full_gpl.out.attrmap ├── full_gpl.out.pal ├── full_gpl.out.tilemap ├── full_gpl.png ├── full_hex.flags ├── full_hex.hex ├── full_hex.out.2bpp ├── full_hex.out.attrmap ├── full_hex.out.pal ├── full_hex.out.tilemap ├── full_hex.png ├── full_psp.flags ├── full_psp.out.2bpp ├── full_psp.out.attrmap ├── full_psp.out.pal ├── full_psp.out.tilemap ├── full_psp.pal ├── full_psp.png ├── input_tileset.flags ├── input_tileset.in.2bpp ├── input_tileset.out.2bpp ├── input_tileset.png ├── input_tileset_deduped.err ├── input_tileset_deduped.flags ├── input_tileset_deduped.in.2bpp ├── input_tileset_deduped.png ├── input_tileset_extra.err ├── input_tileset_extra.flags ├── input_tileset_extra.in.2bpp ├── input_tileset_extra.png ├── input_tileset_with_bg.flags ├── input_tileset_with_bg.in.2bpp ├── input_tileset_with_bg.in.pal ├── input_tileset_with_bg.out.2bpp ├── input_tileset_with_bg.out.attrmap ├── input_tileset_with_bg.out.tilemap ├── input_tileset_with_bg.png ├── mirror_x.flags ├── mirror_x.out.2bpp ├── mirror_x.out.attrmap ├── mirror_x.out.tilemap ├── mirror_x.png ├── mirror_xy.flags ├── mirror_xy.out.2bpp ├── mirror_xy.out.attrmap ├── mirror_xy.out.tilemap ├── mirror_xy.png ├── mirror_y.flags ├── mirror_y.out.2bpp ├── mirror_y.out.attrmap ├── mirror_y.out.tilemap ├── mirror_y.png ├── multiple_manual_pals.flags ├── multiple_manual_pals.out.2bpp ├── multiple_manual_pals.out.pal ├── multiple_manual_pals.png ├── none_comma_ommission.err ├── none_comma_ommission.flags ├── none_comma_ommission.png ├── none_round_trip.2bpp ├── none_round_trip.flags ├── randtilegen.cpp ├── reverse_1bit.1bpp ├── reverse_1bit.attrmap ├── reverse_1bit.flags ├── reverse_1bit.tilemap ├── reverse_curve.2bpp ├── reverse_curve.attrmap ├── reverse_curve.flags ├── reverse_curve.pal ├── reverse_curve.tilemap ├── rgbgfx_test.cpp ├── seed0.bin ├── seed1.bin ├── seed10.bin ├── seed11.bin ├── seed12.bin ├── seed13.bin ├── seed14.bin ├── seed15.bin ├── seed16.bin ├── seed17.bin ├── seed18.bin ├── seed19.bin ├── seed2.bin ├── seed20.bin ├── seed21.bin ├── seed22.bin ├── seed23.bin ├── seed24.bin ├── seed25.bin ├── seed26.bin ├── seed27.bin ├── seed28.bin ├── seed29.bin ├── seed3.bin ├── seed4.bin ├── seed5.bin ├── seed6.bin ├── seed7.bin ├── seed8.bin ├── seed9.bin ├── test.sh ├── trans_bg_in_tile.err ├── trans_bg_in_tile.flags ├── trans_bg_in_tile.png ├── trns_lt_plte.err ├── trns_lt_plte.flags ├── trns_lt_plte.png ├── write_stdout.bin └── write_stdout.out.2bpp ├── link ├── align16.asm ├── align16.link ├── align16.out ├── align16.out.bin ├── all-instructions.asm ├── all-instructions.out ├── all-instructions.out.bin ├── assert.asm ├── assert.out ├── bank-const │ ├── a.asm │ ├── b.asm │ └── out.err ├── bank-numbers.asm ├── bank-numbers.out ├── bank-numbers.out.bin ├── bit-res-set-bad.asm ├── bit-res-set-bad.out ├── bit-res-set.asm ├── bit-res-set.out ├── bit-res-set.out.bin ├── cascading-errors-fatal-assert.asm ├── cascading-errors-fatal-assert.out ├── cascading-errors.asm ├── cascading-errors.out ├── constant-parent │ ├── a.asm │ ├── b.asm │ ├── out.err │ ├── ref.out.bin │ └── ref.out.sym ├── db-@.asm ├── db-@.out ├── db-@.out.bin ├── fragment-align │ ├── base-bad │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err │ ├── base │ │ ├── a.asm │ │ ├── b.asm │ │ ├── out.err │ │ └── out.gb │ ├── org-bad │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err │ ├── org-rev-bad │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err │ ├── org-rev │ │ ├── a.asm │ │ ├── b.asm │ │ ├── out.err │ │ └── out.gb │ └── org │ │ ├── a.asm │ │ ├── b.asm │ │ ├── out.err │ │ └── out.gb ├── high-low │ ├── a.asm │ └── b.asm ├── invalid-bank-t.out ├── invalid-bank.asm ├── invalid-patches.asm ├── invalid-patches.out ├── invalid-ram-types-d.out ├── invalid-ram-types.asm ├── jr-@.asm ├── jr-@.out ├── jr-@.out.bin ├── ldh-bad.asm ├── ldh-bad.out ├── linkerscript-escapes-test.link ├── linkerscript-escapes-test.out ├── linkerscript-escapes.asm ├── linkerscript-include.asm ├── linkerscript-include.inc ├── linkerscript-include.link ├── linkerscript-include.out ├── load-fragment-jr.asm ├── load-fragment-jr.out ├── load-fragment-jr.out.bin ├── load-fragment │ ├── base │ │ ├── a.asm │ │ ├── ref.out.bin │ │ └── ref.out.sym │ ├── multiple-objects │ │ ├── a.asm │ │ ├── b.asm │ │ └── ref.out.bin │ └── section-fragment │ │ ├── a.asm │ │ ├── b.asm │ │ ├── c.asm │ │ ├── ref.out.bin │ │ ├── ref.out.map │ │ └── ref.out.sym ├── map-file │ ├── a.asm │ ├── out.err │ ├── ref.out.bin │ └── ref.out.map ├── operators.asm ├── operators.out ├── operators.out.bin ├── overlay │ ├── smaller │ │ ├── a.asm │ │ ├── out.err │ │ ├── out.gb │ │ └── overlay.gb │ └── tiny │ │ ├── a.asm │ │ ├── out.err │ │ ├── out.gb │ │ └── overlay.gb ├── patch-overflow.asm ├── patch-overflow.out ├── rom0-tiny-no-t.out ├── rom0-tiny-t.out ├── rom0-tiny.asm ├── romx-tiny-no-t.out ├── romx-tiny-t.out ├── romx-tiny.asm ├── rst-bad.asm ├── rst-bad.out ├── rst.asm ├── rst.out ├── rst.out.bin ├── same-consts │ ├── a.asm │ ├── b.asm │ └── out.err ├── scramble-romx │ ├── a.asm │ └── out.err ├── script-align-17.link ├── script-align-17.out ├── script-different-bank.link ├── script-different-bank.out ├── script-different-type.link ├── script-different-type.out ├── script-ds-overflow.link ├── script-ds-overflow.out ├── script-excess-align-ofs.link ├── script-excess-align-ofs.out ├── script-huge-ds.link ├── script-huge-ds.out ├── script-include │ ├── a.asm │ ├── a.inc │ ├── b.asm │ ├── b.inc │ ├── out.err │ ├── ref.out.bin │ └── script.link ├── script-lone-dollar.link ├── script-lone-dollar.out ├── script-lone-percent.link ├── script-lone-percent.out ├── script-missing-bank-no.link ├── script-missing-bank-no.out ├── script-num-fmt.link ├── script-num-fmt.out ├── script-oob-bank-num.link ├── script-oob-bank-num.out ├── script-oob-org.link ├── script-oob-org.out ├── script-overflowing-sect.link ├── script-overflowing-sect.out ├── script-syntax-error.link ├── script-syntax-error.out ├── script-typeless-bank.link ├── script-typeless-bank.out ├── script-unk-keyword.link ├── script-unk-keyword.out ├── script-unknown-section.link ├── script-unknown-section.out ├── script-unterminated-string.link ├── script-unterminated-string.out ├── script.asm ├── sdcc │ ├── good │ │ ├── a.asm │ │ ├── b.c │ │ ├── b.rel │ │ ├── c.c │ │ ├── c.rel │ │ ├── out.err │ │ ├── ref.out.bin │ │ ├── ref.out.sym │ │ └── script.link │ └── no-script │ │ ├── a.asm │ │ ├── b.c │ │ ├── b.rel │ │ └── out.err ├── section-attributes-mismatch.link ├── section-attributes-mismatch.out ├── section-attributes.asm ├── section-attributes.link ├── section-attributes.out ├── section-conflict │ └── different-mod │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err ├── section-fragment │ ├── good │ │ ├── a.asm │ │ ├── b.asm │ │ └── ref.out.bin │ ├── jr-offset-load │ │ ├── a.asm │ │ ├── b.asm │ │ └── ref.out.bin │ └── jr-offset │ │ ├── a.asm │ │ ├── b.asm │ │ └── ref.out.bin ├── section-normal │ └── same-name │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err ├── section-union │ ├── align-conflict.asm │ ├── align-conflict.out │ ├── align-ofs-conflict.asm │ ├── align-ofs-conflict.out │ ├── assert.asm │ ├── assert.out │ ├── bad-types.asm │ ├── bad-types.out │ ├── bank-conflict.asm │ ├── bank-conflict.out │ ├── data-overlay.asm │ ├── data-overlay.out │ ├── different-data.asm │ ├── different-data.out │ ├── different-ofs.asm │ ├── different-ofs.out │ ├── different-size.asm │ ├── different-size.out │ ├── different-syntaxes.asm │ ├── different-syntaxes.out │ ├── good │ │ ├── a.asm │ │ ├── b.asm │ │ ├── ref.out.bin │ │ └── script.link │ ├── no-room.asm │ ├── no-room.out │ ├── org-conflict.asm │ ├── org-conflict.out │ ├── same-export │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err │ ├── same-label │ │ ├── a.asm │ │ ├── b.asm │ │ ├── out.err │ │ └── ref.out.bin │ ├── split-data.asm │ └── split-data.out ├── sizeof-startof.asm ├── sizeof-startof.out ├── sizeof-startof.out.bin ├── sym-noexist.asm ├── sym-noexist.out ├── symbols │ ├── conflict │ │ ├── a.asm │ │ ├── b.asm │ │ └── out.err │ ├── good │ │ ├── a.asm │ │ ├── b.asm │ │ ├── out.err │ │ ├── ref.out.bin │ │ └── ref.out.sym │ └── unknown │ │ ├── a.asm │ │ ├── b.asm │ │ ├── c.asm │ │ ├── d.asm │ │ ├── e.asm │ │ └── out.err ├── test.sh ├── vram-fixed-dmg-mode-d.out ├── vram-fixed-dmg-mode-no-d.out ├── vram-fixed-dmg-mode.asm ├── vram-floating-dmg-mode-d.out ├── vram-floating-dmg-mode-no-d.out ├── vram-floating-dmg-mode.asm ├── wramx-dmg-mode-d.out ├── wramx-dmg-mode-no-d.out └── wramx-dmg-mode.asm └── run-tests.sh /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | docs 3 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: gbdev 2 | github: gbdev 3 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by CMake 2 | /.version.cpp 3 | -------------------------------------------------------------------------------- /src/asm/.gitignore: -------------------------------------------------------------------------------- 1 | /parser.cpp 2 | /parser.hpp 3 | /stack.hh 4 | -------------------------------------------------------------------------------- /src/link/.gitignore: -------------------------------------------------------------------------------- 1 | /script.cpp 2 | /script.hpp 3 | /stack.hh 4 | -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | /LADX-Disassembly/ 2 | /libbet/ 3 | /pokecrystal/ 4 | /pokered/ 5 | /SameBoy/ 6 | /ucity/ 7 | -------------------------------------------------------------------------------- /test/CTestCustom.cmake.in: -------------------------------------------------------------------------------- 1 | set(CTEST_CUSTOM_PRE_TEST "bash -c 'cd @CMAKE_CURRENT_SOURCE_DIR@\; ./fetch-test-deps.sh @ONLY_FREE@ @ONLY_INTERNAL@'") 2 | -------------------------------------------------------------------------------- /test/asm/.gitignore: -------------------------------------------------------------------------------- 1 | /version.asm 2 | /version.out 3 | -------------------------------------------------------------------------------- /test/asm/align-16.out: -------------------------------------------------------------------------------- 1 | $1 2 | $2A 3 | -------------------------------------------------------------------------------- /test/asm/align-16.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/align-large-ofs.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION "Tesst", ROM0, ALIGN[1,2] 3 | -------------------------------------------------------------------------------- /test/asm/align-large.asm: -------------------------------------------------------------------------------- 1 | SECTION "You lost the game", ROM0, ALIGN[17, 99] 2 | ALIGN 17, 99 3 | -------------------------------------------------------------------------------- /test/asm/align-pc-outside-section.asm: -------------------------------------------------------------------------------- 1 | align 1 2 | -------------------------------------------------------------------------------- /test/asm/align-pc.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/align-pc.out.bin -------------------------------------------------------------------------------- /test/asm/align-unattainable.asm: -------------------------------------------------------------------------------- 1 | SECTION UNION "X", WRAM0 2 | 3 | SECTION UNION "X", WRAM0, ALIGN[16] 4 | -------------------------------------------------------------------------------- /test/asm/anon-label.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/anon-label.out.bin -------------------------------------------------------------------------------- /test/asm/arg-shift.out: -------------------------------------------------------------------------------- 1 | This test probably passes, but who knows ? 2 | RGBDS 3 | H 4 | E 5 | L 6 | L 7 | O 8 | 9 | W 10 | O 11 | R 12 | L 13 | D 14 | -------------------------------------------------------------------------------- /test/asm/assert-const.out.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/asm/assert-fatal.asm: -------------------------------------------------------------------------------- 1 | assert fatal, 2 + 2 == 5, "there are four lights" 2 | -------------------------------------------------------------------------------- /test/asm/assert-fatal.err: -------------------------------------------------------------------------------- 1 | FATAL: assert-fatal.asm(1): 2 | Assertion failed: there are four lights 3 | -------------------------------------------------------------------------------- /test/asm/assert-nosect-bank.asm: -------------------------------------------------------------------------------- 1 | assert BANK(@) == 1 2 | -------------------------------------------------------------------------------- /test/asm/assert-nosect-bank.err: -------------------------------------------------------------------------------- 1 | error: assert-nosect-bank.asm(1): 2 | PC has no bank outside of a section 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/assert-nosect.asm: -------------------------------------------------------------------------------- 1 | assert Sym 2 | 3 | SECTION "test", ROM0 4 | db 69 5 | Sym: 6 | -------------------------------------------------------------------------------- /test/asm/assert-nosect.out.bin: -------------------------------------------------------------------------------- 1 | E -------------------------------------------------------------------------------- /test/asm/assert@-no-sect.asm: -------------------------------------------------------------------------------- 1 | assert (@) || 1 2 | -------------------------------------------------------------------------------- /test/asm/assert@-no-sect.err: -------------------------------------------------------------------------------- 1 | error: assert@-no-sect.asm(1): 2 | PC has no value outside of a section 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/bank-noexist.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | db BANK(noexist) 3 | -------------------------------------------------------------------------------- /test/asm/block-comment-contents-error.asm: -------------------------------------------------------------------------------- 1 | /* block comments containing /* throw warnings */ 2 | PRINTLN "reachable" 3 | -------------------------------------------------------------------------------- /test/asm/block-comment-contents-error.err: -------------------------------------------------------------------------------- 1 | warning: block-comment-contents-error.asm(1): [-Wnested-comment] 2 | /* in block comment 3 | -------------------------------------------------------------------------------- /test/asm/block-comment-contents-error.out: -------------------------------------------------------------------------------- 1 | reachable 2 | -------------------------------------------------------------------------------- /test/asm/block-comment-termination-error.asm: -------------------------------------------------------------------------------- 1 | PRINT /* block comments must terminate before EOF -------------------------------------------------------------------------------- /test/asm/block-comment.out: -------------------------------------------------------------------------------- 1 | hi 2 | block (/* ... */) comments at ends of line are fine 3 | mutliline 4 | -------------------------------------------------------------------------------- /test/asm/bracketed-symbols.out: -------------------------------------------------------------------------------- 1 | $2A 2 | 2a 3 | 2A 4 | 42 5 | 101010 6 | 10100111001 7 | 0 8 | You can't format me! 9 | 0 10 | 0 11 | -------------------------------------------------------------------------------- /test/asm/break.out: -------------------------------------------------------------------------------- 1 | - 1 2 | cont 3 | - 2 4 | cont 5 | - 3 6 | cont 7 | - 4 8 | cont 9 | - 5 10 | stop 11 | -------------------------------------------------------------------------------- /test/asm/ccode.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ccode.out.bin -------------------------------------------------------------------------------- /test/asm/character-escape-at-end.asm: -------------------------------------------------------------------------------- 1 | println "hello\ -------------------------------------------------------------------------------- /test/asm/character-escape-at-end.out: -------------------------------------------------------------------------------- 1 | hello\ 2 | -------------------------------------------------------------------------------- /test/asm/character-escapes.out: -------------------------------------------------------------------------------- 1 | ( 2 | ) 3 | ( 4 | ) 5 | illegal character escape z? 6 | invalid character n>? 7 | invalid character >? 8 | -------------------------------------------------------------------------------- /test/asm/charlen-strchar.out: -------------------------------------------------------------------------------- 1 | Bold 2 | B 3 | -------------------------------------------------------------------------------- /test/asm/charlen-strchar.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/charlen-strchar.out.bin -------------------------------------------------------------------------------- /test/asm/charmap-empty.asm: -------------------------------------------------------------------------------- 1 | charmap "", 1 2 | charmap "nonempty", ; nothing 3 | -------------------------------------------------------------------------------- /test/asm/charmap-inheritance.err: -------------------------------------------------------------------------------- 1 | error: charmap-inheritance.asm(26): 2 | Base charmap 'eggs' doesn't exist 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/code-after-endm-endr-endc.out: -------------------------------------------------------------------------------- 1 | start 2 | else clause 3 | if clause 4 | not skipped 5 | done 6 | -------------------------------------------------------------------------------- /test/asm/command-line-symbols.asm: -------------------------------------------------------------------------------- 1 | assert !strcmp("{FOO}", "hello") 2 | assert !strcmp("{DEFINED}", "1") 3 | def FOO equ 42 4 | -------------------------------------------------------------------------------- /test/asm/command-line-symbols.flags: -------------------------------------------------------------------------------- 1 | -Weverything -DFOO=hello -DDEFINED 2 | -------------------------------------------------------------------------------- /test/asm/const-and.out: -------------------------------------------------------------------------------- 1 | $0 2 | $A 3 | $2 4 | $0 5 | $A 6 | $0 7 | $0 8 | $0 9 | -------------------------------------------------------------------------------- /test/asm/const-not.asm: -------------------------------------------------------------------------------- 1 | section "test", rom0, align[8] 2 | ds 42 3 | assert !@ 4 | -------------------------------------------------------------------------------- /test/asm/const-not.err: -------------------------------------------------------------------------------- 1 | error: const-not.asm(3): 2 | Assertion failed 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/const-zero.out: -------------------------------------------------------------------------------- 1 | What do you get if you multiply six by seven? 2 | Life, the Universe, and Everything! 3 | Where are we? 4 | Here we are! 5 | $0 6 | $0 7 | -------------------------------------------------------------------------------- /test/asm/data-in-ram.asm: -------------------------------------------------------------------------------- 1 | SECTION "code", WRAM0 2 | xor a 3 | SECTION "data", WRAMX 4 | db 42 5 | -------------------------------------------------------------------------------- /test/asm/data.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/data.bin -------------------------------------------------------------------------------- /test/asm/db-dw-dl-string.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/db-dw-dl-string.out.bin -------------------------------------------------------------------------------- /test/asm/def.out: -------------------------------------------------------------------------------- 1 | $1 2 | $2 3 | $3 4 | $4 5 | $2A 6 | here 7 | $0 $1 $5 $9 8 | $2A 9 | there 10 | $36 11 | -------------------------------------------------------------------------------- /test/asm/deprecated-ldio.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/deprecated-ldio.out.bin -------------------------------------------------------------------------------- /test/asm/destination-a.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/destination-a.out.bin -------------------------------------------------------------------------------- /test/asm/diff-marks.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | - ld a, 0 3 | + xor a 4 | -------------------------------------------------------------------------------- /test/asm/div-mod.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/div-mod.out.bin -------------------------------------------------------------------------------- /test/asm/divzero-instr.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | ld a, 1/0 3 | -------------------------------------------------------------------------------- /test/asm/divzero-instr.err: -------------------------------------------------------------------------------- 1 | FATAL: divzero-instr.asm(2): 2 | Division by zero 3 | -------------------------------------------------------------------------------- /test/asm/divzero-section-bank.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROMX[1/0] 2 | -------------------------------------------------------------------------------- /test/asm/divzero-section-bank.err: -------------------------------------------------------------------------------- 1 | FATAL: divzero-section-bank.asm(1): 2 | Division by zero 3 | -------------------------------------------------------------------------------- /test/asm/double-purge.asm: -------------------------------------------------------------------------------- 1 | def n equ 42 2 | purge n 3 | purge n 4 | -------------------------------------------------------------------------------- /test/asm/double-purge.err: -------------------------------------------------------------------------------- 1 | error: double-purge.asm(3): 2 | 'n' was already purged 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/ds-@.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/ds-align-min.out.bin: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/asm/ds-align-offset.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ds-align-offset.out.bin -------------------------------------------------------------------------------- /test/asm/ds-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0[0] 2 | 3 | ds unknown, 0 4 | ds 1, $100 5 | -------------------------------------------------------------------------------- /test/asm/ds-byte.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ds-byte.out.bin -------------------------------------------------------------------------------- /test/asm/duplicate-section.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION "sec", ROM0 3 | 4 | SECTION "sec", ROM0 5 | -------------------------------------------------------------------------------- /test/asm/elif-after-else.err: -------------------------------------------------------------------------------- 1 | FATAL: elif-after-else.asm(14): 2 | Found ELIF after an ELSE block 3 | -------------------------------------------------------------------------------- /test/asm/elif-after-else.out: -------------------------------------------------------------------------------- 1 | one 2 | A 3 | -------------------------------------------------------------------------------- /test/asm/elif-after-taken-if.err: -------------------------------------------------------------------------------- 1 | FATAL: elif-after-taken-if.asm(21): 2 | Division by zero 3 | -------------------------------------------------------------------------------- /test/asm/elif-after-taken-if.out: -------------------------------------------------------------------------------- 1 | taken if 2 | taken elif 3 | -------------------------------------------------------------------------------- /test/asm/empty-local-purged.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | PURGE .test 4 | -------------------------------------------------------------------------------- /test/asm/empty-local-purged.err: -------------------------------------------------------------------------------- 1 | FATAL: empty-local-purged.asm(3): 2 | Unqualified local label '.test' in main scope 3 | -------------------------------------------------------------------------------- /test/asm/empty-local-referenced.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | dw Referenced. 4 | -------------------------------------------------------------------------------- /test/asm/empty-local-referenced.err: -------------------------------------------------------------------------------- 1 | FATAL: empty-local-referenced.asm(3): 2 | 'Referenced.' is a nonsensical reference to an empty local label 3 | -------------------------------------------------------------------------------- /test/asm/empty-local-used.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | Label: 4 | dw Label. 5 | -------------------------------------------------------------------------------- /test/asm/empty-local-used.err: -------------------------------------------------------------------------------- 1 | FATAL: empty-local-used.asm(4): 2 | 'Label.' is a nonsensical reference to an empty local label 3 | -------------------------------------------------------------------------------- /test/asm/empty-local.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | Label: 4 | Label.: 5 | -------------------------------------------------------------------------------- /test/asm/empty-local.err: -------------------------------------------------------------------------------- 1 | FATAL: empty-local.asm(4): 2 | 'Label.' is a nonsensical reference to an empty local label 3 | -------------------------------------------------------------------------------- /test/asm/empty-raw-identifier.asm: -------------------------------------------------------------------------------- 1 | MACRO #macro 2 | println "all args: \#" 3 | println "bad args: \, \<#>" 4 | ENDM 5 | #macro a, #b, c, 1, #2, 3 6 | -------------------------------------------------------------------------------- /test/asm/empty-raw-identifier.out: -------------------------------------------------------------------------------- 1 | all args: a,#b,c,1,#2,3 2 | bad args: >, > 3 | -------------------------------------------------------------------------------- /test/asm/empty-strings.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | db "" 3 | dw "" 4 | dl "" 5 | assert ("") == 0 6 | assert SIZEOF("test") == 0 7 | -------------------------------------------------------------------------------- /test/asm/empty-strings.err: -------------------------------------------------------------------------------- 1 | warning: empty-strings.asm(5): [-Wobsolete] 2 | Treating multi-unit strings as numbers is deprecated 3 | -------------------------------------------------------------------------------- /test/asm/empty.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/empty.bin -------------------------------------------------------------------------------- /test/asm/endc-eof-newline-else.inc: -------------------------------------------------------------------------------- 1 | IF X 2 | PRINTLN "Yes!" 3 | ELSE 4 | PRINTLN "No." 5 | ENDC -------------------------------------------------------------------------------- /test/asm/endc-eof-newline.inc: -------------------------------------------------------------------------------- 1 | IF X 2 | PRINTLN "Yosh!" 3 | ENDC -------------------------------------------------------------------------------- /test/asm/endc-eof-newline.out: -------------------------------------------------------------------------------- 1 | No. 2 | Yosh! 3 | Yes! 4 | -------------------------------------------------------------------------------- /test/asm/endc-outside-if.asm: -------------------------------------------------------------------------------- 1 | ENDC 2 | -------------------------------------------------------------------------------- /test/asm/endc-outside-if.err: -------------------------------------------------------------------------------- 1 | FATAL: endc-outside-if.asm(1): 2 | Found ENDC outside of an IF construct 3 | -------------------------------------------------------------------------------- /test/asm/endsection-in-load.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | LOAD "ram", WRAM0 3 | ENDSECTION 4 | ENDL 5 | -------------------------------------------------------------------------------- /test/asm/endsection-in-union.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", WRAM0 2 | UNION 3 | ENDSECTION 4 | ENDU 5 | -------------------------------------------------------------------------------- /test/asm/endsection-in-union.err: -------------------------------------------------------------------------------- 1 | FATAL: endsection-in-union.asm(3): 2 | Cannot end the section within a UNION 3 | -------------------------------------------------------------------------------- /test/asm/endsection-outside-section.asm: -------------------------------------------------------------------------------- 1 | ENDSECTION 2 | -------------------------------------------------------------------------------- /test/asm/endsection-outside-section.err: -------------------------------------------------------------------------------- 1 | FATAL: endsection-outside-section.asm(1): 2 | Cannot end the section outside of a SECTION 3 | -------------------------------------------------------------------------------- /test/asm/endsection.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | db 1 3 | ENDSECTION 4 | db 2 5 | -------------------------------------------------------------------------------- /test/asm/endsection.err: -------------------------------------------------------------------------------- 1 | error: endsection.asm(4): 2 | Cannot output data outside of a SECTION 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/equ-charmap.asm: -------------------------------------------------------------------------------- 1 | charmap "A", 1 2 | SECTION "sec", ROM0[0] 3 | DEF _A_ EQU "A" 4 | db _A_ 5 | -------------------------------------------------------------------------------- /test/asm/equ-charmap.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/equs-macrodef.asm: -------------------------------------------------------------------------------- 1 | def DEFINE equs "MACRO mac\nPRINTLN \"Hello :D\"\nENDM" 2 | DEFINE 3 | mac 4 | -------------------------------------------------------------------------------- /test/asm/equs-macrodef.out: -------------------------------------------------------------------------------- 1 | Hello :D 2 | -------------------------------------------------------------------------------- /test/asm/equs-nest.asm: -------------------------------------------------------------------------------- 1 | def X equs "redef X equs \"\\\"Success!\\\\n\\\"\"" 2 | X 3 | print X 4 | -------------------------------------------------------------------------------- /test/asm/equs-nest.out: -------------------------------------------------------------------------------- 1 | Success! 2 | -------------------------------------------------------------------------------- /test/asm/equs-newline.asm: -------------------------------------------------------------------------------- 1 | 2 | def ACT equs "WARN \"First\"\nWARN \"Second\"" 3 | ACT 4 | WARN "Third" 5 | -------------------------------------------------------------------------------- /test/asm/equs-purge.asm: -------------------------------------------------------------------------------- 1 | def BYE equs "PURGE BYE\nWARN \"Crash?\"\n \n" 2 | BYE 3 | -------------------------------------------------------------------------------- /test/asm/equs-purge.err: -------------------------------------------------------------------------------- 1 | warning: equs-purge.asm(2): [-Wuser] 2 | Crash? 3 | while expanding symbol "BYE" 4 | -------------------------------------------------------------------------------- /test/asm/equs-recursion.asm: -------------------------------------------------------------------------------- 1 | DEF recurse EQUS "recurse" 2 | recurse 3 | -------------------------------------------------------------------------------- /test/asm/error-recovery.out: -------------------------------------------------------------------------------- 1 | begin 2 | $2Astart 0 3 | finish 0 4 | start 1 5 | finish 1 6 | start 2 7 | finish 2 8 | end 3 9 | -------------------------------------------------------------------------------- /test/asm/errors-after-missing-include.flags: -------------------------------------------------------------------------------- 1 | -Weverything -M /dev/null -MG 2 | -------------------------------------------------------------------------------- /test/asm/expand-empty-string.asm: -------------------------------------------------------------------------------- 1 | MACRO test 2 | def v equs "X" 3 | def X equs "" ; should not be expanded 4 | \1 5 | ENDM 6 | test v 0 7 | -------------------------------------------------------------------------------- /test/asm/expansions-change-context.out: -------------------------------------------------------------------------------- 1 | hello world 2 | multi;ple 3 | line 4 | strings 5 | true 6 | lol 7 | lol 8 | lol 9 | $2A 10 | -------------------------------------------------------------------------------- /test/asm/export.err: -------------------------------------------------------------------------------- 1 | error: export.asm(18): 2 | syntax error, unexpected EQUS 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/fail.asm: -------------------------------------------------------------------------------- 1 | fail "oops" 2 | -------------------------------------------------------------------------------- /test/asm/fail.err: -------------------------------------------------------------------------------- 1 | FATAL: fail.asm(1): 2 | oops 3 | -------------------------------------------------------------------------------- /test/asm/ff00+c-label.out: -------------------------------------------------------------------------------- 1 | $FF2A 2 | -------------------------------------------------------------------------------- /test/asm/ff00+c-label.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ff00+c-label.out.bin -------------------------------------------------------------------------------- /test/asm/ff00+c.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ff00+c.out.bin -------------------------------------------------------------------------------- /test/asm/for-loop-variable.out: -------------------------------------------------------------------------------- 1 | $0 2 | $2 3 | $4 4 | $6 5 | $4 6 | $5 7 | -------------------------------------------------------------------------------- /test/asm/fragment-align-org-rev.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/fragment-align-org-rev.out.bin -------------------------------------------------------------------------------- /test/asm/fragment-align-org.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/fragment-align-org.out.bin -------------------------------------------------------------------------------- /test/asm/fragment-mismatch.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "test", ROM0[0] 2 | SECTION FRAGMENT "test", ROM0[1] 3 | -------------------------------------------------------------------------------- /test/asm/garbage_char.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/garbage_char.asm -------------------------------------------------------------------------------- /test/asm/garbage_char.err: -------------------------------------------------------------------------------- 1 | error: garbage_char.asm(1): 2 | Unknown character 0xFF 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/garbage_sequence.asm: -------------------------------------------------------------------------------- 1 | assert 1 +# 1 == 2 2 | assert 2 '?* 2 == 4 3 | assert 3 **?''?##?? 3 == 27 4 | -------------------------------------------------------------------------------- /test/asm/if-macro.err: -------------------------------------------------------------------------------- 1 | warning: if-macro.asm(10) -> if-macro.asm::m(5): [-Wuser] 2 | 5 3 | -------------------------------------------------------------------------------- /test/asm/impossible-bank.asm: -------------------------------------------------------------------------------- 1 | SECTION "hram", HRAM, BANK[0] 2 | -------------------------------------------------------------------------------- /test/asm/incbin-empty-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | INCBIN "empty.bin", 0, 1 4 | -------------------------------------------------------------------------------- /test/asm/incbin-empty.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | INCBIN "empty.bin" 4 | -------------------------------------------------------------------------------- /test/asm/incbin-end-0.asm: -------------------------------------------------------------------------------- 1 | INCBIN "data.bin", 123, 0 2 | -------------------------------------------------------------------------------- /test/asm/incbin-end-0.err: -------------------------------------------------------------------------------- 1 | error: incbin-end-0.asm(1): 2 | Cannot output data outside of a SECTION 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/incbin-end-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "Bad", ROM0 2 | 3 | INCBIN "data.bin", 123, 1 4 | -------------------------------------------------------------------------------- /test/asm/incbin-end.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | INCBIN "data.bin", 123 4 | -------------------------------------------------------------------------------- /test/asm/include-eof-newline.asm: -------------------------------------------------------------------------------- 1 | INCLUDE "include-eof-newline.inc" -------------------------------------------------------------------------------- /test/asm/include-eof-newline.inc: -------------------------------------------------------------------------------- 1 | PRINTLN "Hi guys!" 2 | -------------------------------------------------------------------------------- /test/asm/include-eof-newline.out: -------------------------------------------------------------------------------- 1 | Hi guys! 2 | -------------------------------------------------------------------------------- /test/asm/include-recursion.asm: -------------------------------------------------------------------------------- 1 | INCLUDE "include-recursion.asm" 2 | -------------------------------------------------------------------------------- /test/asm/interpolation-recursion.asm: -------------------------------------------------------------------------------- 1 | DEF recurse EQUS "\{recurse\}" 2 | {recurse} 3 | -------------------------------------------------------------------------------- /test/asm/interpolation.out: -------------------------------------------------------------------------------- 1 | ITEM_100 is hundredth 2 | undef 3 | label 4 | label $7E 5 | foo 6 | xor 7 | -------------------------------------------------------------------------------- /test/asm/invalid-bank.asm: -------------------------------------------------------------------------------- 1 | SECTION "vram", VRAM, BANK[2] 2 | -------------------------------------------------------------------------------- /test/asm/invalid-bank.err: -------------------------------------------------------------------------------- 1 | error: invalid-bank.asm(1): 2 | VRAM bank value $0002 out of range ($0000 to $0001) 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/invalid-empty-macro-arg.asm: -------------------------------------------------------------------------------- 1 | \<> 2 | -------------------------------------------------------------------------------- /test/asm/invalid-empty-macro-arg.err: -------------------------------------------------------------------------------- 1 | error: invalid-empty-macro-arg.asm(1): 2 | Empty bracketed macro argument 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/invalid-jr.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | Label: ds 256 3 | jr Label 4 | -------------------------------------------------------------------------------- /test/asm/invalid-macro-arg-character.asm: -------------------------------------------------------------------------------- 1 | \<10!> 2 | -------------------------------------------------------------------------------- /test/asm/invalid-macro-arg-symbol.asm: -------------------------------------------------------------------------------- 1 | \ 2 | -------------------------------------------------------------------------------- /test/asm/invalid-strchar-charsub.asm: -------------------------------------------------------------------------------- 1 | DEF S EQUS STRCHAR("ABC", 3) 2 | DEF T EQUS CHARSUB("ABC", 4) 3 | DEF U EQUS CHARSUB("ABC", 0) 4 | -------------------------------------------------------------------------------- /test/asm/invalid-union.asm: -------------------------------------------------------------------------------- 1 | ENDU ; outside UNION 2 | NEXTU ; outside UNION 3 | UNION ; outside SECTION 4 | 5 | SECTION "test", WRAM0 6 | UNION ; no ENDU 7 | -------------------------------------------------------------------------------- /test/asm/invalid-utf-8-strings.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/invalid-utf-8-strings.asm -------------------------------------------------------------------------------- /test/asm/invalid-utf-8-strings.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/invalid-utf-8-strings.out -------------------------------------------------------------------------------- /test/asm/invalid-utf-8.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/invalid-utf-8.asm -------------------------------------------------------------------------------- /test/asm/invalid-utf-8.err: -------------------------------------------------------------------------------- 1 | error: invalid-utf-8.asm(6) -> invalid-utf-8.asm::m(4): 2 | Unknown characters 0xCF, 0xD3 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/jr-@.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/jr-@.out.bin -------------------------------------------------------------------------------- /test/asm/jr-section.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | Label: 4 | jr Label 5 | def DIFF equ Label - @ 6 | PRINTLN "{DIFF}" 7 | -------------------------------------------------------------------------------- /test/asm/jr-section.out: -------------------------------------------------------------------------------- 1 | $FFFFFFFE 2 | -------------------------------------------------------------------------------- /test/asm/jr-section.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/jr-section.out.bin -------------------------------------------------------------------------------- /test/asm/label-indent.out: -------------------------------------------------------------------------------- 1 | : 2 | -------------------------------------------------------------------------------- /test/asm/label-outside-section.asm: -------------------------------------------------------------------------------- 1 | bad: 2 | SECTION "Test", ROM0 3 | good: 4 | PRINTLN "OK!" 5 | -------------------------------------------------------------------------------- /test/asm/label-outside-section.err: -------------------------------------------------------------------------------- 1 | error: label-outside-section.asm(1): 2 | Label "bad" created outside of a SECTION 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/label-outside-section.out: -------------------------------------------------------------------------------- 1 | OK! 2 | -------------------------------------------------------------------------------- /test/asm/label-redefinition.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | dw Sym 3 | MACRO m 4 | Sym:: 5 | ENDM 6 | m 7 | Sym:: 8 | -------------------------------------------------------------------------------- /test/asm/label-scope.out: -------------------------------------------------------------------------------- 1 | PC: $002D 2 | global scope: "Foo" ($002B) 3 | local scope: "Foo.bar" ($002C) 4 | -------------------------------------------------------------------------------- /test/asm/lexer-hack.out: -------------------------------------------------------------------------------- 1 | got 0 args: 2 | got 1 args: ro 3 | got 2 args: : ld a,1 4 | got 0 args: 5 | got 1 args: ro 6 | got 2 args: : ld b,2 7 | -------------------------------------------------------------------------------- /test/asm/line-continuation-macro.asm: -------------------------------------------------------------------------------- 1 | MACRO m 2 | ENDM 3 | 4 | MACRO m2 5 | m \ 6 | ENDM 7 | 8 | m2 9 | -------------------------------------------------------------------------------- /test/asm/line-continuation-rept.asm: -------------------------------------------------------------------------------- 1 | MACRO m 2 | ENDM 3 | 4 | REPT 1 5 | m 6 | ENDR 7 | 8 | REPT 1 9 | m \ 10 | ENDR 11 | -------------------------------------------------------------------------------- /test/asm/line-continuation-string.asm: -------------------------------------------------------------------------------- 1 | println "Line \ ; this comment is ignored 2 | continuations\ ; so is this one 3 | work!" ; =) 4 | -------------------------------------------------------------------------------- /test/asm/line-continuation-string.out: -------------------------------------------------------------------------------- 1 | Line continuations work! 2 | -------------------------------------------------------------------------------- /test/asm/load-begin.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | LOAD "RAM", WRAM0 3 | ld a, 5 4 | ENDL 5 | db 1 6 | -------------------------------------------------------------------------------- /test/asm/load-begin.out.bin: -------------------------------------------------------------------------------- 1 | > -------------------------------------------------------------------------------- /test/asm/load-endings.out.bin: -------------------------------------------------------------------------------- 1 | BRRAPQCS -------------------------------------------------------------------------------- /test/asm/load-fragment.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/load-fragment.out.bin -------------------------------------------------------------------------------- /test/asm/load-pushs-load.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/load-pushs-load.out.bin -------------------------------------------------------------------------------- /test/asm/load-pushs.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/load-pushs.out.bin -------------------------------------------------------------------------------- /test/asm/load-rom.asm: -------------------------------------------------------------------------------- 1 | SECTION "Hello", ROM0 2 | ld a, 1 3 | LOAD "Wello", ROM0 4 | ld a, 2 5 | ENDL 6 | -------------------------------------------------------------------------------- /test/asm/load-trail.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | db 1 3 | LOAD "RAM", WRAM0 4 | ld a, 5 5 | ENDL 6 | -------------------------------------------------------------------------------- /test/asm/load-trail.out.bin: -------------------------------------------------------------------------------- 1 | > -------------------------------------------------------------------------------- /test/asm/load-union.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/load-union.out.bin -------------------------------------------------------------------------------- /test/asm/local-purge.out: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/asm/local-ref-without-parent.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | dw .test 4 | -------------------------------------------------------------------------------- /test/asm/local-ref-without-parent.err: -------------------------------------------------------------------------------- 1 | FATAL: local-ref-without-parent.asm(3): 2 | Unqualified local label '.test' in main scope 3 | -------------------------------------------------------------------------------- /test/asm/local-without-parent.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | 3 | .test: 4 | -------------------------------------------------------------------------------- /test/asm/local-without-parent.err: -------------------------------------------------------------------------------- 1 | FATAL: local-without-parent.asm(3): 2 | Unqualified local label '.test' in main scope 3 | -------------------------------------------------------------------------------- /test/asm/long-format-spec.out: -------------------------------------------------------------------------------- 1 | 00000002a 2 | -------------------------------------------------------------------------------- /test/asm/long-section-name.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/long-section-name.out.bin -------------------------------------------------------------------------------- /test/asm/macro-#.out: -------------------------------------------------------------------------------- 1 | P 2 | Q,R,S,T 3 | 42,$2a 4 | 5 | A 6 | BCD 7 | -------------------------------------------------------------------------------- /test/asm/macro-#.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/macro-#.out.bin -------------------------------------------------------------------------------- /test/asm/macro-@.asm: -------------------------------------------------------------------------------- 1 | foo: @bar 2 | -------------------------------------------------------------------------------- /test/asm/macro-arg-0.asm: -------------------------------------------------------------------------------- 1 | MACRO m 2 | def x = \0 3 | def y = \<0> + 42 4 | ENDM 5 | m hello, world 6 | -------------------------------------------------------------------------------- /test/asm/macro-arg-escape-chars.asm: -------------------------------------------------------------------------------- 1 | MACRO foo 2 | println \1 3 | ENDM 4 | MACRO bar 5 | foo "\1" 6 | ENDM 7 | bar """ 8 | """ 9 | -------------------------------------------------------------------------------- /test/asm/macro-arg-escape-chars.out: -------------------------------------------------------------------------------- 1 | """ 2 | """ 3 | -------------------------------------------------------------------------------- /test/asm/macro-arg-illegal-escape.asm: -------------------------------------------------------------------------------- 1 | MACRO mac 2 | DEF s EQUS "\#" 3 | println "{#s:s}" 4 | ENDM 5 | mac \\\"\t\r\0\n\{\}\,\(\)\w\ -------------------------------------------------------------------------------- /test/asm/macro-arg-illegal-escape.out: -------------------------------------------------------------------------------- 1 | \\\"\t\r\0\n\{},()w\\ 2 | -------------------------------------------------------------------------------- /test/asm/macro-arg-in-string.err: -------------------------------------------------------------------------------- 1 | error: macro-arg-in-string.asm(12): 2 | Illegal character escape '!' 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/macro-arg-in-string.out: -------------------------------------------------------------------------------- 1 | John "Danger" Smith 2 | \\A\nB 3 | 4 | CD 5 | E!F 6 | hello 7 | goodbye 8 | -------------------------------------------------------------------------------- /test/asm/macro-args-outside-macro.asm: -------------------------------------------------------------------------------- 1 | println \1 2 | println \<2> 3 | println \# 4 | -------------------------------------------------------------------------------- /test/asm/macro-args-outside-macro.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/asm/macro-argument-limit.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/macro-argument-limit.out.bin -------------------------------------------------------------------------------- /test/asm/macro-eof.out: -------------------------------------------------------------------------------- 1 | Hi beautiful 2 | -------------------------------------------------------------------------------- /test/asm/macro-line-no.asm: -------------------------------------------------------------------------------- 1 | 2 | WARN "Line 2" 3 | macro m 4 | WARN "Line 4" 5 | endm 6 | WARN "Line 6" 7 | m 8 | WARN "Line 8" 9 | -------------------------------------------------------------------------------- /test/asm/macro-purge.asm: -------------------------------------------------------------------------------- 1 | ; Check deleting a macro then using its file stack info 2 | MACRO m 3 | PURGE m 4 | WARN "Where am I?" 5 | ENDM 6 | m 7 | -------------------------------------------------------------------------------- /test/asm/macro-purge.err: -------------------------------------------------------------------------------- 1 | warning: macro-purge.asm(6) -> macro-purge.asm::m(4): [-Wuser] 2 | Where am I? 3 | -------------------------------------------------------------------------------- /test/asm/macro-recursion.asm: -------------------------------------------------------------------------------- 1 | MACRO recurse 2 | recurse 3 | ENDM 4 | recurse 5 | -------------------------------------------------------------------------------- /test/asm/macro-syntax.out: -------------------------------------------------------------------------------- 1 | in with the $2 2 | out with the 3 | -------------------------------------------------------------------------------- /test/asm/math.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/math.out.bin -------------------------------------------------------------------------------- /test/asm/max-errors.asm: -------------------------------------------------------------------------------- 1 | section "s", rom0 2 | db 42 3 | println @ ; causes an error before println occurs 4 | -------------------------------------------------------------------------------- /test/asm/max-errors.flags: -------------------------------------------------------------------------------- 1 | -Weverything -X 1 2 | -------------------------------------------------------------------------------- /test/asm/minimum-int.out: -------------------------------------------------------------------------------- 1 | $80000000 2 | ( -2147483648) 3 | (-2147483648 ) 4 | -------------------------------------------------------------------------------- /test/asm/modzero-instr.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | ld a, 1 % 0 3 | -------------------------------------------------------------------------------- /test/asm/modzero-instr.err: -------------------------------------------------------------------------------- 1 | FATAL: modzero-instr.asm(2): 2 | Modulo by zero 3 | -------------------------------------------------------------------------------- /test/asm/multiple-dots-local.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | Parent.heir: 5 | db 0 6 | Parent...spare: 7 | db 1 8 | -------------------------------------------------------------------------------- /test/asm/multiple-dots-local.err: -------------------------------------------------------------------------------- 1 | FATAL: multiple-dots-local.asm(6): 2 | 'Parent...spare' is a nonsensical reference to a nested local label 3 | -------------------------------------------------------------------------------- /test/asm/multiple-else.err: -------------------------------------------------------------------------------- 1 | FATAL: multiple-else.asm(11): 2 | Found ELSE after an ELSE block 3 | -------------------------------------------------------------------------------- /test/asm/multiple-else.out: -------------------------------------------------------------------------------- 1 | one 2 | A 3 | -------------------------------------------------------------------------------- /test/asm/multiple-instructions.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/multiple-instructions.out.bin -------------------------------------------------------------------------------- /test/asm/multivalue-charmap.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/multivalue-charmap.out.bin -------------------------------------------------------------------------------- /test/asm/narg-decreases-after-shift.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/negative-ds.asm: -------------------------------------------------------------------------------- 1 | SECTION "manual union", WRAM0 2 | Foo:: dw 3 | ds @ - Foo 4 | Bar:: db 5 | ds -1 6 | Baz:: dl 7 | -------------------------------------------------------------------------------- /test/asm/negative-ds.err: -------------------------------------------------------------------------------- 1 | FATAL: negative-ds.asm(5): 2 | Constant must not be negative: -1 3 | -------------------------------------------------------------------------------- /test/asm/negative-exponent.asm: -------------------------------------------------------------------------------- 1 | assert 1 ** -1 == 1 ; mathematically yes, technically no 2 | -------------------------------------------------------------------------------- /test/asm/negative-exponent.err: -------------------------------------------------------------------------------- 1 | FATAL: negative-exponent.asm(1): 2 | Exponentiation by negative power 3 | -------------------------------------------------------------------------------- /test/asm/nested-bad-interpolation.asm: -------------------------------------------------------------------------------- 1 | def p = {{a}} 2 | def q = "{b}" 3 | def r = "{{c}}" 4 | -------------------------------------------------------------------------------- /test/asm/nested-brackets.asm: -------------------------------------------------------------------------------- 1 | def STRING equs "OK" 2 | def WRAPPER equs "TRIN" 3 | PRINTLN "{S{WRAPPER}G}" 4 | 5 | PRINTLN "{S{WRAPPER}G" 6 | -------------------------------------------------------------------------------- /test/asm/nested-brackets.err: -------------------------------------------------------------------------------- 1 | error: nested-brackets.asm(5): 2 | Missing } 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/nested-brackets.out: -------------------------------------------------------------------------------- 1 | OK 2 | OK 3 | -------------------------------------------------------------------------------- /test/asm/nested-break.out: -------------------------------------------------------------------------------- 1 | AazaZ 2 | AazazaZ 3 | AazazazaZ 4 | AazazazazaZ 5 | AazazazazazaZ 6 | Aazazazazazaza 7 | n=6 x=6 8 | -------------------------------------------------------------------------------- /test/asm/nested-expansions.asm: -------------------------------------------------------------------------------- 1 | def foo equs "bar" 2 | def bar equs "qux" 3 | MACRO test 4 | \1 5 | ENDM 6 | test foo 0 7 | -------------------------------------------------------------------------------- /test/asm/nested-interpolation-recursion.err: -------------------------------------------------------------------------------- 1 | FATAL: nested-interpolation-recursion.asm(2): 2 | Recursion limit (64) exceeded 3 | -------------------------------------------------------------------------------- /test/asm/nested-local-reference.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | Parent.child: 5 | db 0 6 | .grandchild: 7 | db 1 8 | dw Parent.child.grandchild 9 | -------------------------------------------------------------------------------- /test/asm/nested-local-reference.err: -------------------------------------------------------------------------------- 1 | FATAL: nested-local-reference.asm(8): 2 | 'Parent.child.grandchild' is a nonsensical reference to a nested local label 3 | -------------------------------------------------------------------------------- /test/asm/nested-local.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | Parent.child: 5 | db 0 6 | Parent.child.grandchild: 7 | db 1 8 | -------------------------------------------------------------------------------- /test/asm/nested-local.err: -------------------------------------------------------------------------------- 1 | FATAL: nested-local.asm(6): 2 | 'Parent.child.grandchild' is a nonsensical reference to a nested local label 3 | -------------------------------------------------------------------------------- /test/asm/nested-macrodef.out: -------------------------------------------------------------------------------- 1 | Hello! 2 | outer: outside 3 | inner: inside 4 | -------------------------------------------------------------------------------- /test/asm/new-pushed-section.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "A", ROM0 2 | db 1 3 | PUSHS 4 | SECTION FRAGMENT "A", ROM0 5 | db 2 6 | POPS 7 | db 3 8 | -------------------------------------------------------------------------------- /test/asm/new-pushed-section.err: -------------------------------------------------------------------------------- 1 | FATAL: new-pushed-section.asm(4): 2 | Section 'A' is already on the stack 3 | -------------------------------------------------------------------------------- /test/asm/nonexist-include.asm: -------------------------------------------------------------------------------- 1 | INCLUDE "nonexist-include.inc" 2 | -------------------------------------------------------------------------------- /test/asm/null-character.err: -------------------------------------------------------------------------------- 1 | warning: null-character.asm(12): [-Wunmapped-char] 2 | Unmapped character '\0' 3 | -------------------------------------------------------------------------------- /test/asm/null-character.out: -------------------------------------------------------------------------------- 1 | helloworldleftright -------------------------------------------------------------------------------- /test/asm/null-character.out.bin: -------------------------------------------------------------------------------- 1 | foobarB -------------------------------------------------------------------------------- /test/asm/null-in-macro.asm: -------------------------------------------------------------------------------- 1 | macro foo 2 | 3 | endm 4 | foo 5 | -------------------------------------------------------------------------------- /test/asm/null-in-macro.err: -------------------------------------------------------------------------------- 1 | error: null-in-macro.asm(4) -> null-in-macro.asm::foo(2): 2 | Unknown character '\0' 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/operator-precedence.asm: -------------------------------------------------------------------------------- 1 | println 1 == 1 || 1 == 2 2 | println (1 == 1) || (1 == 2) 3 | -------------------------------------------------------------------------------- /test/asm/operator-precedence.out: -------------------------------------------------------------------------------- 1 | $1 2 | $1 3 | -------------------------------------------------------------------------------- /test/asm/opt-b.asm: -------------------------------------------------------------------------------- 1 | PRINTLN %Oo_Oo_Oo 2 | 3 | OPT b.X 4 | PRINTLN %..X._X.X. 5 | -------------------------------------------------------------------------------- /test/asm/opt-b.flags: -------------------------------------------------------------------------------- 1 | -Weverything -b oO 2 | -------------------------------------------------------------------------------- /test/asm/opt-b.out: -------------------------------------------------------------------------------- 1 | $2A 2 | $2A 3 | -------------------------------------------------------------------------------- /test/asm/opt-g.asm: -------------------------------------------------------------------------------- 1 | PRINTLN `pqpq_rsrs 2 | 3 | OPT g.xOX 4 | PRINTLN `.x.x_OXOX 5 | -------------------------------------------------------------------------------- /test/asm/opt-g.flags: -------------------------------------------------------------------------------- 1 | -Weverything -g pqrs 2 | -------------------------------------------------------------------------------- /test/asm/opt-g.out: -------------------------------------------------------------------------------- 1 | $F55 2 | $F55 3 | -------------------------------------------------------------------------------- /test/asm/opt.err: -------------------------------------------------------------------------------- 1 | warning: opt.asm(12): [-Wdiv] 2 | Division of -2147483648 by -1 yields -2147483648 3 | -------------------------------------------------------------------------------- /test/asm/opt.out: -------------------------------------------------------------------------------- 1 | $80000000 2 | 32 = 3.12500 3 | $80000000 4 | 323d7 = 3.14000 5 | -------------------------------------------------------------------------------- /test/asm/opt.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/opt.out.bin -------------------------------------------------------------------------------- /test/asm/overflow.out: -------------------------------------------------------------------------------- 1 | $80000000 2 | $7FFFFFFF 3 | $80000000 4 | $80000000 5 | $0 6 | $FFFFFFFE 7 | -------------------------------------------------------------------------------- /test/asm/pc-bank.out: -------------------------------------------------------------------------------- 1 | @: $2A 2 | Str: $2A 3 | -------------------------------------------------------------------------------- /test/asm/pc-operand.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/pc-operand.out.bin -------------------------------------------------------------------------------- /test/asm/pc.out: -------------------------------------------------------------------------------- 1 | $1A4 2 | $1E9 3 | -------------------------------------------------------------------------------- /test/asm/pc.out.bin: -------------------------------------------------------------------------------- 1 | + -------------------------------------------------------------------------------- /test/asm/pops-no-pushed-sections.asm: -------------------------------------------------------------------------------- 1 | POPS 2 | -------------------------------------------------------------------------------- /test/asm/pops-no-pushed-sections.err: -------------------------------------------------------------------------------- 1 | FATAL: pops-no-pushed-sections.asm(1): 2 | No entries in the section stack 3 | -------------------------------------------------------------------------------- /test/asm/preinclude.asm: -------------------------------------------------------------------------------- 1 | warn "main file" 2 | def v3 = v1 + v2 3 | println "{d:v1} + {d:v2} = {d:v3}" 4 | -------------------------------------------------------------------------------- /test/asm/preinclude.flags: -------------------------------------------------------------------------------- 1 | -Weverything -P preinclude.inc 2 | -------------------------------------------------------------------------------- /test/asm/preinclude.out: -------------------------------------------------------------------------------- 1 | rept 3 2 | rept 3 3 | rept 3 4 | for 0/3 5 | for 1/3 6 | for 2/3 7 | 12 + 34 = 46 8 | -------------------------------------------------------------------------------- /test/asm/purge-multiple.err: -------------------------------------------------------------------------------- 1 | warning: purge-multiple.asm(9): [-Wpurge] 2 | Purging an exported symbol "u" 3 | -------------------------------------------------------------------------------- /test/asm/pushs-outside-section.asm: -------------------------------------------------------------------------------- 1 | PUSHS 2 | POPS 3 | -------------------------------------------------------------------------------- /test/asm/pushs.asm: -------------------------------------------------------------------------------- 1 | SECTION "This is invalid", ROM0 2 | ds 10, 42 3 | PUSHS 4 | ; We should be outside of section scope now 5 | db 69 6 | POPS 7 | -------------------------------------------------------------------------------- /test/asm/pushs.err: -------------------------------------------------------------------------------- 1 | error: pushs.asm(5): 2 | Cannot output data outside of a SECTION 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/quine2.asm: -------------------------------------------------------------------------------- 1 | macro q 2 | println\1,"\1" 3 | endm 4 | q"macro q\nprintln\\1,\"\\1\"\nendm\n q" 5 | -------------------------------------------------------------------------------- /test/asm/quine2.out: -------------------------------------------------------------------------------- 1 | macro q 2 | println\1,"\1" 3 | endm 4 | q"macro q\nprintln\\1,\"\\1\"\nendm\n q" 5 | -------------------------------------------------------------------------------- /test/asm/ram-code.out: -------------------------------------------------------------------------------- 1 | PC in ROM: $4 2 | PC in WRAM: $D001 3 | $D001 4 | $D008 5 | $F 6 | -------------------------------------------------------------------------------- /test/asm/ram-code.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/ram-code.out.bin -------------------------------------------------------------------------------- /test/asm/raw-identifiers.out: -------------------------------------------------------------------------------- 1 | second is not first 2 | section.romx is in section 3 | for == $0 4 | for == $1 5 | -------------------------------------------------------------------------------- /test/asm/raw-identifiers.out.bin: -------------------------------------------------------------------------------- 1 | B -------------------------------------------------------------------------------- /test/asm/raw-string-symbols.out: -------------------------------------------------------------------------------- 1 | hello 2 | hello 3 | the quick 4 | brown fox 5 | $41 6 | $41 7 | $42 8 | hello world 65 9 | -------------------------------------------------------------------------------- /test/asm/raw-string-symbols.out.bin: -------------------------------------------------------------------------------- 1 | worldworldworld# -------------------------------------------------------------------------------- /test/asm/raw-strings.out: -------------------------------------------------------------------------------- 1 | # "foo",#"{s}",#raw"foo",#"foo" 2 | # """foo""",#"""{s}""",#raw"""foo""",#"""foo""" 3 | -------------------------------------------------------------------------------- /test/asm/redef-equ.out: -------------------------------------------------------------------------------- 1 | $1 2 | $3$1$4$9 3 | -------------------------------------------------------------------------------- /test/asm/redef-equs.err: -------------------------------------------------------------------------------- 1 | error: redef-equs.asm(25): 2 | 'N' already defined as non-EQUS at redef-equs.asm(24) 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/redef-equs.out: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | [] 3 | [1;A;2;B;] 4 | -------------------------------------------------------------------------------- /test/asm/ref-override.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0[0] 2 | db CONSTANT 3 | 4 | def CONSTANT equ 42 5 | -------------------------------------------------------------------------------- /test/asm/ref-override.out.bin: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /test/asm/reference-undefined-equs.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0[0] 2 | db s1, s2 3 | 4 | def s1 equs "1" 5 | redef s2 equs "2" 6 | -------------------------------------------------------------------------------- /test/asm/reference-undefined-sym.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0[0] 2 | db x1, x2, y1, y2 3 | 4 | def x1 = 1 5 | redef x2 = 2 6 | def y1 equ 3 7 | redef y2 equ 4 8 | -------------------------------------------------------------------------------- /test/asm/reference-undefined-sym.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/remote-local-explicit.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | Parent.child:: 5 | db 0 6 | NotParent: 7 | dw Parent.child 8 | -------------------------------------------------------------------------------- /test/asm/remote-local-noexist.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | .child: 5 | db 0 6 | NotParent: 7 | dw Parent.orphan 8 | -------------------------------------------------------------------------------- /test/asm/remote-local.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | Parent: 4 | .child: 5 | db 0 6 | NotParent: 7 | dw Parent.child 8 | -------------------------------------------------------------------------------- /test/asm/rept-0.asm: -------------------------------------------------------------------------------- 1 | REPT 0 2 | WARN "2" 3 | ENDR 4 | -------------------------------------------------------------------------------- /test/asm/rept-shift.out: -------------------------------------------------------------------------------- 1 | This works! 2 | ? 3 | -------------------------------------------------------------------------------- /test/asm/rs-overwrite.out: -------------------------------------------------------------------------------- 1 | $0 2 | $0 3 | $2 4 | $2 5 | $4 6 | $4 7 | $4 8 | $7 9 | $0 10 | -------------------------------------------------------------------------------- /test/asm/section-in-load.asm: -------------------------------------------------------------------------------- 1 | SECTION "outer1", ROM0 2 | LOAD "ram", WRAM0 3 | SECTION "outer2", ROM0 4 | ENDL 5 | -------------------------------------------------------------------------------- /test/asm/section-in-union.asm: -------------------------------------------------------------------------------- 1 | SECTION "outer", WRAM0 2 | UNION 3 | SECTION "inner", WRAM0 4 | NEXTU 5 | ENDU 6 | -------------------------------------------------------------------------------- /test/asm/section-in-union.err: -------------------------------------------------------------------------------- 1 | FATAL: section-in-union.asm(3): 2 | Cannot change the section within a UNION 3 | -------------------------------------------------------------------------------- /test/asm/section-name-invalid.err: -------------------------------------------------------------------------------- 1 | FATAL: section-name-invalid.asm(7): 2 | "Value" does not belong to any section 3 | -------------------------------------------------------------------------------- /test/asm/section-name-invalid.out: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/asm/section-name-undefined.asm: -------------------------------------------------------------------------------- 1 | assert SECTION(Undefined) 2 | -------------------------------------------------------------------------------- /test/asm/section-name-undefined.err: -------------------------------------------------------------------------------- 1 | FATAL: section-name-undefined.asm(1): 2 | Unknown symbol "Undefined" 3 | -------------------------------------------------------------------------------- /test/asm/section-name.out: -------------------------------------------------------------------------------- 1 | aaa 2 | aaa 3 | bbb 4 | bbb 5 | bbb 6 | ccc 7 | ccc 8 | ddd 9 | -------------------------------------------------------------------------------- /test/asm/section-name.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/asm/section-sizeof-startof.out: -------------------------------------------------------------------------------- 1 | sect1: $23 $0 $4567 2 | sect1: $23 $2A $4567 3 | sect2: $0 $0 $0 4 | sect3: $12 $0 $4567 5 | -------------------------------------------------------------------------------- /test/asm/section-union-mismatch.asm: -------------------------------------------------------------------------------- 1 | SECTION UNION "test", WRAM0[$c000] 2 | SECTION UNION "test", WRAM0[$c001] 3 | -------------------------------------------------------------------------------- /test/asm/section-union.out: -------------------------------------------------------------------------------- 1 | Base is at $C000 (OK!) 2 | Plus42 is at $C02A (OK!) 3 | End is at $D000 (OK!) 4 | -------------------------------------------------------------------------------- /test/asm/shift-negative.out: -------------------------------------------------------------------------------- 1 | $3 2 | $2 3 | $1 4 | -------------------------------------------------------------------------------- /test/asm/shift-outside-macro.asm: -------------------------------------------------------------------------------- 1 | shift 2 | shift 3 3 | -------------------------------------------------------------------------------- /test/asm/shift.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/shift.out.bin -------------------------------------------------------------------------------- /test/asm/skip-elif-condition.err: -------------------------------------------------------------------------------- 1 | FATAL: skip-elif-condition.asm(18) -> skip-elif-condition.asm::mac(6): 2 | Division by zero 3 | -------------------------------------------------------------------------------- /test/asm/skip-elif-condition.out: -------------------------------------------------------------------------------- 1 | small 2 + 2 2 | small STRLEN("abcdef") 3 | large 101 4 | -------------------------------------------------------------------------------- /test/asm/skip-expansions.out: -------------------------------------------------------------------------------- 1 | forty-two! 2 | it's $36 3 | args: elif 4 | args: 5 | it's $2A 6 | it's $36 7 | args: elif 8 | args: 9 | forty-two! 10 | -------------------------------------------------------------------------------- /test/asm/strcat.asm: -------------------------------------------------------------------------------- 1 | println STRCAT() 2 | println STRCAT("Durrr") 3 | println STRCAT("Left", "right") 4 | println STRCAT("Whoa", ", ", "baby!") 5 | -------------------------------------------------------------------------------- /test/asm/strcat.out: -------------------------------------------------------------------------------- 1 | 2 | Durrr 3 | Leftright 4 | Whoa, baby! 5 | -------------------------------------------------------------------------------- /test/asm/strlen.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | 3 | MACRO xstrlen 4 | PRINTLN STRLEN(\1) 5 | ENDM 6 | 7 | xstrlen "ABC" 8 | xstrlen "カタカナ" 9 | -------------------------------------------------------------------------------- /test/asm/strlen.out: -------------------------------------------------------------------------------- 1 | $3 2 | $4 3 | -------------------------------------------------------------------------------- /test/asm/strrpl.err: -------------------------------------------------------------------------------- 1 | warning: strrpl.asm(4): [-Wempty-strrpl] 2 | STRRPL: Cannot replace an empty string 3 | -------------------------------------------------------------------------------- /test/asm/strupr-strlwr.asm: -------------------------------------------------------------------------------- 1 | def foo equs strupr("xii") 2 | def bar equs strlwr("LOL") 3 | 4 | println "foo={foo} bar={bar}" 5 | -------------------------------------------------------------------------------- /test/asm/strupr-strlwr.out: -------------------------------------------------------------------------------- 1 | foo=XII bar=lol 2 | -------------------------------------------------------------------------------- /test/asm/symbol-invalid-macro-arg.asm: -------------------------------------------------------------------------------- 1 | def x\<0> = 10 2 | println x 3 | -------------------------------------------------------------------------------- /test/asm/symbol-invalid-macro-arg.out: -------------------------------------------------------------------------------- 1 | $A 2 | -------------------------------------------------------------------------------- /test/asm/symbol-override.out: -------------------------------------------------------------------------------- 1 | V=$1 2 | -------------------------------------------------------------------------------- /test/asm/syntax-error-after-syntax-error.out: -------------------------------------------------------------------------------- 1 | finally! 2 | -------------------------------------------------------------------------------- /test/asm/syntax-error-eof-newline.inc: -------------------------------------------------------------------------------- 1 | SECTION 2 | -------------------------------------------------------------------------------- /test/asm/syntax-error-eof-newline.out: -------------------------------------------------------------------------------- 1 | Before 2 | After 3 | -------------------------------------------------------------------------------- /test/asm/syntax-error-lexer-mode.out: -------------------------------------------------------------------------------- 1 | x=1, y=2 2 | n=2 3 | q=2 4 | -------------------------------------------------------------------------------- /test/asm/syntax-error.asm: -------------------------------------------------------------------------------- 1 | ; The reported error here depends on Bison's parse.error flag. 2 | print a 3 | -------------------------------------------------------------------------------- /test/asm/syntax-error.err: -------------------------------------------------------------------------------- 1 | error: syntax-error.asm(2): 2 | syntax error, unexpected a 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/trailing-commas.out: -------------------------------------------------------------------------------- 1 | 1,2,3,,5 2 | Hello world! 3 | -------------------------------------------------------------------------------- /test/asm/trailing-commas.out.bin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | <3� -------------------------------------------------------------------------------- /test/asm/trigonometry.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/trigonometry.out.bin -------------------------------------------------------------------------------- /test/asm/trimmed-macro-args.out: -------------------------------------------------------------------------------- 1 | 3: "a" 2 | 2: "b" 3 | 1: "c" 4 | 3: "a" 5 | 2: "b" 6 | 1: "c" 7 | 3: "a" 8 | 2: " b" 9 | 1: "c" 10 | -------------------------------------------------------------------------------- /test/asm/undefined-local.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0 2 | foo: 3 | add sp, .bar ; rgblink gives an "Unknown symbol" error here 4 | -------------------------------------------------------------------------------- /test/asm/undefined-opt.asm: -------------------------------------------------------------------------------- 1 | opt x ; there is no opt x 2 | -------------------------------------------------------------------------------- /test/asm/undefined-opt.err: -------------------------------------------------------------------------------- 1 | error: undefined-opt.asm(1): 2 | Unknown option 'x' 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/union-in-rom.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | UNION 3 | ENDU 4 | -------------------------------------------------------------------------------- /test/asm/union-pushs.out.bin: -------------------------------------------------------------------------------- 1 | v -------------------------------------------------------------------------------- /test/asm/unique-id-include.inc: -------------------------------------------------------------------------------- 1 | println "Within INCLUDE: \@" 2 | -------------------------------------------------------------------------------- /test/asm/unmapped-char.out: -------------------------------------------------------------------------------- 1 | A 2 | -------------------------------------------------------------------------------- /test/asm/unmapped-char.out.bin: -------------------------------------------------------------------------------- 1 | AAAAAAA -------------------------------------------------------------------------------- /test/asm/unmatched-directive.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | PUSHC 3 | PUSHO 4 | PUSHS 5 | -------------------------------------------------------------------------------- /test/asm/unterminated-if-eof.asm: -------------------------------------------------------------------------------- 1 | if 0 2 | ; no newline at end of file -------------------------------------------------------------------------------- /test/asm/unterminated-if-eof.err: -------------------------------------------------------------------------------- 1 | FATAL: unterminated-if-eof.asm(2): 2 | Ended block with 1 unterminated IF construct 3 | -------------------------------------------------------------------------------- /test/asm/unterminated-if-include.inc: -------------------------------------------------------------------------------- 1 | if 1 2 | println "inside include" 3 | ; no endc 4 | -------------------------------------------------------------------------------- /test/asm/unterminated-if.err: -------------------------------------------------------------------------------- 1 | FATAL: unterminated-if.asm(13) -> unterminated-if-include.inc(4): 2 | Ended block with 1 unterminated IF construct 3 | -------------------------------------------------------------------------------- /test/asm/unterminated-if.out: -------------------------------------------------------------------------------- 1 | B 2 | inside include 3 | -------------------------------------------------------------------------------- /test/asm/unterminated-load.asm: -------------------------------------------------------------------------------- 1 | SECTION "rom", ROM0 2 | LOAD "ram", WRAM0 3 | -------------------------------------------------------------------------------- /test/asm/unterminated-load.err: -------------------------------------------------------------------------------- 1 | warning: unterminated-load.asm(3): [-Wunterminated-load] 2 | `LOAD` block without `ENDL` terminated by EOF 3 | -------------------------------------------------------------------------------- /test/asm/unterminated-rept.asm: -------------------------------------------------------------------------------- 1 | REPT 3 2 | -------------------------------------------------------------------------------- /test/asm/unterminated-rept.err: -------------------------------------------------------------------------------- 1 | error: unterminated-rept.asm(2): 2 | Unterminated REPT/FOR block 3 | error: Assembly aborted (1 error)! 4 | -------------------------------------------------------------------------------- /test/asm/use-label-outside-section.asm: -------------------------------------------------------------------------------- 1 | lab: 2 | PRINTLN lab-lab 3 | -------------------------------------------------------------------------------- /test/asm/use-label-outside-section.out: -------------------------------------------------------------------------------- 1 | $0 2 | -------------------------------------------------------------------------------- /test/asm/use-purged-symbol.out: -------------------------------------------------------------------------------- 1 | ()! 2 | () 3 | -------------------------------------------------------------------------------- /test/asm/utf-8.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec", ROM0[0] 2 | db "é" 3 | -------------------------------------------------------------------------------- /test/asm/utf-8.out.bin: -------------------------------------------------------------------------------- 1 | é -------------------------------------------------------------------------------- /test/asm/weird-comments.asm: -------------------------------------------------------------------------------- 1 | PRINTLN /* // PRINT "this is **comm //ented out\n" */ "this is not commented out" 2 | PRINTLN /*//*/ "this is not commented out" -------------------------------------------------------------------------------- /test/asm/weird-comments.err: -------------------------------------------------------------------------------- 1 | warning: weird-comments.asm(2): [-Wnested-comment] 2 | /* in block comment 3 | -------------------------------------------------------------------------------- /test/asm/weird-comments.out: -------------------------------------------------------------------------------- 1 | this is not commented out 2 | this is not commented out 3 | -------------------------------------------------------------------------------- /test/asm/zero-byte-file.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/asm/zero-byte-file.asm -------------------------------------------------------------------------------- /test/fix/.gitignore: -------------------------------------------------------------------------------- 1 | /padding*_* 2 | -------------------------------------------------------------------------------- /test/fix/bad-fix-char.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/bad-fix-char.bin -------------------------------------------------------------------------------- /test/fix/bad-fix-char.flags: -------------------------------------------------------------------------------- 1 | -f lmao 2 | -------------------------------------------------------------------------------- /test/fix/color.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/color.bin -------------------------------------------------------------------------------- /test/fix/color.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the CGB flag 2 | -------------------------------------------------------------------------------- /test/fix/color.flags: -------------------------------------------------------------------------------- 1 | -C 2 | -------------------------------------------------------------------------------- /test/fix/color.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/color.gb -------------------------------------------------------------------------------- /test/fix/compatible.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/compatible.bin -------------------------------------------------------------------------------- /test/fix/compatible.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the CGB flag 2 | -------------------------------------------------------------------------------- /test/fix/compatible.flags: -------------------------------------------------------------------------------- 1 | -c 2 | -------------------------------------------------------------------------------- /test/fix/compatible.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/compatible.gb -------------------------------------------------------------------------------- /test/fix/custom-logo.1bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/custom-logo.1bpp -------------------------------------------------------------------------------- /test/fix/custom-logo.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/custom-logo.bin -------------------------------------------------------------------------------- /test/fix/custom-logo.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the logo 2 | -------------------------------------------------------------------------------- /test/fix/custom-logo.flags: -------------------------------------------------------------------------------- 1 | -f l -L ./custom-logo.1bpp 2 | -------------------------------------------------------------------------------- /test/fix/custom-logo.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/custom-logo.gb -------------------------------------------------------------------------------- /test/fix/dollar-hex.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/dollar-hex.bin -------------------------------------------------------------------------------- /test/fix/dollar-hex.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the cartridge type 2 | -------------------------------------------------------------------------------- /test/fix/dollar-hex.flags: -------------------------------------------------------------------------------- 1 | -m '$2a' 2 | -------------------------------------------------------------------------------- /test/fix/dollar-hex.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/dollar-hex.gb -------------------------------------------------------------------------------- /test/fix/empty.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/empty.bin -------------------------------------------------------------------------------- /test/fix/empty.err: -------------------------------------------------------------------------------- 1 | FATAL: "" too short, expected at least 336 ($150) bytes, got only 0 2 | Fixing "" failed with 1 error 3 | -------------------------------------------------------------------------------- /test/fix/empty.flags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/empty.flags -------------------------------------------------------------------------------- /test/fix/empty.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/empty.gb -------------------------------------------------------------------------------- /test/fix/fix-override.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/fix-override.bin -------------------------------------------------------------------------------- /test/fix/fix-override.err: -------------------------------------------------------------------------------- 1 | warning: 'l' overriding 'L' in fix spec 2 | warning: Overwrote a non-zero byte in the Nintendo logo 3 | -------------------------------------------------------------------------------- /test/fix/fix-override.flags: -------------------------------------------------------------------------------- 1 | -f Ll 2 | -------------------------------------------------------------------------------- /test/fix/fix-override.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/fix-override.gb -------------------------------------------------------------------------------- /test/fix/gameid-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/gameid-trunc.bin -------------------------------------------------------------------------------- /test/fix/gameid-trunc.err: -------------------------------------------------------------------------------- 1 | warning: Truncating game ID "FOUR!" to 4 chars 2 | warning: Overwrote a non-zero byte in the manufacturer code 3 | -------------------------------------------------------------------------------- /test/fix/gameid-trunc.flags: -------------------------------------------------------------------------------- 1 | -i 'FOUR!' 2 | -------------------------------------------------------------------------------- /test/fix/gameid-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/gameid-trunc.gb -------------------------------------------------------------------------------- /test/fix/gameid.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/gameid.bin -------------------------------------------------------------------------------- /test/fix/gameid.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the manufacturer code 2 | -------------------------------------------------------------------------------- /test/fix/gameid.flags: -------------------------------------------------------------------------------- 1 | -i RGBD 2 | -------------------------------------------------------------------------------- /test/fix/gameid.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/gameid.gb -------------------------------------------------------------------------------- /test/fix/global-large.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-large.bin -------------------------------------------------------------------------------- /test/fix/global-large.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the global checksum 2 | -------------------------------------------------------------------------------- /test/fix/global-large.flags: -------------------------------------------------------------------------------- 1 | -fg 2 | -------------------------------------------------------------------------------- /test/fix/global-large.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-large.gb -------------------------------------------------------------------------------- /test/fix/global-larger.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-larger.bin -------------------------------------------------------------------------------- /test/fix/global-larger.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the global checksum 2 | -------------------------------------------------------------------------------- /test/fix/global-larger.flags: -------------------------------------------------------------------------------- 1 | -fg 2 | -------------------------------------------------------------------------------- /test/fix/global-larger.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-larger.gb -------------------------------------------------------------------------------- /test/fix/global-trash.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-trash.bin -------------------------------------------------------------------------------- /test/fix/global-trash.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the global checksum 2 | -------------------------------------------------------------------------------- /test/fix/global-trash.flags: -------------------------------------------------------------------------------- 1 | -f G 2 | -------------------------------------------------------------------------------- /test/fix/global-trash.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global-trash.gb -------------------------------------------------------------------------------- /test/fix/global.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global.bin -------------------------------------------------------------------------------- /test/fix/global.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the global checksum 2 | -------------------------------------------------------------------------------- /test/fix/global.flags: -------------------------------------------------------------------------------- 1 | -f g 2 | -------------------------------------------------------------------------------- /test/fix/global.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/global.gb -------------------------------------------------------------------------------- /test/fix/header-edit.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header-edit.bin -------------------------------------------------------------------------------- /test/fix/header-edit.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the CGB flag 2 | warning: Overwrote a non-zero byte in the header checksum 3 | -------------------------------------------------------------------------------- /test/fix/header-edit.flags: -------------------------------------------------------------------------------- 1 | -Cf h 2 | Checks that the header checksum properly accounts for header modifications 3 | -------------------------------------------------------------------------------- /test/fix/header-edit.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header-edit.gb -------------------------------------------------------------------------------- /test/fix/header-trash.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header-trash.bin -------------------------------------------------------------------------------- /test/fix/header-trash.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the header checksum 2 | -------------------------------------------------------------------------------- /test/fix/header-trash.flags: -------------------------------------------------------------------------------- 1 | -f H 2 | -------------------------------------------------------------------------------- /test/fix/header-trash.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header-trash.gb -------------------------------------------------------------------------------- /test/fix/header.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header.bin -------------------------------------------------------------------------------- /test/fix/header.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the header checksum 2 | -------------------------------------------------------------------------------- /test/fix/header.flags: -------------------------------------------------------------------------------- 1 | -f h 2 | -------------------------------------------------------------------------------- /test/fix/header.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/header.gb -------------------------------------------------------------------------------- /test/fix/incompatible-features.flags: -------------------------------------------------------------------------------- 1 | -m mbc1+multirumble 2 | -------------------------------------------------------------------------------- /test/fix/jp.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/jp.bin -------------------------------------------------------------------------------- /test/fix/jp.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the destination code 2 | -------------------------------------------------------------------------------- /test/fix/jp.flags: -------------------------------------------------------------------------------- 1 | -j 2 | -------------------------------------------------------------------------------- /test/fix/jp.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/jp.gb -------------------------------------------------------------------------------- /test/fix/list-mbcs.flags: -------------------------------------------------------------------------------- 1 | -m Help 2 | -------------------------------------------------------------------------------- /test/fix/logo-trash.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/logo-trash.bin -------------------------------------------------------------------------------- /test/fix/logo-trash.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the Nintendo logo 2 | -------------------------------------------------------------------------------- /test/fix/logo-trash.flags: -------------------------------------------------------------------------------- 1 | -f L 2 | -------------------------------------------------------------------------------- /test/fix/logo-trash.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/logo-trash.gb -------------------------------------------------------------------------------- /test/fix/logo.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/logo.bin -------------------------------------------------------------------------------- /test/fix/logo.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the Nintendo logo 2 | -------------------------------------------------------------------------------- /test/fix/logo.flags: -------------------------------------------------------------------------------- 1 | -f l 2 | -------------------------------------------------------------------------------- /test/fix/logo.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/logo.gb -------------------------------------------------------------------------------- /test/fix/mbc-bandai-tama5.flags: -------------------------------------------------------------------------------- 1 | -m BANDAI_TAMA5 2 | -------------------------------------------------------------------------------- /test/fix/mbc-bandai-tama5.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc-bandai-tama5.gb -------------------------------------------------------------------------------- /test/fix/mbc-huc1-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m HUC1+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-huc1-ram-battery.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc-huc1-ram-battery.gb -------------------------------------------------------------------------------- /test/fix/mbc-huc3.flags: -------------------------------------------------------------------------------- 1 | -m HUC3 2 | -------------------------------------------------------------------------------- /test/fix/mbc-huc3.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc-huc3.gb -------------------------------------------------------------------------------- /test/fix/mbc-mbc1-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC1+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc1-ram.flags: -------------------------------------------------------------------------------- 1 | -m MBC1+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc1.flags: -------------------------------------------------------------------------------- 1 | -m MBC1 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc2-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC2+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc2.flags: -------------------------------------------------------------------------------- 1 | -m MBC2 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc3-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC3+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc3-ram.flags: -------------------------------------------------------------------------------- 1 | -m MBC3+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc3-timer-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC3+TIMER+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc3-timer-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC3+TIMER+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc3.flags: -------------------------------------------------------------------------------- 1 | -m MBC3 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC5+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5-ram.flags: -------------------------------------------------------------------------------- 1 | -m MBC5+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5-rumble-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC5+RUMBLE+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5-rumble-ram.flags: -------------------------------------------------------------------------------- 1 | -m MBC5+RUMBLE+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5-rumble.flags: -------------------------------------------------------------------------------- 1 | -m MBC5+RUMBLE 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc5.flags: -------------------------------------------------------------------------------- 1 | -m MBC5 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc6.flags: -------------------------------------------------------------------------------- 1 | -m MBC6 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mbc7-sensor-rumble-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MBC7+SENSOR+RUMBLE+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mmm01-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m MMM01+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mmm01-ram.flags: -------------------------------------------------------------------------------- 1 | -m MMM01+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-mmm01.flags: -------------------------------------------------------------------------------- 1 | -m MMM01 2 | -------------------------------------------------------------------------------- /test/fix/mbc-pocket-camera.flags: -------------------------------------------------------------------------------- 1 | -m POCKET_CAMERA 2 | -------------------------------------------------------------------------------- /test/fix/mbc-pocket-camera.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc-pocket-camera.gb -------------------------------------------------------------------------------- /test/fix/mbc-rom-only.flags: -------------------------------------------------------------------------------- 1 | -m ROM_ONLY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-rom-ram-battery.err: -------------------------------------------------------------------------------- 1 | warning: MBC "ROM+RAM+BATTERY" is under-specified and poorly supported 2 | -------------------------------------------------------------------------------- /test/fix/mbc-rom-ram-battery.flags: -------------------------------------------------------------------------------- 1 | -m ROM+RAM+BATTERY 2 | -------------------------------------------------------------------------------- /test/fix/mbc-rom-ram.err: -------------------------------------------------------------------------------- 1 | warning: MBC "ROM+RAM" is under-specified and poorly supported 2 | -------------------------------------------------------------------------------- /test/fix/mbc-rom-ram.flags: -------------------------------------------------------------------------------- 1 | -m ROM+RAM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-rom.flags: -------------------------------------------------------------------------------- 1 | -m ROM 2 | -------------------------------------------------------------------------------- /test/fix/mbc-tama5.flags: -------------------------------------------------------------------------------- 1 | -m TAMA5 2 | -------------------------------------------------------------------------------- /test/fix/mbc-tama5.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc-tama5.gb -------------------------------------------------------------------------------- /test/fix/mbc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc.bin -------------------------------------------------------------------------------- /test/fix/mbc.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the cartridge type 2 | -------------------------------------------------------------------------------- /test/fix/mbc.flags: -------------------------------------------------------------------------------- 1 | -m 177 2 | -------------------------------------------------------------------------------- /test/fix/mbc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbc.gb -------------------------------------------------------------------------------- /test/fix/mbcless-ram.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbcless-ram.bin -------------------------------------------------------------------------------- /test/fix/mbcless-ram.flags: -------------------------------------------------------------------------------- 1 | -m rom_only -r 2 2 | -------------------------------------------------------------------------------- /test/fix/mbcless-ram.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/mbcless-ram.gb -------------------------------------------------------------------------------- /test/fix/new-lic-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/new-lic-trunc.bin -------------------------------------------------------------------------------- /test/fix/new-lic-trunc.err: -------------------------------------------------------------------------------- 1 | warning: Truncating new licensee "HOMEBREW" to 2 chars 2 | warning: Overwrote a non-zero byte in the new licensee code 3 | -------------------------------------------------------------------------------- /test/fix/new-lic-trunc.flags: -------------------------------------------------------------------------------- 1 | -k HOMEBREW 2 | -------------------------------------------------------------------------------- /test/fix/new-lic-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/new-lic-trunc.gb -------------------------------------------------------------------------------- /test/fix/new-lic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/new-lic.bin -------------------------------------------------------------------------------- /test/fix/new-lic.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the new licensee code 2 | -------------------------------------------------------------------------------- /test/fix/new-lic.flags: -------------------------------------------------------------------------------- 1 | -k HB 2 | -------------------------------------------------------------------------------- /test/fix/new-lic.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/new-lic.gb -------------------------------------------------------------------------------- /test/fix/noexist.err: -------------------------------------------------------------------------------- 1 | FATAL: Failed to open "noexist" for reading+writing: No such file or directory 2 | Fixing "noexist" failed with 1 error 3 | -------------------------------------------------------------------------------- /test/fix/noop.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/noop.bin -------------------------------------------------------------------------------- /test/fix/noop.flags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/noop.flags -------------------------------------------------------------------------------- /test/fix/noop.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/noop.gb -------------------------------------------------------------------------------- /test/fix/old-lic-hex.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/old-lic-hex.bin -------------------------------------------------------------------------------- /test/fix/old-lic-hex.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the old licensee code 2 | -------------------------------------------------------------------------------- /test/fix/old-lic-hex.flags: -------------------------------------------------------------------------------- 1 | -l 0x2a 2 | -------------------------------------------------------------------------------- /test/fix/old-lic-hex.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/old-lic-hex.gb -------------------------------------------------------------------------------- /test/fix/old-lic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/old-lic.bin -------------------------------------------------------------------------------- /test/fix/old-lic.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the old licensee code 2 | -------------------------------------------------------------------------------- /test/fix/old-lic.flags: -------------------------------------------------------------------------------- 1 | -l 42 2 | -------------------------------------------------------------------------------- /test/fix/old-lic.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/old-lic.gb -------------------------------------------------------------------------------- /test/fix/overwrite.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/overwrite.bin -------------------------------------------------------------------------------- /test/fix/padding-bigperfect.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-bigperfect.bin -------------------------------------------------------------------------------- /test/fix/padding-bigperfect.flags: -------------------------------------------------------------------------------- 1 | -p0xff 2 | -------------------------------------------------------------------------------- /test/fix/padding-bigperfect.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-bigperfect.gb -------------------------------------------------------------------------------- /test/fix/padding-imperfect.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-imperfect.bin -------------------------------------------------------------------------------- /test/fix/padding-imperfect.flags: -------------------------------------------------------------------------------- 1 | -p255 2 | -------------------------------------------------------------------------------- /test/fix/padding-imperfect.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-imperfect.gb -------------------------------------------------------------------------------- /test/fix/padding-large.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-large.bin -------------------------------------------------------------------------------- /test/fix/padding-large.flags: -------------------------------------------------------------------------------- 1 | -p 0xff 2 | -------------------------------------------------------------------------------- /test/fix/padding-large.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-large.gb -------------------------------------------------------------------------------- /test/fix/padding-larger.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-larger.bin -------------------------------------------------------------------------------- /test/fix/padding-larger.flags: -------------------------------------------------------------------------------- 1 | -p 255 2 | -------------------------------------------------------------------------------- /test/fix/padding-larger.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-larger.gb -------------------------------------------------------------------------------- /test/fix/padding-perfect.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-perfect.bin -------------------------------------------------------------------------------- /test/fix/padding-perfect.flags: -------------------------------------------------------------------------------- 1 | -p 0xFF 2 | -------------------------------------------------------------------------------- /test/fix/padding-perfect.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-perfect.gb -------------------------------------------------------------------------------- /test/fix/padding-rom0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-rom0.bin -------------------------------------------------------------------------------- /test/fix/padding-rom0.flags: -------------------------------------------------------------------------------- 1 | -p 255 2 | -------------------------------------------------------------------------------- /test/fix/padding-rom0.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding-rom0.gb -------------------------------------------------------------------------------- /test/fix/padding.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding.bin -------------------------------------------------------------------------------- /test/fix/padding.flags: -------------------------------------------------------------------------------- 1 | -p0xFF 2 | -------------------------------------------------------------------------------- /test/fix/padding.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/padding.gb -------------------------------------------------------------------------------- /test/fix/ram.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ram.bin -------------------------------------------------------------------------------- /test/fix/ram.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the RAM size 2 | -------------------------------------------------------------------------------- /test/fix/ram.flags: -------------------------------------------------------------------------------- 1 | -r 232 2 | -------------------------------------------------------------------------------- /test/fix/ram.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ram.gb -------------------------------------------------------------------------------- /test/fix/ramful-mbc-no-ram.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramful-mbc-no-ram.bin -------------------------------------------------------------------------------- /test/fix/ramful-mbc-no-ram.flags: -------------------------------------------------------------------------------- 1 | -m mbc3+ram -r 0 2 | -------------------------------------------------------------------------------- /test/fix/ramful-mbc-no-ram.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramful-mbc-no-ram.gb -------------------------------------------------------------------------------- /test/fix/ramful-mbc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramful-mbc.bin -------------------------------------------------------------------------------- /test/fix/ramful-mbc.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the cartridge type 2 | warning: Overwrote a non-zero byte in the RAM size 3 | -------------------------------------------------------------------------------- /test/fix/ramful-mbc.flags: -------------------------------------------------------------------------------- 1 | -m mbc3+ram -r 2 2 | -------------------------------------------------------------------------------- /test/fix/ramful-mbc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramful-mbc.gb -------------------------------------------------------------------------------- /test/fix/ramless-mbc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramless-mbc.bin -------------------------------------------------------------------------------- /test/fix/ramless-mbc.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the cartridge type 2 | warning: Overwrote a non-zero byte in the RAM size 3 | -------------------------------------------------------------------------------- /test/fix/ramless-mbc.flags: -------------------------------------------------------------------------------- 1 | -m mbc3 -r 0 2 | -------------------------------------------------------------------------------- /test/fix/ramless-mbc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/ramless-mbc.gb -------------------------------------------------------------------------------- /test/fix/sgb-licensee.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/sgb-licensee.bin -------------------------------------------------------------------------------- /test/fix/sgb-licensee.flags: -------------------------------------------------------------------------------- 1 | -sl69 2 | -------------------------------------------------------------------------------- /test/fix/sgb-old-licensee.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/sgb-old-licensee.bin -------------------------------------------------------------------------------- /test/fix/sgb-old-licensee.flags: -------------------------------------------------------------------------------- 1 | -s 2 | -------------------------------------------------------------------------------- /test/fix/sgb.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/sgb.bin -------------------------------------------------------------------------------- /test/fix/sgb.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the SGB flag 2 | -------------------------------------------------------------------------------- /test/fix/sgb.flags: -------------------------------------------------------------------------------- 1 | -s 2 | -------------------------------------------------------------------------------- /test/fix/sgb.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/sgb.gb -------------------------------------------------------------------------------- /test/fix/title-color-trunc-rev.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-color-trunc-rev.bin -------------------------------------------------------------------------------- /test/fix/title-color-trunc-rev.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-color-trunc-rev.gb -------------------------------------------------------------------------------- /test/fix/title-color-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-color-trunc.bin -------------------------------------------------------------------------------- /test/fix/title-color-trunc.flags: -------------------------------------------------------------------------------- 1 | -C -t 0123456789ABCDEF 2 | Checks that the CGB flag correctly truncates the title to 15 chars only 3 | -------------------------------------------------------------------------------- /test/fix/title-color-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-color-trunc.gb -------------------------------------------------------------------------------- /test/fix/title-compat-trunc-rev.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-compat-trunc-rev.bin -------------------------------------------------------------------------------- /test/fix/title-compat-trunc-rev.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-compat-trunc-rev.gb -------------------------------------------------------------------------------- /test/fix/title-compat-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-compat-trunc.bin -------------------------------------------------------------------------------- /test/fix/title-compat-trunc.flags: -------------------------------------------------------------------------------- 1 | -c -t 0123456789ABCDEF 2 | Checks that the CGB compat flag correctly truncates the title to 15 chars only 3 | -------------------------------------------------------------------------------- /test/fix/title-compat-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-compat-trunc.gb -------------------------------------------------------------------------------- /test/fix/title-gameid-trunc-rev.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-gameid-trunc-rev.bin -------------------------------------------------------------------------------- /test/fix/title-gameid-trunc-rev.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-gameid-trunc-rev.gb -------------------------------------------------------------------------------- /test/fix/title-gameid-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-gameid-trunc.bin -------------------------------------------------------------------------------- /test/fix/title-gameid-trunc.flags: -------------------------------------------------------------------------------- 1 | -i rgbd -t 0123456789ABCDEF 2 | Checks that the game ID flag correctly truncates the title to 11 chars only 3 | -------------------------------------------------------------------------------- /test/fix/title-gameid-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-gameid-trunc.gb -------------------------------------------------------------------------------- /test/fix/title-pad.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-pad.bin -------------------------------------------------------------------------------- /test/fix/title-pad.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the title 2 | -------------------------------------------------------------------------------- /test/fix/title-pad.flags: -------------------------------------------------------------------------------- 1 | -t "I LOVE YOU" 2 | -------------------------------------------------------------------------------- /test/fix/title-pad.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-pad.gb -------------------------------------------------------------------------------- /test/fix/title-trunc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-trunc.bin -------------------------------------------------------------------------------- /test/fix/title-trunc.err: -------------------------------------------------------------------------------- 1 | warning: Truncating title "0123456789ABCDEFGHIJK" to 16 chars 2 | warning: Overwrote a non-zero byte in the title 3 | -------------------------------------------------------------------------------- /test/fix/title-trunc.flags: -------------------------------------------------------------------------------- 1 | -t 0123456789ABCDEFGHIJK 2 | -------------------------------------------------------------------------------- /test/fix/title-trunc.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title-trunc.gb -------------------------------------------------------------------------------- /test/fix/title.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title.bin -------------------------------------------------------------------------------- /test/fix/title.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the title 2 | -------------------------------------------------------------------------------- /test/fix/title.flags: -------------------------------------------------------------------------------- 1 | -t "Game Boy dev rox" 2 | -------------------------------------------------------------------------------- /test/fix/title.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/title.gb -------------------------------------------------------------------------------- /test/fix/tooshort.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tooshort.bin -------------------------------------------------------------------------------- /test/fix/tooshort.err: -------------------------------------------------------------------------------- 1 | FATAL: "" too short, expected at least 336 ($150) bytes, got only 20 2 | Fixing "" failed with 1 error 3 | -------------------------------------------------------------------------------- /test/fix/tooshort.flags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tooshort.flags -------------------------------------------------------------------------------- /test/fix/tpp1-bad-major.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-bad-major.bin -------------------------------------------------------------------------------- /test/fix/tpp1-bad-major.err: -------------------------------------------------------------------------------- 1 | error: Failed to parse TPP1 major revision number 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-bad-major.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_lol 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-bad-minor.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-bad-minor.bin -------------------------------------------------------------------------------- /test/fix/tpp1-bad-minor.err: -------------------------------------------------------------------------------- 1 | error: Failed to parse TPP1 minor revision number 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-bad-minor.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_1.lol 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-features.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-features.bin -------------------------------------------------------------------------------- /test/fix/tpp1-features.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_1.0+BATTERY+TIMER+MULTIRUMBLE -r 8 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-features.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-features.gb -------------------------------------------------------------------------------- /test/fix/tpp1-nonjap.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-nonjap.bin -------------------------------------------------------------------------------- /test/fix/tpp1-nonjap.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_1.0 -j 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-nonjap.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-nonjap.gb -------------------------------------------------------------------------------- /test/fix/tpp1-too-short.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-too-short.bin -------------------------------------------------------------------------------- /test/fix/tpp1-too-short.err: -------------------------------------------------------------------------------- 1 | FATAL: "" too short, expected at least 340 ($154) bytes, got only 339 2 | Fixing "" failed with 1 error 3 | -------------------------------------------------------------------------------- /test/fix/tpp1-too-short.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_1.0 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-unk-major.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-unk-major.bin -------------------------------------------------------------------------------- /test/fix/tpp1-unk-major.err: -------------------------------------------------------------------------------- 1 | error: RGBFIX only supports TPP1 version 1.0 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-unk-major.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_2.0 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-unk-minor.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/tpp1-unk-minor.bin -------------------------------------------------------------------------------- /test/fix/tpp1-unk-minor.err: -------------------------------------------------------------------------------- 1 | error: TPP1 minor revision number must be 8-bit 2 | -------------------------------------------------------------------------------- /test/fix/tpp1-unk-minor.flags: -------------------------------------------------------------------------------- 1 | -m TPP1_1.256 2 | -------------------------------------------------------------------------------- /test/fix/unknown-mbc.flags: -------------------------------------------------------------------------------- 1 | -m MBC1337 2 | 3 | -------------------------------------------------------------------------------- /test/fix/verify-pad.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify-pad.bin -------------------------------------------------------------------------------- /test/fix/verify-pad.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify-pad.gb -------------------------------------------------------------------------------- /test/fix/verify-trash.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify-trash.bin -------------------------------------------------------------------------------- /test/fix/verify-trash.flags: -------------------------------------------------------------------------------- 1 | -f LHG 2 | Checks that the global checksum is correctly affected by the header checksum 3 | -------------------------------------------------------------------------------- /test/fix/verify-trash.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify-trash.gb -------------------------------------------------------------------------------- /test/fix/verify.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify.bin -------------------------------------------------------------------------------- /test/fix/verify.flags: -------------------------------------------------------------------------------- 1 | -v 2 | Checks that the global checksum is correctly affected by the header checksum 3 | -------------------------------------------------------------------------------- /test/fix/verify.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/verify.gb -------------------------------------------------------------------------------- /test/fix/version.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/version.bin -------------------------------------------------------------------------------- /test/fix/version.err: -------------------------------------------------------------------------------- 1 | warning: Overwrote a non-zero byte in the mask ROM version number 2 | -------------------------------------------------------------------------------- /test/fix/version.flags: -------------------------------------------------------------------------------- 1 | -n 11 2 | -------------------------------------------------------------------------------- /test/fix/version.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/fix/version.gb -------------------------------------------------------------------------------- /test/gfx/alpha_embedded.flags: -------------------------------------------------------------------------------- 1 | -c embedded 2 | -------------------------------------------------------------------------------- /test/gfx/alpha_embedded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/alpha_embedded.png -------------------------------------------------------------------------------- /test/gfx/alpha_grayscale.out.2bpp: -------------------------------------------------------------------------------- 1 | pppppp -------------------------------------------------------------------------------- /test/gfx/alpha_grayscale.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/alpha_grayscale.out.pal -------------------------------------------------------------------------------- /test/gfx/alpha_grayscale.out.palmap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/gfx/alpha_grayscale.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/alpha_grayscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/alpha_grayscale.png -------------------------------------------------------------------------------- /test/gfx/alpha_rgb.out.2bpp: -------------------------------------------------------------------------------- 1 | ```` -------------------------------------------------------------------------------- /test/gfx/alpha_rgb.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/alpha_rgb.out.pal -------------------------------------------------------------------------------- /test/gfx/alpha_rgb.out.palmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/alpha_rgb.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/alpha_rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/alpha_rgb.png -------------------------------------------------------------------------------- /test/gfx/at-file-ref.flags: -------------------------------------------------------------------------------- 1 | -m 2 | -c gbc:at-file-ref.pal 3 | -------------------------------------------------------------------------------- /test/gfx/at-file-ref.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/at-file-ref.pal -------------------------------------------------------------------------------- /test/gfx/at-file-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/at-file-ref.png -------------------------------------------------------------------------------- /test/gfx/bad_manual_pals.flags: -------------------------------------------------------------------------------- 1 | -c #fff,#a9d4fe:#fff,#5721d9 2 | -------------------------------------------------------------------------------- /test/gfx/bad_manual_pals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bad_manual_pals.png -------------------------------------------------------------------------------- /test/gfx/bg_fuse.flags: -------------------------------------------------------------------------------- 1 | -B #aBc 2 | -------------------------------------------------------------------------------- /test/gfx/bg_fuse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bg_fuse.png -------------------------------------------------------------------------------- /test/gfx/bg_in_tile.err: -------------------------------------------------------------------------------- 1 | FATAL: Tile (16, 0) contains the background color (#ffd800ff)! 2 | Conversion aborted after 1 error 3 | -------------------------------------------------------------------------------- /test/gfx/bg_in_tile.flags: -------------------------------------------------------------------------------- 1 | -B #ffd800 2 | -------------------------------------------------------------------------------- /test/gfx/bg_in_tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bg_in_tile.png -------------------------------------------------------------------------------- /test/gfx/bg_oval.flags: -------------------------------------------------------------------------------- 1 | -B #FF00ff 2 | -------------------------------------------------------------------------------- /test/gfx/bg_oval.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bg_oval.out.2bpp -------------------------------------------------------------------------------- /test/gfx/bg_oval.out.attrmap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/gfx/bg_oval.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bg_oval.out.pal -------------------------------------------------------------------------------- /test/gfx/bg_oval.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/bg_oval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/bg_oval.png -------------------------------------------------------------------------------- /test/gfx/color_curve.flags: -------------------------------------------------------------------------------- 1 | -C 2 | -------------------------------------------------------------------------------- /test/gfx/color_curve.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/color_curve.out.2bpp -------------------------------------------------------------------------------- /test/gfx/color_curve.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/color_curve.out.pal -------------------------------------------------------------------------------- /test/gfx/color_curve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/color_curve.png -------------------------------------------------------------------------------- /test/gfx/crop.flags: -------------------------------------------------------------------------------- 1 | -L 2,1:1,1 2 | -------------------------------------------------------------------------------- /test/gfx/crop.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/crop.out.2bpp -------------------------------------------------------------------------------- /test/gfx/crop.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/crop.out.pal -------------------------------------------------------------------------------- /test/gfx/crop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/crop.png -------------------------------------------------------------------------------- /test/gfx/damaged1.err: -------------------------------------------------------------------------------- 1 | FATAL: Error reading input image ("damaged1.png"): IDAT: invalid code -- missing end-of-block 2 | Conversion aborted after 1 error 3 | -------------------------------------------------------------------------------- /test/gfx/damaged1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/damaged1.png -------------------------------------------------------------------------------- /test/gfx/damaged2.err: -------------------------------------------------------------------------------- 1 | FATAL: Error reading input image ("damaged2.png"): IDAT: invalid code -- missing end-of-block 2 | Conversion aborted after 1 error 3 | -------------------------------------------------------------------------------- /test/gfx/damaged2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/damaged2.png -------------------------------------------------------------------------------- /test/gfx/damaged9.err: -------------------------------------------------------------------------------- 1 | FATAL: Error reading input image ("damaged9.png"): IDAT: invalid code -- missing end-of-block 2 | Conversion aborted after 1 error 3 | -------------------------------------------------------------------------------- /test/gfx/damaged9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/damaged9.png -------------------------------------------------------------------------------- /test/gfx/empty_lines.flags: -------------------------------------------------------------------------------- 1 | -c hex:empty_lines.hex 2 | -------------------------------------------------------------------------------- /test/gfx/empty_lines.hex: -------------------------------------------------------------------------------- 1 | 2 | 5721d9 3 | 4 | A9D4FE 5 | 6 | 7 | ffFFfF 8 | -------------------------------------------------------------------------------- /test/gfx/empty_lines.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/empty_lines.out.2bpp -------------------------------------------------------------------------------- /test/gfx/empty_lines.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/empty_lines.out.pal -------------------------------------------------------------------------------- /test/gfx/empty_lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/empty_lines.png -------------------------------------------------------------------------------- /test/gfx/font_nums.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/font_nums.out.pal -------------------------------------------------------------------------------- /test/gfx/font_nums.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/font_nums.png -------------------------------------------------------------------------------- /test/gfx/full_aco.aco: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_aco.aco -------------------------------------------------------------------------------- /test/gfx/full_aco.flags: -------------------------------------------------------------------------------- 1 | -c aco:full_aco.aco 2 | -------------------------------------------------------------------------------- /test/gfx/full_aco.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_aco.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_aco.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_aco.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_aco.out.pal -------------------------------------------------------------------------------- /test/gfx/full_aco.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_aco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_aco.png -------------------------------------------------------------------------------- /test/gfx/full_act.act: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_act.act -------------------------------------------------------------------------------- /test/gfx/full_act.flags: -------------------------------------------------------------------------------- 1 | -c act:full_act.act 2 | -------------------------------------------------------------------------------- /test/gfx/full_act.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_act.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_act.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_act.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_act.out.pal -------------------------------------------------------------------------------- /test/gfx/full_act.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_act.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_act.png -------------------------------------------------------------------------------- /test/gfx/full_gbc.flags: -------------------------------------------------------------------------------- 1 | -c gbc:full_gbc.pal 2 | -------------------------------------------------------------------------------- /test/gfx/full_gbc.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gbc.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_gbc.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_gbc.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gbc.out.pal -------------------------------------------------------------------------------- /test/gfx/full_gbc.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_gbc.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gbc.pal -------------------------------------------------------------------------------- /test/gfx/full_gbc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gbc.png -------------------------------------------------------------------------------- /test/gfx/full_gpl.flags: -------------------------------------------------------------------------------- 1 | -c gpl:full_gpl.gpl 2 | -------------------------------------------------------------------------------- /test/gfx/full_gpl.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gpl.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_gpl.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_gpl.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gpl.out.pal -------------------------------------------------------------------------------- /test/gfx/full_gpl.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_gpl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_gpl.png -------------------------------------------------------------------------------- /test/gfx/full_hex.flags: -------------------------------------------------------------------------------- 1 | -c hex:full_hex.hex 2 | -------------------------------------------------------------------------------- /test/gfx/full_hex.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_hex.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_hex.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_hex.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_hex.out.pal -------------------------------------------------------------------------------- /test/gfx/full_hex.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_hex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_hex.png -------------------------------------------------------------------------------- /test/gfx/full_psp.flags: -------------------------------------------------------------------------------- 1 | -c psp:full_psp.pal 2 | -------------------------------------------------------------------------------- /test/gfx/full_psp.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_psp.out.2bpp -------------------------------------------------------------------------------- /test/gfx/full_psp.out.attrmap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/full_psp.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_psp.out.pal -------------------------------------------------------------------------------- /test/gfx/full_psp.out.tilemap: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /test/gfx/full_psp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/full_psp.png -------------------------------------------------------------------------------- /test/gfx/input_tileset.flags: -------------------------------------------------------------------------------- 1 | -i input_tileset.in.2bpp 2 | -u 3 | -------------------------------------------------------------------------------- /test/gfx/input_tileset.in.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset.in.2bpp -------------------------------------------------------------------------------- /test/gfx/input_tileset.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset.out.2bpp -------------------------------------------------------------------------------- /test/gfx/input_tileset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset.png -------------------------------------------------------------------------------- /test/gfx/input_tileset_deduped.flags: -------------------------------------------------------------------------------- 1 | -i input_tileset_deduped.in.2bpp 2 | -u 3 | -o result.2bpp 4 | -------------------------------------------------------------------------------- /test/gfx/input_tileset_deduped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset_deduped.png -------------------------------------------------------------------------------- /test/gfx/input_tileset_extra.flags: -------------------------------------------------------------------------------- 1 | -i input_tileset.in.2bpp 2 | -u 3 | -------------------------------------------------------------------------------- /test/gfx/input_tileset_extra.in.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset_extra.in.2bpp -------------------------------------------------------------------------------- /test/gfx/input_tileset_extra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset_extra.png -------------------------------------------------------------------------------- /test/gfx/input_tileset_with_bg.flags: -------------------------------------------------------------------------------- 1 | -B #fff 2 | -i input_tileset_with_bg.in.2bpp 3 | -c gbc:input_tileset_with_bg.in.pal 4 | -u 5 | -------------------------------------------------------------------------------- /test/gfx/input_tileset_with_bg.in.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset_with_bg.in.pal -------------------------------------------------------------------------------- /test/gfx/input_tileset_with_bg.out.attrmap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/gfx/input_tileset_with_bg.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/input_tileset_with_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/input_tileset_with_bg.png -------------------------------------------------------------------------------- /test/gfx/mirror_x.flags: -------------------------------------------------------------------------------- 1 | -X 2 | -------------------------------------------------------------------------------- /test/gfx/mirror_x.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_x.out.2bpp -------------------------------------------------------------------------------- /test/gfx/mirror_x.out.attrmap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/gfx/mirror_x.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/mirror_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_x.png -------------------------------------------------------------------------------- /test/gfx/mirror_xy.flags: -------------------------------------------------------------------------------- 1 | -XY 2 | -------------------------------------------------------------------------------- /test/gfx/mirror_xy.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_xy.out.2bpp -------------------------------------------------------------------------------- /test/gfx/mirror_xy.out.attrmap: -------------------------------------------------------------------------------- 1 | @ `@ -------------------------------------------------------------------------------- /test/gfx/mirror_xy.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/mirror_xy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_xy.png -------------------------------------------------------------------------------- /test/gfx/mirror_y.flags: -------------------------------------------------------------------------------- 1 | -Y 2 | -------------------------------------------------------------------------------- /test/gfx/mirror_y.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_y.out.2bpp -------------------------------------------------------------------------------- /test/gfx/mirror_y.out.attrmap: -------------------------------------------------------------------------------- 1 | @@@@ -------------------------------------------------------------------------------- /test/gfx/mirror_y.out.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/mirror_y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/mirror_y.png -------------------------------------------------------------------------------- /test/gfx/multiple_manual_pals.flags: -------------------------------------------------------------------------------- 1 | -c #0094ff,#000,#fff,#0021ff -c embedded 2 | -------------------------------------------------------------------------------- /test/gfx/multiple_manual_pals.out.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/multiple_manual_pals.out.pal -------------------------------------------------------------------------------- /test/gfx/multiple_manual_pals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/multiple_manual_pals.png -------------------------------------------------------------------------------- /test/gfx/none_comma_ommission.flags: -------------------------------------------------------------------------------- 1 | -c #000,#none#fff 2 | -------------------------------------------------------------------------------- /test/gfx/none_comma_ommission.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/none_comma_ommission.png -------------------------------------------------------------------------------- /test/gfx/none_round_trip.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/none_round_trip.2bpp -------------------------------------------------------------------------------- /test/gfx/none_round_trip.flags: -------------------------------------------------------------------------------- 1 | -c#nOnE,#fFf,#000 2 | -------------------------------------------------------------------------------- /test/gfx/reverse_1bit.1bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/reverse_1bit.1bpp -------------------------------------------------------------------------------- /test/gfx/reverse_1bit.attrmap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/gfx/reverse_1bit.flags: -------------------------------------------------------------------------------- 1 | -m 2 | -t reverse_1bit.tilemap 3 | -a reverse_1bit.attrmap 4 | -------------------------------------------------------------------------------- /test/gfx/reverse_1bit.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/reverse_curve.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/reverse_curve.2bpp -------------------------------------------------------------------------------- /test/gfx/reverse_curve.attrmap: -------------------------------------------------------------------------------- 1 | ! -------------------------------------------------------------------------------- /test/gfx/reverse_curve.flags: -------------------------------------------------------------------------------- 1 | -m 2 | -t reverse_curve.tilemap 3 | -a reverse_curve.attrmap 4 | -p reverse_curve.pal 5 | -------------------------------------------------------------------------------- /test/gfx/reverse_curve.pal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/reverse_curve.pal -------------------------------------------------------------------------------- /test/gfx/reverse_curve.tilemap: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/gfx/seed0.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed0.bin -------------------------------------------------------------------------------- /test/gfx/seed1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed1.bin -------------------------------------------------------------------------------- /test/gfx/seed10.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed10.bin -------------------------------------------------------------------------------- /test/gfx/seed11.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed11.bin -------------------------------------------------------------------------------- /test/gfx/seed12.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed12.bin -------------------------------------------------------------------------------- /test/gfx/seed13.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed13.bin -------------------------------------------------------------------------------- /test/gfx/seed14.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed14.bin -------------------------------------------------------------------------------- /test/gfx/seed15.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed15.bin -------------------------------------------------------------------------------- /test/gfx/seed16.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed16.bin -------------------------------------------------------------------------------- /test/gfx/seed17.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed17.bin -------------------------------------------------------------------------------- /test/gfx/seed18.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed18.bin -------------------------------------------------------------------------------- /test/gfx/seed19.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed19.bin -------------------------------------------------------------------------------- /test/gfx/seed2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed2.bin -------------------------------------------------------------------------------- /test/gfx/seed20.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed20.bin -------------------------------------------------------------------------------- /test/gfx/seed21.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed21.bin -------------------------------------------------------------------------------- /test/gfx/seed22.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed22.bin -------------------------------------------------------------------------------- /test/gfx/seed23.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed23.bin -------------------------------------------------------------------------------- /test/gfx/seed24.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed24.bin -------------------------------------------------------------------------------- /test/gfx/seed25.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed25.bin -------------------------------------------------------------------------------- /test/gfx/seed26.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed26.bin -------------------------------------------------------------------------------- /test/gfx/seed27.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed27.bin -------------------------------------------------------------------------------- /test/gfx/seed28.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed28.bin -------------------------------------------------------------------------------- /test/gfx/seed29.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed29.bin -------------------------------------------------------------------------------- /test/gfx/seed3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed3.bin -------------------------------------------------------------------------------- /test/gfx/seed4.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed4.bin -------------------------------------------------------------------------------- /test/gfx/seed5.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed5.bin -------------------------------------------------------------------------------- /test/gfx/seed6.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed6.bin -------------------------------------------------------------------------------- /test/gfx/seed7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed7.bin -------------------------------------------------------------------------------- /test/gfx/seed8.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed8.bin -------------------------------------------------------------------------------- /test/gfx/seed9.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/seed9.bin -------------------------------------------------------------------------------- /test/gfx/trans_bg_in_tile.err: -------------------------------------------------------------------------------- 1 | FATAL: Tile (16, 0) contains the background color (#00000000)! 2 | Conversion aborted after 1 error 3 | -------------------------------------------------------------------------------- /test/gfx/trans_bg_in_tile.flags: -------------------------------------------------------------------------------- 1 | -B transparent 2 | -------------------------------------------------------------------------------- /test/gfx/trans_bg_in_tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/trans_bg_in_tile.png -------------------------------------------------------------------------------- /test/gfx/trns_lt_plte.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/trns_lt_plte.err -------------------------------------------------------------------------------- /test/gfx/trns_lt_plte.flags: -------------------------------------------------------------------------------- 1 | -Z 2 | -------------------------------------------------------------------------------- /test/gfx/trns_lt_plte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/trns_lt_plte.png -------------------------------------------------------------------------------- /test/gfx/write_stdout.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/write_stdout.bin -------------------------------------------------------------------------------- /test/gfx/write_stdout.out.2bpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/gfx/write_stdout.out.2bpp -------------------------------------------------------------------------------- /test/link/align16.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0, ALIGN[16, 3] 2 | align 16, 3 3 | db 1, 2, 3 4 | -------------------------------------------------------------------------------- /test/link/align16.link: -------------------------------------------------------------------------------- 1 | ROM0 2 | org 3 3 | align 16,3 4 | "test" 5 | -------------------------------------------------------------------------------- /test/link/align16.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/align16.out -------------------------------------------------------------------------------- /test/link/align16.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/all-instructions.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/all-instructions.out -------------------------------------------------------------------------------- /test/link/all-instructions.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/all-instructions.out.bin -------------------------------------------------------------------------------- /test/link/bank-const/a.asm: -------------------------------------------------------------------------------- 1 | def CONSTANT equ 0 2 | EXPORT CONSTANT 3 | -------------------------------------------------------------------------------- /test/link/bank-const/b.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0[0] 2 | db BANK(CONSTANT) 3 | -------------------------------------------------------------------------------- /test/link/bank-const/out.err: -------------------------------------------------------------------------------- 1 | error: bank-const/b.asm(2): Requested BANK() of non-label symbol "CONSTANT" 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/bank-numbers.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/bank-numbers.out -------------------------------------------------------------------------------- /test/link/bank-numbers.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/bit-res-set-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0 2 | Label: 3 | bit Label - 1, a 4 | res Label + 8, [hl] 5 | set Label | $ff00, b 6 | -------------------------------------------------------------------------------- /test/link/bit-res-set.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/bit-res-set.out -------------------------------------------------------------------------------- /test/link/bit-res-set.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/bit-res-set.out.bin -------------------------------------------------------------------------------- /test/link/cascading-errors-fatal-assert.asm: -------------------------------------------------------------------------------- 1 | assert FATAL, UnknownSymbol == 42 2 | assert WeDontReachHere 3 | -------------------------------------------------------------------------------- /test/link/constant-parent/a.asm: -------------------------------------------------------------------------------- 1 | section "a", rom0 2 | export def parent = 42 3 | db 1, 2, 3 4 | -------------------------------------------------------------------------------- /test/link/constant-parent/b.asm: -------------------------------------------------------------------------------- 1 | section "b", rom0 2 | db 4, 5, 6 3 | parent.child:: 4 | db 7, 8, 9 5 | -------------------------------------------------------------------------------- /test/link/constant-parent/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/constant-parent/out.err -------------------------------------------------------------------------------- /test/link/constant-parent/ref.out.bin: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /test/link/constant-parent/ref.out.sym: -------------------------------------------------------------------------------- 1 | ; File generated by rgblink 2 | 00:0003 parent.child 3 | 2a parent 4 | -------------------------------------------------------------------------------- /test/link/db-@.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/db-@.out -------------------------------------------------------------------------------- /test/link/db-@.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/fragment-align/base-bad/b.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "Frag", ROM0/*[4]*/ 3 | 4 | db $7b 5 | align 2 ; Uh oh 6 | -------------------------------------------------------------------------------- /test/link/fragment-align/base/b.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "Frag", ROM0/*[4]*/ 3 | 4 | db $7b 5 | align 2, 1 6 | -------------------------------------------------------------------------------- /test/link/fragment-align/base/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/fragment-align/base/out.err -------------------------------------------------------------------------------- /test/link/fragment-align/base/out.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/fragment-align/base/out.gb -------------------------------------------------------------------------------- /test/link/fragment-align/org-rev-bad/b.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "Frag", ROM0[6] ; Uh oh 3 | -------------------------------------------------------------------------------- /test/link/fragment-align/org-rev/b.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "Frag", ROM0[5] 3 | -------------------------------------------------------------------------------- /test/link/fragment-align/org/a.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "Frag", ROM0[1] 3 | 4 | db $40 5 | 6 | SECTION "Word", ROM0/*[6]*/ 7 | 8 | dw $78d5 9 | -------------------------------------------------------------------------------- /test/link/fragment-align/org/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/fragment-align/org/out.err -------------------------------------------------------------------------------- /test/link/fragment-align/org/out.gb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/fragment-align/org/out.gb -------------------------------------------------------------------------------- /test/link/invalid-bank-t.out: -------------------------------------------------------------------------------- 1 | error: Section "test" has type ROMX, which must be in bank 1 (if any) with option `-t` 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/invalid-bank.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROMX, BANK[$ffff] 2 | dw @, BANK(@) 3 | -------------------------------------------------------------------------------- /test/link/invalid-ram-types.asm: -------------------------------------------------------------------------------- 1 | SECTION "test1", WRAMX, BANK[2] 2 | db 3 | 4 | SECTION "test2", VRAM, BANK[1] 5 | db 6 | -------------------------------------------------------------------------------- /test/link/jr-@.asm: -------------------------------------------------------------------------------- 1 | SECTION "Floating", ROM0 2 | ; RGBASM knows how to compute `jr @` by itself, but this will evade it 3 | jr @ - 1 + 1 4 | -------------------------------------------------------------------------------- /test/link/jr-@.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/jr-@.out -------------------------------------------------------------------------------- /test/link/jr-@.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/jr-@.out.bin -------------------------------------------------------------------------------- /test/link/ldh-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "bad", ROM0 2 | ldh [$1234+@], a 3 | -------------------------------------------------------------------------------- /test/link/ldh-bad.out: -------------------------------------------------------------------------------- 1 | error: ldh-bad.asm(2): Address $1234 for LDH is not in HRAM range 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/linkerscript-escapes-test.link: -------------------------------------------------------------------------------- 1 | ; This uses CR line endings ROM0 "A\"B\tC\rD\nE" "in\{valid" -------------------------------------------------------------------------------- /test/link/linkerscript-escapes-test.out: -------------------------------------------------------------------------------- 1 | error: linkerscript-escapes-test.link(4): Cannot escape character '{' 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/linkerscript-escapes.asm: -------------------------------------------------------------------------------- 1 | SECTION "A\"B\tC\rD\nE", ROM0 2 | DS $1000 3 | SECTION "in\{valid", ROM0 4 | DS $1000 5 | -------------------------------------------------------------------------------- /test/link/linkerscript-include.asm: -------------------------------------------------------------------------------- 1 | SECTION "test", ROM0[42] 2 | DB 1, 2, 3, 4, 5 3 | -------------------------------------------------------------------------------- /test/link/linkerscript-include.inc: -------------------------------------------------------------------------------- 1 | "test" 2 | -------------------------------------------------------------------------------- /test/link/linkerscript-include.link: -------------------------------------------------------------------------------- 1 | ; This has no newline at the end of the file 2 | ROM0 3 | INCLUDE "linkerscript-include.inc" -------------------------------------------------------------------------------- /test/link/load-fragment-jr.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/load-fragment-jr.out -------------------------------------------------------------------------------- /test/link/load-fragment-jr.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/load-fragment/base/ref.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/load-fragment/base/ref.out.sym: -------------------------------------------------------------------------------- 1 | ; File generated by rgblink 2 | 00:0000 AA 3 | 00:0002 CC 4 | 00:c000 BB 5 | 00:c001 DD 6 | -------------------------------------------------------------------------------- /test/link/load-fragment/multiple-objects/a.asm: -------------------------------------------------------------------------------- 1 | SECTION "main", ROM0 2 | LOAD FRAGMENT "test", SRAM 3 | db 0 4 | ENDL 5 | -------------------------------------------------------------------------------- /test/link/load-fragment/multiple-objects/b.asm: -------------------------------------------------------------------------------- 1 | SECTION "SECTION2", ROM0 2 | LOAD FRAGMENT "test", SRAM 3 | jr Label 4 | Label: 5 | dw Label 6 | ENDL 7 | -------------------------------------------------------------------------------- /test/link/load-fragment/section-fragment/b.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "rom", ROM0 2 | Part2:: 3 | db "Hello world!" 4 | Part2End:: 5 | -------------------------------------------------------------------------------- /test/link/map-file/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/map-file/out.err -------------------------------------------------------------------------------- /test/link/operators.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/operators.out -------------------------------------------------------------------------------- /test/link/operators.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/operators.out.bin -------------------------------------------------------------------------------- /test/link/overlay/smaller/out.err: -------------------------------------------------------------------------------- 1 | warning: Overlay file does not have a size multiple of 0x4000 2 | -------------------------------------------------------------------------------- /test/link/overlay/tiny/a.asm: -------------------------------------------------------------------------------- 1 | SECTION "0", ROM0[0] 2 | DB 1, 1, 2, 3, 5, 8, 13, 21 3 | DS $8000 - 8 4 | -------------------------------------------------------------------------------- /test/link/overlay/tiny/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/overlay/tiny/out.err -------------------------------------------------------------------------------- /test/link/patch-overflow.asm: -------------------------------------------------------------------------------- 1 | section "test", romx 2 | db startof("test") 3 | dw startof("test") * 5 4 | -------------------------------------------------------------------------------- /test/link/rom0-tiny-no-t.out: -------------------------------------------------------------------------------- 1 | error: Section "rom" is bigger than the max size for that type: $8000 > $4000 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/rom0-tiny-t.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/rom0-tiny-t.out -------------------------------------------------------------------------------- /test/link/rom0-tiny.asm: -------------------------------------------------------------------------------- 1 | SECTION "rom", ROM0 2 | DS $8000 3 | -------------------------------------------------------------------------------- /test/link/romx-tiny-no-t.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "r0a" (ROM0 section) anywhere 2 | -------------------------------------------------------------------------------- /test/link/romx-tiny-t.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "r0a" (ROM0 section) anywhere 2 | -------------------------------------------------------------------------------- /test/link/romx-tiny.asm: -------------------------------------------------------------------------------- 1 | SECTION "r0a", ROM0 2 | DS $4000 3 | 4 | SECTION "rx", ROMX 5 | DS $4000 6 | 7 | SECTION "r0b", ROM0 8 | DS $4000 9 | -------------------------------------------------------------------------------- /test/link/rst-bad.asm: -------------------------------------------------------------------------------- 1 | SECTION "bad", ROM0[0] 2 | rst bad 3 | bad: ; This is not at a RST vector! 4 | -------------------------------------------------------------------------------- /test/link/rst-bad.out: -------------------------------------------------------------------------------- 1 | error: rst-bad.asm(2): Value $1 is not a RST vector 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/rst.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/rst.out -------------------------------------------------------------------------------- /test/link/rst.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/rst.out.bin -------------------------------------------------------------------------------- /test/link/same-consts/a.asm: -------------------------------------------------------------------------------- 1 | def constant equ 42 2 | export constant 3 | -------------------------------------------------------------------------------- /test/link/same-consts/b.asm: -------------------------------------------------------------------------------- 1 | def constant equ 42 2 | export constant 3 | -------------------------------------------------------------------------------- /test/link/same-consts/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/same-consts/out.err -------------------------------------------------------------------------------- /test/link/scramble-romx/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/scramble-romx/out.err -------------------------------------------------------------------------------- /test/link/script-align-17.link: -------------------------------------------------------------------------------- 1 | rom0 2 | align 17, $1234 3 | -------------------------------------------------------------------------------- /test/link/script-align-17.out: -------------------------------------------------------------------------------- 1 | error: script-align-17.link(2): Cannot align: The alignment (17) must be less than 16 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-different-bank.link: -------------------------------------------------------------------------------- 1 | romx 2 2 | "ROM1" 3 | -------------------------------------------------------------------------------- /test/link/script-different-type.link: -------------------------------------------------------------------------------- 1 | sram 1 2 | "ROM1" 3 | -------------------------------------------------------------------------------- /test/link/script-ds-overflow.link: -------------------------------------------------------------------------------- 1 | rom0 2 | ds $4000 ; OK 3 | ds 1 ; Boom! 4 | 5 | hram 6 | ds $7F ; OK 7 | ds $FFFF ; Boom! 8 | -------------------------------------------------------------------------------- /test/link/script-excess-align-ofs.link: -------------------------------------------------------------------------------- 1 | rom0 2 | align 1, 2 3 | -------------------------------------------------------------------------------- /test/link/script-huge-ds.link: -------------------------------------------------------------------------------- 1 | rom0 2 | ds $10000 3 | -------------------------------------------------------------------------------- /test/link/script-include/a.asm: -------------------------------------------------------------------------------- 1 | section "a", rom0 2 | db $11 3 | -------------------------------------------------------------------------------- /test/link/script-include/a.inc: -------------------------------------------------------------------------------- 1 | rom0 2 | org 0 3 | "a" ; no newline -------------------------------------------------------------------------------- /test/link/script-include/b.asm: -------------------------------------------------------------------------------- 1 | section "b", rom0 2 | db $22 3 | -------------------------------------------------------------------------------- /test/link/script-include/b.inc: -------------------------------------------------------------------------------- 1 | rom0 2 | org 1 3 | "b" ; yes newline 4 | -------------------------------------------------------------------------------- /test/link/script-include/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/script-include/out.err -------------------------------------------------------------------------------- /test/link/script-include/ref.out.bin: -------------------------------------------------------------------------------- 1 | " -------------------------------------------------------------------------------- /test/link/script-include/script.link: -------------------------------------------------------------------------------- 1 | include "script-include/a.inc" 2 | include "script-include/b.inc" 3 | -------------------------------------------------------------------------------- /test/link/script-lone-dollar.link: -------------------------------------------------------------------------------- 1 | vram $ 2 | -------------------------------------------------------------------------------- /test/link/script-lone-dollar.out: -------------------------------------------------------------------------------- 1 | error: script-lone-dollar.link(1): No hexadecimal digits found after '$' 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-lone-percent.link: -------------------------------------------------------------------------------- 1 | vram % 2 | -------------------------------------------------------------------------------- /test/link/script-lone-percent.out: -------------------------------------------------------------------------------- 1 | error: script-lone-percent.link(1): No binary digits found after '%' 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-missing-bank-no.link: -------------------------------------------------------------------------------- 1 | rom0 2 | romx 3 | vram 4 | sram 5 | wram0 6 | wramx 7 | oam 8 | hram 9 | -------------------------------------------------------------------------------- /test/link/script-num-fmt.link: -------------------------------------------------------------------------------- 1 | ROM0 2 | org 42 3 | org %101010 4 | org $2A 5 | org 41 ; Error! 6 | -------------------------------------------------------------------------------- /test/link/script-num-fmt.out: -------------------------------------------------------------------------------- 1 | error: script-num-fmt.link(5): Cannot decrease the current address (from $002a to $0029) 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-oob-bank-num.link: -------------------------------------------------------------------------------- 1 | rom0 1 2 | romx 0 3 | vram 2 4 | wram0 1 5 | wramx 0 6 | wramx 8 7 | oam 1 8 | hram 1 9 | -------------------------------------------------------------------------------- /test/link/script-overflowing-sect.link: -------------------------------------------------------------------------------- 1 | 2 | romx 2 3 | org $7000 4 | "ROM2 1K" ; OK 5 | "ROM2 1" ; Boom! 6 | -------------------------------------------------------------------------------- /test/link/script-syntax-error.link: -------------------------------------------------------------------------------- 1 | rom0 2 | "ROM0" org 1 3 | "NONE" optional 4 | 5 | romx "1" 6 | romx 1 7 | "ROM1" 8 | -------------------------------------------------------------------------------- /test/link/script-typeless-bank.link: -------------------------------------------------------------------------------- 1 | "The section isn't even known" 2 | -------------------------------------------------------------------------------- /test/link/script-unk-keyword.link: -------------------------------------------------------------------------------- 1 | bonjour 2 | -------------------------------------------------------------------------------- /test/link/script-unk-keyword.out: -------------------------------------------------------------------------------- 1 | error: script-unk-keyword.link(1): Unknown keyword "bonjour" 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-unknown-section.link: -------------------------------------------------------------------------------- 1 | rom0 2 | "Wheeee" 3 | -------------------------------------------------------------------------------- /test/link/script-unknown-section.out: -------------------------------------------------------------------------------- 1 | error: script-unknown-section.link(2): Unknown section "Wheeee" 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/script-unterminated-string.link: -------------------------------------------------------------------------------- 1 | rom0 2 | "ROM0 3 | -------------------------------------------------------------------------------- /test/link/script-unterminated-string.out: -------------------------------------------------------------------------------- 1 | error: script-unterminated-string.link(2): Unterminated string 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/sdcc/good/c.c: -------------------------------------------------------------------------------- 1 | // sdcc -c -msm83 -o c.rel c.c 2 | 3 | int function1(int de) { 4 | return de | 0b10; 5 | } 6 | -------------------------------------------------------------------------------- /test/link/sdcc/good/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/sdcc/good/out.err -------------------------------------------------------------------------------- /test/link/sdcc/good/ref.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/sdcc/good/ref.out.bin -------------------------------------------------------------------------------- /test/link/sdcc/no-script/b.c: -------------------------------------------------------------------------------- 1 | // sdcc -c -msm83 -o b.rel b.c 2 | 3 | int function(int de) { 4 | return de * 2; 5 | } 6 | -------------------------------------------------------------------------------- /test/link/section-attributes-mismatch.link: -------------------------------------------------------------------------------- 1 | ROM0 2 | org $18 3 | "sec" 4 | org $20 5 | "secfix" 6 | -------------------------------------------------------------------------------- /test/link/section-attributes.asm: -------------------------------------------------------------------------------- 1 | SECTION "sec",ROM0,ALIGN[4,2] 2 | ds 6, $42 3 | SECTION "secfix",ROM0[$20] 4 | -------------------------------------------------------------------------------- /test/link/section-attributes.link: -------------------------------------------------------------------------------- 1 | ROM0 2 | align 4, 2 3 | "sec" 4 | ds $18 5 | org $20 6 | align 5 7 | "secfix" 8 | -------------------------------------------------------------------------------- /test/link/section-attributes.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/section-attributes.out -------------------------------------------------------------------------------- /test/link/section-conflict/different-mod/a.asm: -------------------------------------------------------------------------------- 1 | section fragment "test", rom0 2 | db 1 3 | -------------------------------------------------------------------------------- /test/link/section-conflict/different-mod/b.asm: -------------------------------------------------------------------------------- 1 | section union "test", rom0 2 | db 2 3 | -------------------------------------------------------------------------------- /test/link/section-fragment/good/a.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "output", ROM0 3 | X: 4 | db X 5 | db 1 6 | 7 | assert WARN, X == 0 8 | -------------------------------------------------------------------------------- /test/link/section-fragment/good/b.asm: -------------------------------------------------------------------------------- 1 | 2 | SECTION FRAGMENT "output", ROM0 3 | Y: 4 | db Y 5 | db 3 6 | 7 | assert WARN, Y == 2 8 | -------------------------------------------------------------------------------- /test/link/section-fragment/good/ref.out.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/link/section-fragment/jr-offset-load/a.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "output", ROM0 2 | LOAD FRAGMENT "loaded", SRAM 3 | ds 128 4 | ENDL 5 | -------------------------------------------------------------------------------- /test/link/section-fragment/jr-offset/a.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "output", ROM0 2 | ds 128 3 | -------------------------------------------------------------------------------- /test/link/section-fragment/jr-offset/b.asm: -------------------------------------------------------------------------------- 1 | SECTION FRAGMENT "output", ROM0 2 | label: 3 | jr nz, label2 4 | label2: 5 | -------------------------------------------------------------------------------- /test/link/section-normal/same-name/a.asm: -------------------------------------------------------------------------------- 1 | SECTION "Same", ROM0 2 | db 1 3 | -------------------------------------------------------------------------------- /test/link/section-normal/same-name/b.asm: -------------------------------------------------------------------------------- 1 | SECTION "Same", ROM0 2 | db 2 3 | -------------------------------------------------------------------------------- /test/link/section-union/no-room.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "test" (WRAMX section) in bank $02 with align mask $ffc0 2 | --- 3 | -------------------------------------------------------------------------------- /test/link/section-union/same-export/a.asm: -------------------------------------------------------------------------------- 1 | SECTION UNION "test", WRAM0 2 | Same:: 3 | ds 1 4 | Foo:: 5 | ds 2 6 | -------------------------------------------------------------------------------- /test/link/section-union/same-export/b.asm: -------------------------------------------------------------------------------- 1 | SECTION UNION "test", WRAM0 2 | Same:: 3 | ds 2 4 | Bar:: 5 | ds 1 6 | -------------------------------------------------------------------------------- /test/link/sizeof-startof.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/sizeof-startof.out -------------------------------------------------------------------------------- /test/link/sizeof-startof.out.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/sizeof-startof.out.bin -------------------------------------------------------------------------------- /test/link/sym-noexist.asm: -------------------------------------------------------------------------------- 1 | SECTION "Test", ROM0 2 | jp where 3 | dw nothing 4 | -------------------------------------------------------------------------------- /test/link/symbols/conflict/a.asm: -------------------------------------------------------------------------------- 1 | EXPORT DEF SAME EQU 1 2 | -------------------------------------------------------------------------------- /test/link/symbols/conflict/b.asm: -------------------------------------------------------------------------------- 1 | EXPORT DEF SAME EQU 2 2 | -------------------------------------------------------------------------------- /test/link/symbols/conflict/out.err: -------------------------------------------------------------------------------- 1 | error: "SAME" is defined as 2 at symbols/conflict/b.asm(1), but as 1 at symbols/conflict/a.asm(1) 2 | -------------------------------------------------------------------------------- /test/link/symbols/good/out.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gbdev/rgbds/804db4e073d8a925fac295323bc6a94410ad4d16/test/link/symbols/good/out.err -------------------------------------------------------------------------------- /test/link/symbols/unknown/a.asm: -------------------------------------------------------------------------------- 1 | section "a", rom0 2 | ld hl, Label 3 | -------------------------------------------------------------------------------- /test/link/symbols/unknown/b.asm: -------------------------------------------------------------------------------- 1 | section "b", rom0 2 | Label: 3 | -------------------------------------------------------------------------------- /test/link/symbols/unknown/c.asm: -------------------------------------------------------------------------------- 1 | def Label equ 42 2 | -------------------------------------------------------------------------------- /test/link/symbols/unknown/d.asm: -------------------------------------------------------------------------------- 1 | def Label = 123 2 | -------------------------------------------------------------------------------- /test/link/symbols/unknown/e.asm: -------------------------------------------------------------------------------- 1 | section "e", wram0 2 | Label: 3 | -------------------------------------------------------------------------------- /test/link/vram-fixed-dmg-mode-d.out: -------------------------------------------------------------------------------- 1 | error: Section "v1" has type VRAM, which must be in bank 0 with option `-d` 2 | Linking failed with 1 error 3 | -------------------------------------------------------------------------------- /test/link/vram-fixed-dmg-mode.asm: -------------------------------------------------------------------------------- 1 | SECTION "v0", VRAM, BANK[0] 2 | DS $2000 3 | 4 | SECTION "v1", VRAM, BANK[1] 5 | DS $2000 6 | 7 | -------------------------------------------------------------------------------- /test/link/vram-floating-dmg-mode-d.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "v1" (VRAM section) anywhere 2 | -------------------------------------------------------------------------------- /test/link/vram-floating-dmg-mode.asm: -------------------------------------------------------------------------------- 1 | SECTION "v0", VRAM 2 | DS $2000 3 | 4 | SECTION "v1", VRAM 5 | DS $1fff 6 | -------------------------------------------------------------------------------- /test/link/wramx-dmg-mode-d.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "wx1" (WRAM0 section) anywhere 2 | -------------------------------------------------------------------------------- /test/link/wramx-dmg-mode-no-d.out: -------------------------------------------------------------------------------- 1 | error: Unable to place "w0b" (WRAM0 section) anywhere 2 | --------------------------------------------------------------------------------