Ok, so working on The Blue Platform, my menu routine stopped working, even though I hadn't touched it. what happens is that, when I go past the second menu item it just quits, but when I debug I can't seem to figure out why. So I'm going to the community for support, here is the program with a di \ halt right after a keypress, so to figure out how this happens, load it in an emulator, run it and press down, it will just do what I'm showing in the screenshot. Here is the code
http://eeems.pastebin.com/bcaWfMt2EDIT: ok, found where the error is happening, call menusete, when it is called for the second time after pressing down (to draw the new hand thing, first is to erase it) instead of calling the correct routine it just crashes out of the program, no idea why.
menupickdraw:
push bc ;don't want to effect
push af ;all the registers
push hl ;so lets push them onto the stack
ld a,6 ;lets now set the correct x location
;--------------------------------------------------------------------------------------
call menusete ;and y <<---------HERE
;--------------------------------------------------------------------------------------
ld b,8 ;and width
ld ix,menupicker ;and give it the right sprite
call putSprite8xb ;draw it now!
pop hl ;and now we restore
pop af ;all the registers
pop bc ;back to normal that we need
ret ;routine done!