A86: help!!


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

A86: help!!




I wrote this code but when it didn't work I thought maybe I was copying 
BDE to AHL wrong... I guess that's not where the problem is. Maybe there 
is something else that I haven't spotted?


.org _asm_exec_ram

	call _clrLCD
;
	ld hl,file1	; load file structure into hl
	rst 20h		; store stuff at hl to OP1
	call _CREATEREAL	; creatte REAL file, based on info in OP1
	ld a,b
	ld h,d		; copy BDE to AHL
	ld l,e
	call 462Fh	; set RAM page to A, put 16 bit address in HL
	ld a,7
	ld (hl),a	; -- shouldn't this put 7 in the real var Z?
	ret

file1:
	.db 00h,1,"A"  ; filetype 00=real, namelength=1, name="Z"

;
;
; some other stuff here...
;
;

.end



Thanks in advance,
Muhammed

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com