Cosmetic fixes

This commit is contained in:
mid-kid 2018-11-20 21:53:45 +01:00
parent dac6916c8b
commit 4e3ed078f9
5 changed files with 106 additions and 106 deletions

View File

@ -7,9 +7,10 @@ MALE EQU 0
FEMALE EQU 1 FEMALE EQU 1
; FlagAction arguments (see home/flag.asm) ; FlagAction arguments (see home/flag.asm)
RESET_FLAG EQU 0 const_def
SET_FLAG EQU 1 const RESET_FLAG
CHECK_FLAG EQU 2 const SET_FLAG
const CHECK_FLAG
; G/S version ID: 0 = Gold, 1 = Silver (used by checkver) ; G/S version ID: 0 = Gold, 1 = Silver (used by checkver)
GS_VERSION EQU 0 GS_VERSION EQU 0

View File

@ -45,12 +45,10 @@ FlagAction::
and 7 and 7
; shift de right by three bits (get the index within memory) ; shift de right by three bits (get the index within memory)
rept 3
srl d srl d
rr e rr e
srl d endr
rr e
srl d
rr e
add hl, de add hl, de
; implement a decoder ; implement a decoder

View File

@ -17,6 +17,7 @@ if _NARG <= 4
db \3 ; y db \3 ; y
db \4 ; param db \4 ; param
else else
; LEGACY: Support the tile+offset format
db \1 ; object db \1 ; object
db (\2) * 8 + (\3) ; x_tile, x db (\2) * 8 + (\3) ; x_tile, x
db (\4) * 8 + (\5) ; y_tile, y db (\4) * 8 + (\5) ; y_tile, y