Re: A86: Re: saving high scores


[Prev][Next][Index][Thread]

Re: A86: Re: saving high scores




 i came up with some thing like this but i dont understand the 
>   ld de,GameSaveData-_asm_exec_ram+4



 david@acz.org writes:

> 
>  SaveGame:
>   ld hl,ProgramVar-1
>   rst 20h
>   rst 10h
>   call _ex_ahl_bde
>   ld de,GameSaveData-_asm_exec_ram+4
>   add hl,de
>   adc a,0
>   call _set_abs_dest_addr
>   sub a
>   ld hl,GameSaveData
>   call _set_abs_src_addr
>   ld hl,GameSaveDataSize
>   call _set_mm_num_bytes
>   call _mm_ldir
>   ret
>  
>  ProgramVar:
>   6,"mygame"
>  
>  GameSaveData:
>  highscore:
>   .db 0
>  GameSaveDataSize =$-GameSaveData
>  
>  >
>  > is there a good high score routine out there.
>  >
>  > i need to save a byte from
>  > score = _textShadow
>  >
>  > to
>  >
>  > highscore:
>  > .db 0
>  > i cant get anything to work
>  >
>  >
>  


Follow-Ups: