Skip to content

Commit

Permalink
Pass --nop-after-halt option to rgbasm in makefile to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcurrie committed Mar 4, 2023
1 parent 19ecbe5 commit ef09116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A Game Boy ROM disassembler.

Requires Python v3.6 or later.

The assembly files generated by mgbdis are designed to be assembled with [RGBDS](https://rgbds.gbdev.io) v0.5.0 or later.
The assembly files generated by mgbdis are designed to be assembled with [RGBDS](https://rgbds.gbdev.io) v0.6.0 or later.

## Usage

Expand Down
4 changes: 3 additions & 1 deletion mgbdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,9 @@ def write_makefile(self):

parameters = ['--preserve-ld']
if self.style['disable_halt_nops']:
parameters.append('-h')
parameters.append('--halt-without-nop')
else:
parameters.append('--nop-after-halt')
f.write('\trgbasm {} -o game.o game.asm\n\n'.format(' '.join(parameters)))

f.write('game.{}: game.o\n'.format(rom_extension))
Expand Down

0 comments on commit ef09116

Please sign in to comment.