@@ -137,23 +137,23 @@ _AllocSprite:
137
137
push bc
138
138
pop hl
139
139
add hl , sp
140
- ld e , (hl) ; ; e = width
140
+ ld e , (hl) ; e = width
141
141
add hl , bc
142
- ld d , (hl) ; ; d = height
142
+ ld d , (hl) ; d = height
143
143
add hl , bc
144
- ld hl , (hl) ; ; hl = malloc
144
+ ld hl , (hl) ; hl = malloc
145
145
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
149
149
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
157
157
ret
158
158
159
159
;-------------------------------------------------------------------------------
0 commit comments