2018-06-24 14:09:41 +00:00
|
|
|
TownMap_ConvertLineBreakCharacters:
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wStringBuffer1
|
2017-12-16 02:22:26 +00:00
|
|
|
.loop
|
|
|
|
ld a, [hl]
|
|
|
|
cp "@"
|
|
|
|
jr z, .end
|
|
|
|
cp "%"
|
2018-07-17 21:08:04 +00:00
|
|
|
jr z, .line_feed
|
2017-12-16 02:22:26 +00:00
|
|
|
cp "¯"
|
2018-07-17 21:08:04 +00:00
|
|
|
jr z, .line_feed
|
2017-12-16 02:22:26 +00:00
|
|
|
inc hl
|
|
|
|
jr .loop
|
|
|
|
|
2018-07-17 21:08:04 +00:00
|
|
|
.line_feed
|
|
|
|
ld [hl], "<LF>"
|
2017-12-16 02:22:26 +00:00
|
|
|
|
|
|
|
.end
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wStringBuffer1
|
2017-12-16 02:22:26 +00:00
|
|
|
hlcoord 9, 0
|
|
|
|
call PlaceString
|
|
|
|
ret
|