Skip to content

Commit

Permalink
Enable -E option of rgbasm
Browse files Browse the repository at this point in the history
This option makes rgbasm export the name of all labels, not only the
one of global labels. This makes debugging easier inside functions
because the names are also exported to the .sym file.

Renamed a few labels that had the same name in different files,
rgblink complained about it.
  • Loading branch information
AntonioND committed Jan 3, 2017
1 parent 404353f commit ebe504c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -76,7 +76,7 @@ clean:

%.obj : %.asm
@echo rgbasm $<
@$(RGBASM) $(INCLUDES) -o$@ $<
@$(RGBASM) $(INCLUDES) -E -o$@ $<

$(BIN): $(OBJ)
@echo rgblink $(BIN)
Expand Down
4 changes: 2 additions & 2 deletions source/room_minimap/minimap_pollution.asm
Expand Up @@ -35,7 +35,7 @@

;-------------------------------------------------------------------------------

MINIMAP_TILE_COLORS:
MINIMAP_TILE_COLORS_POLLUTION:
DB 0,0,0,0
DB 0,1,1,0
DB 1,1,1,1
Expand Down Expand Up @@ -86,7 +86,7 @@ MinimapDrawPollutionMap::
rlca ; Overflow from top bits
and a,7 ; Reduce from 8 to 3 bits

ld de,MINIMAP_TILE_COLORS
ld de,MINIMAP_TILE_COLORS_POLLUTION
ld l,a
ld h,0
add hl,hl
Expand Down
4 changes: 2 additions & 2 deletions source/room_minimap/minimap_population.asm
Expand Up @@ -35,7 +35,7 @@

;-------------------------------------------------------------------------------

MINIMAP_TILE_COLORS:
MINIMAP_TILE_COLORS_POPULATION:
DB 0,0,0,0
DB 0,1,1,0
DB 1,1,1,1
Expand Down Expand Up @@ -88,7 +88,7 @@ ENDC
sra a
sra a ; From 6 bits to 3 (63 -> 7)

ld de,MINIMAP_TILE_COLORS
ld de,MINIMAP_TILE_COLORS_POPULATION
ld l,a
ld h,0
add hl,hl
Expand Down
4 changes: 2 additions & 2 deletions source/room_minimap/minimap_power.asm
Expand Up @@ -153,7 +153,7 @@ MinimapDrawPowerGridMap::

;-------------------------------------------------------------------------------

MINIMAP_TILE_COLORS:
MINIMAP_TILE_COLORS_POWER:
DB 0,0,0,0
DB 0,1,1,0
DB 1,1,1,1
Expand Down Expand Up @@ -218,7 +218,7 @@ ENDC
inc a ; Round up
sra a ; From 4 bits to 3 (15 -> 7)

ld de,MINIMAP_TILE_COLORS
ld de,MINIMAP_TILE_COLORS_POWER
ld l,a
ld h,0
add hl,hl
Expand Down
4 changes: 2 additions & 2 deletions source/room_minimap/minimap_services.asm
Expand Up @@ -35,7 +35,7 @@

;-------------------------------------------------------------------------------

MINIMAP_TILE_COLORS: ; Common to all services
MINIMAP_TILE_COLORS_SERVICES: ; Common to all services
DB 0,0,0,0
DB 0,1,1,0
DB 1,1,1,1
Expand Down Expand Up @@ -69,7 +69,7 @@ MinimapServicesCommonDrawMap:
rlca ; Overflow from top bits
and a,7 ; Reduce from 8 to 3 bits

ld de,MINIMAP_TILE_COLORS
ld de,MINIMAP_TILE_COLORS_SERVICES
ld l,a
ld h,0
add hl,hl
Expand Down

0 comments on commit ebe504c

Please sign in to comment.