Skip to content

Commit 9cee925

Browse files
Fix missing \.r
1 parent 2450577 commit 9cee925

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/graphx/graphx.asm

+13-13
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,23 @@ _AllocSprite:
137137
push bc
138138
pop hl
139139
add hl,sp
140-
ld e,(hl) ;; e = width
140+
ld e,(hl) ; e = width
141141
add hl,bc
142-
ld d,(hl) ;; d = height
142+
ld d,(hl) ; d = height
143143
add hl,bc
144-
ld hl,(hl) ;; hl = malloc
144+
ld hl,(hl) ; hl = malloc
145145
push de
146-
mlt de ;; de = width * height
147-
inc de ; +2 to store width and height
148-
inc de ;; de = width * height + 2
146+
mlt de ; de = width * height
147+
inc de ; +2 to store width and height
148+
inc de ; de = width * height + 2
149149
push de
150-
call _indcallHL_ASM ;; hl = malloc(width * height + 2)
151-
pop de ;; de = width * height + 2
152-
add hl,de ; this should never carry
153-
sbc hl,de ; check if malloc failed (hl == 0)
154-
pop de ;; e = width, d = height
155-
ret z ; abort if malloc failed
156-
ld (hl),de ; store width and height
150+
call _indcallHL_ASM \.r ; hl = malloc(width * height + 2)
151+
pop de ; de = width * height + 2
152+
add hl,de ; this should never carry
153+
sbc hl,de ; check if malloc failed (hl == 0)
154+
pop de ; e = width, d = height
155+
ret z ; abort if malloc failed
156+
ld (hl),de ; store width and height
157157
ret
158158

159159
;-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)