PCEngineFans.com - The PC Engine and TurboGrafx-16 Community Forum
Tech and Homebrew => Turbo/PCE Game/Tool Development => Topic started by: nodtveidt on March 28, 2014, 11:05:27 AM
-
Supposedly, there is an error with the bm_delete() library function. I don't know enough about the underlying code to figure out where the issue is, and I have not used it yet so I don't know its symptoms.
lib2_bm_delete:
__stw <_ax
jsr lib2_bm_open
bcs .out
stw $8006,<_bx ; ptr to end
stw <_si,<_di ; setup currptr as dest
stw <_dx,<_si ; setup nextptr as src
subw <_dx,<_bx ; #bytes = end-next + 2
addw #2,<_bx
subw <_cx,$8006 ; adjust ptr to end
lda <_bh
ldx <_bl
jsr _memcpy.3
jsr lib2_bm_disable
stz _bm_error
clx
cla
clc
.out: rts
EDIT: an old thread on the ME forum sheds some light on the issue:
http://forums.magicengine.com/en/viewtopic.php?t=1744
-
lda _nullity
ldx _bullets
inx
txa
sbc _nullity
jsr _cheap_funeral
nop
rts
:P :lol:
-
Yeah, I got the joke. :P :lol: BM, bowel movement, flush it down the toilet. :P