Re: A85: Memory Loading
[Prev][Next][Index][Thread]
Re: A85: Memory Loading
what you may want to do is:
;macros for debugging
#define PUSHALL push hl \ push de \ push bc \ push af
#define POPALL pop af \ pop bc \ pop de \ pop hl
PUSHALL
ld l,(hl)
ld h,0
call D_HL_DECI ;original memory written first
POPALL
ld a,(hl)
PUSHALL
ld l,e
ld h,0
call D_HL_DECI ;is reg e what i thought (in decimal)?
POPALL
xor e
ld (hl),a
PUSHALL
ld l,(hl)
ld h,0
call D_HL_DECI ;updated memory written 3rd
call OTH_PAUSE ;wait for enter to look at results
POPALL
-mike pearce
mgp4007@omega.uta.edu
References: