Re: A86: writeback


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

Re: A86: writeback




Well, I have re-joined this list. I kind of started missing all of the
trash mail that i used to get...

On this particular routine, i would leave in the _load_ram_ahl and take out
the set_abs_dest_addr and that stuff. It would be much much faster to do
the moving directly.

save_data:
 	ld hl,varname
 	rst 20h			;copy to OP1
 	rst 10h			;_findsym
 	jr c,quit			;renamed - so no write back
 	ld a,b
 	ex de,hl
 	call _load_ram_ahl
 	ld de,data-_asm_exec_ram+2	;offset (not 4, cuz the size=2 bytes)
 	add hl,de			;hl=pointer to data in original prog
 	adc a,0			;in case we overlapped
	ld bc,36
	ld de,data
	ldir

;this doesnt take into account for page overlap, but that is quite easy.


Chicane
chicane@reninet.com
http://zapo.calc.org



References: