Skip to content

Commit

Permalink
Use rgbasm -h to use halt without nops.
Browse files Browse the repository at this point in the history
  • Loading branch information
yenatch committed May 31, 2014
1 parent f59f03c commit d424eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $(all_obj): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_dep))
@$(gfx) 2bpp $(2bppq); $(eval 2bppq :=)
@$(gfx) 1bpp $(1bppq); $(eval 1bppq :=)
@$(pic) compress $(picq); $(eval picq :=)
rgbasm -o $@ $*.tx
rgbasm -h -o $@ $*.tx


link := rgblink -n $*.sym -m $*.map
Expand Down
5 changes: 1 addition & 4 deletions home.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1861,10 +1861,7 @@ NOT_VBLANKED EQU 1
ld a, NOT_VBLANKED
ld [H_VBLANKOCCURRED], a
.halt
; XXX this is a hack--rgbasm adds
; a nop after halts by default.
db $76 ; halt

halt
ld a, [H_VBLANKOCCURRED]
and a
jr nz, .halt
Expand Down

0 comments on commit d424eb4

Please sign in to comment.