zx_basemem.asm
bitfixer_bitfixer/dg/z88dk/libsrc/spectrum/basic/zx_basemem.asm
;
;	ZX Spectrum specific routines
;	by Stefano Bodrato, 21/09/2006
;
;	int zx_basemem;
;
;	This function returns the base memory size in kbytes
;
;	$Id: zx_basemem.asm,v 1.2 2015/01/19 01:33:07 pauloscustodio Exp $
;

	PUBLIC	zx_basemem
	
zx_basemem:
	ld	a,(23733)
	srl	a
	inc	a
	srl	a
	sub	16	; subtract the ROM size
	ld	l,a
	ld	h,0
	ret
