[A83] _createprog [83]


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

[A83] _createprog [83]




Does _createprog return any flags (if it couldn't create a file), or does
it generate a memory-error like it does on the Ti-83+???

In that case I'll need to check if there's enough mem in advance...
It's just [program size to create] + 7 bytes, isn't it?

So for a empty program (0 bytes):

	...
	RST	10		; _CHKFINDSYM, look up filename
	jr	nc,_next	; if(no error) go on...
	call	_memchk	; file does not exist, so call 441A
	xor	a		; carry = 0
	ld	de,7		; 0 + 7 = 7  ;)
	sbc	hl,de		; HL = HL - DE - carry
	jp	m,ErrorError
	ld	hl,0		; 0 bytes program
	call	_creatprog
	...

Am I right or am I wrong???

	Henk Poley